skia2/include/android
Leon Scroggins III 4c11945a97 Respect repetition count in SkAnimatedImage
Bug: b/63908092

By default use the repetition count stored in the encoded data (if
any). Allow setting the repetition count manually, so that the
animation will stop after n+1 total cycles (unless -1 is used for
infinite).

If the animation is complete, make start reset it.

When the animation is not running, make update return max double (i.e.
no need to update any time soon).

Fix a bug where the first call to update returned -1.

Share write_bm with CodecAnimTest, for debugging.

Update Sample to check isRunning rather than keeping its own record
of whether the animation is running.

Change-Id: I883e4d7325f7a7b23a422fa9d756f9ea3018f0f8
Reviewed-on: https://skia-review.googlesource.com/97082
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
2018-01-22 18:53:47 +00:00
..
SkAndroidFrameworkUtils.h Add a private API for writing the clip to the stencil 2017-08-02 19:56:07 +00:00
SkAnimatedImage.h Respect repetition count in SkAnimatedImage 2018-01-22 18:53:47 +00:00
SkBitmapRegionDecoder.h Add SK_API to APIs used by the android framework. 2017-09-21 18:14:36 +00:00
SkBRDAllocator.h Move SkBitmapRegionDecoder to include/android and src/android 2015-11-13 06:11:09 -08:00