skia2/modules
Florin Malita ef666fa83d [skottie] Avoid image data duplication when pre-decoding
The MultiFrameImageAsset helper can be flagged to decode lazy images
upfront (to avoid run-time decoding and resource cache interactions).

But when pre-decoding is enabled, MultiFrameImageAsset yields a
different SkImage for every request - *even for static images*.

This means that e.g. each image layer precomp instance gets its own
copy of the data.  Bad bad bad.

Update MultiFrameImageAsset to cache the last frame, and reuse when
backed by a static image.

Change-Id: I65431e7ccf4a64f0055f935f9823c33402d1bb2b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/306938
Commit-Queue: Florin Malita <fmalita@google.com>
Reviewed-by: Mike Reed <reed@google.com>
2020-07-30 22:09:41 +00:00
..
canvaskit Remove remaining usages of skvx::mad 2020-07-30 20:41:09 +00:00
particles Always use Skia's Vulkan headers when compiling particles module 2020-07-07 20:44:34 +00:00
pathkit [canvaskit] Update to 0.17.1 2020-07-21 14:48:20 +00:00
skottie [skottie] Add spread/choke support for glow styles 2020-07-22 23:20:02 +00:00
skparagraph Reland "Attach whitespaces to the neighbor unresolved blocks" 2020-07-28 17:19:21 +00:00
skplaintexteditor Hide ICU C++ API from Skia users. 2020-05-29 21:43:19 +00:00
skresources [skottie] Avoid image data duplication when pre-decoding 2020-07-30 22:09:41 +00:00
sksg [skottie] More masking fixes 2020-07-21 13:58:45 +00:00
skshaper Reland #3 "ICU API: only in SkParagraph, simplified." 2020-07-24 13:28:52 +00:00