Java Code Examples for com.facebook.imagepipeline.animated.base.AnimatedImageFrame#dispose()
The following examples show how to use
com.facebook.imagepipeline.animated.base.AnimatedImageFrame#dispose() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AnimatedDrawableBackendImpl.java From FanXin-based-HuanXin with GNU General Public License v2.0 | 5 votes |
@Override public void renderFrame(int frameNumber, Canvas canvas) { AnimatedImageFrame frame = mAnimatedImage.getFrame(frameNumber); try { if (mAnimatedImage.doesRenderSupportScaling()) { renderImageSupportsScaling(canvas, frame); } else { renderImageDoesNotSupportScaling(canvas, frame); } } finally { frame.dispose(); } }
Example 2
Source File: AnimatedDrawableBackendImpl.java From fresco with MIT License | 5 votes |
@Override public void renderFrame(int frameNumber, Canvas canvas) { AnimatedImageFrame frame = mAnimatedImage.getFrame(frameNumber); try { if (mAnimatedImage.doesRenderSupportScaling()) { renderImageSupportsScaling(canvas, frame); } else { renderImageDoesNotSupportScaling(canvas, frame); } } finally { frame.dispose(); } }