75368c3a02
Instead of always grabbing the first frame at load time, only do so for single-frame images. For multi-frame images, defer frame resolution until actually needed (at seek time). There's a slight complication in dealing with image scaling: since we no longer know the intrinsic size of the frames upfront, we need to set up a transform effect preemptively for multi-frame images, and update on the fly when the frames are resolved. This is not necessarily bad, because theoretically frames could have different sizes. Bug: skia:9686 Change-Id: Ib831d0e2ecad061ba52bdd8721e7598ea38c1e6e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/257622 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org> |
||
---|---|---|
animations | ||
bench | ||
bin | ||
build/fuchsia | ||
build_overrides | ||
dm | ||
docker | ||
docs/examples | ||
example | ||
experimental | ||
fuzz | ||
gm | ||
gn | ||
include | ||
infra | ||
modules | ||
platform_tools | ||
resources | ||
samplecode | ||
site | ||
specs | ||
src | ||
tests | ||
third_party | ||
tools | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
go.mod | ||
go.sum | ||
LICENSE | ||
OWNERS | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
RELEASE_NOTES.txt | ||
whitespace.txt |
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at https://skia.org.