@Override
    public int getLoopDurationMs() {
      return getFrameCount() * mAnimationDurationMs;
    }
Bitmap animation factory to create backends for the sample app.
samples/animation2/src/main/java/com/facebook/samples/animation2/bitmap/ExampleBitmapAnimationFactory.java