@Override
  public void close() {
    AnimatedImageResult imageResult;
    synchronized (this) {
      if (mImageResult == null) {
        return;
      }
      imageResult = mImageResult;
      mImageResult = null;
    }
    imageResult.dispose();
  }
Encapsulates the data needed in order for {@code AnimatedDrawable} to render a {@code
AnimatedImage}.
animated-base/src/main/java/com/facebook/imagepipeline/image/CloseableAnimatedImage.java