commit | b26aebc325fd0e607c59e04d79b3d81d0d8d7edf | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <scroggo@google.com> | Mon Dec 21 14:55:22 2020 -0500 |
committer | Leon Scroggins III <scroggo@google.com> | Tue Jan 05 12:37:47 2021 -0500 |
tree | fe9363fc459109fbaacaf506e41f7adc7189854e | |
parent | 139145be8082f0606045b89feebc9126a9a376d8 [diff] |
Implement AImageDecoder _advanceFrame and _rewind Bug: 160984428 Test: Iae7d274b69999c471fd5610c6ef4d148cca81bec Disallow AImageDecoder_set* methods after the first frame, since changing the settings would interfere with blending and caching for kRestorePrevious frames. Add a cache (and a state machine) for handling kRestorePrevious frames. Follow-on to Ib93b0ced09fa3cca4a6681745406355c48158fae - support using a matrix for unpremul + orientation (the orientation was previously handled by a matrix internally in SkAndroidCodec). Change-Id: I7c32ede013fa83f1fe95c35778c33278ca6fe6a3