@RestrictTo(RestrictTo.Scope.LIBRARY)
  public void init(Rect bounds, float startFrame, float endFrame, float frameRate,
      List<Layer> layers, LongSparseArray<Layer> layerMap, Map<String,
      List<Layer>> precomps, Map<String, LottieImageAsset> images, float imagesDpScale,
      SparseArrayCompat<FontCharacter> characters, Map<String, Font> fonts,
      List<Marker> markers, int unscaledWidth, int unscaledHeight) {
    this.bounds = bounds;
    this.startFrame = startFrame;
    this.endFrame = endFrame;
    this.frameRate = frameRate;
    this.layers = layers;
    this.layerMap = layerMap;
    this.precomps = precomps;
    this.images = images;
    this.imagesDpScale = imagesDpScale;
    this.characters = characters;
    this.fonts = fonts;
    this.markers = markers;
    this.unscaledWidth = unscaledWidth;
    this.unscaledHeight = unscaledHeight;
  }
Counts the number of mattes and masks. Before Android switched to SKIA
for drawing in Oreo (API 28), using hardware acceleration with mattes and masks
was only faster until you had ~4 masks after which it would actually become slower.
lottie/src/main/java/com/airbnb/lottie/LottieComposition.java