5d8949c119
Making a SkSpecialImage via snapSpecial on the layer device during restore triggers an unnecessary and problematic copy. The layer device will never be further modified since it is about to be destroyed, but the snapshot does not know of this since it is never informed. This ensures that the layer device's internal bitmap is properly marked as immutable before it is composited so that snapshotting it does not create a copy anymore. Bug: skia: Change-Id: I13dd3b5c0e1b8e7c9dfededba53d21dbac2d5c63 Reviewed-on: https://skia-review.googlesource.com/155635 Reviewed-by: Robert Phillips <robertphillips@google.com> Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com> |
||
---|---|---|
animations | ||
bench | ||
bin | ||
dm | ||
docker | ||
docs | ||
example | ||
experimental | ||
fuzz | ||
gm | ||
gn | ||
include | ||
infra | ||
modules | ||
platform_tools | ||
resources | ||
samplecode | ||
site | ||
src | ||
tests | ||
third_party | ||
tools | ||
.clang-format | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
Doxyfile | ||
LICENSE | ||
OWNERS | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
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.