skia2/include/android
Leon Scroggins III 42ee284567 Use SkAndroidCodec in SkAnimatedImage
Bug: b/63909536
Bug: b/63908092

SkAnimatedImage is designed around a specific Android use case, so move
it into the android folders.

Make SkAnimatedImage hold an SkAndroidCodec (instead of an SkCodec).
Expose fCodec so that SkAnimatedImage can animate by using the internal
SkCodec.

Update the sample to use SkAndroidCodec.

Allow webp to decode a scaled down animation. For RestoreBG frames,
adjust the frameRect (which is erased) to account for the scaling. Add
a test to verify that we decode a webp with a RestoreBG frame
successfully. Disable scaling for later frames in other formats (GIF,
for now), since the code for erasing a RestoreBG frame is currently
unaware of the sampling.

Change-Id: I5dd2b86138f2c7f6adcd08dce1bd49040f7dc224
Reviewed-on: https://skia-review.googlesource.com/94621
Commit-Queue: Leon Scroggins <scroggo@google.com>
Reviewed-by: Derek Sollenberger <djsollen@google.com>
2018-01-16 20:36:09 +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 Use SkAndroidCodec in SkAnimatedImage 2018-01-16 20:36:09 +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