docs: @Override
    public void buildDrawingCache(boolean autoScale) {
      super.buildDrawingCache(autoScale);
      if (getLayerType() == LAYER_TYPE_SOFTWARE && getDrawingCache(autoScale) == null) {
        setRenderMode(HARDWARE);
      }
    }