private boolean isFullFrame(AnimatedDrawableFrameInfo frameInfo) {
    return frameInfo.xOffset == 0
        && frameInfo.yOffset == 0
        && frameInfo.width == mAnimatedDrawableBackend.getRenderedWidth()
        && frameInfo.height == mAnimatedDrawableBackend.getRenderedHeight();
  }
Returns whether the specified frame is needed for rendering the next frame. This is part of the
compositing logic. See {@link FrameNeededResult} for more info about the results.

@param index the frame to check
@return whether the frame is required taking into account special conditions
animated-base/src/main/java/com/facebook/imagepipeline/animated/impl/AnimatedImageCompositor.java