public float getProgressForFrame(float frame) {
    float framesSinceStart = frame - startFrame;
    float frameRange = endFrame - startFrame;
    return framesSinceStart / frameRange;
  }
Used to determine if an animation can be drawn with hardware acceleration.
lottie/src/main/java/com/airbnb/lottie/LottieComposition.java