Go to file
Lee Salzman 5d8949c119 mark SkCanvas layer device as immutable before compositing it on restore
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>
2018-09-21 18:34:32 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Reland "add getAlphaf() to pixmap/bitmap" 2018-09-21 17:41:03 +00:00
bin Add script to pull svgs to svgs/ and add to .gitignore 2018-08-31 20:02:24 +00:00
dm SkDocument: Factories now located in SkPDFDocument.h and SkXPSDocument.h 2018-09-20 18:21:07 +00:00
docker Use new build targets in continuous build of skottie and debugger. 2018-09-20 15:26:18 +00:00
docs doc change for getAlphaf 2018-09-21 18:11:06 +00:00
example Compile with GCC 7.2.0. 2018-03-13 22:18:18 +00:00
experimental move skpipe to experimental 2018-09-21 17:20:25 +00:00
fuzz move skpipe to experimental 2018-09-21 17:20:25 +00:00
gm [skottie] GM exercising external font loading 2018-09-20 19:05:35 +00:00
gn move skpipe to experimental 2018-09-21 17:20:25 +00:00
include Reland "add getAlphaf() to pixmap/bitmap" 2018-09-21 17:41:03 +00:00
infra Update lottie samples 2018-09-21 16:34:04 +00:00
modules [CanvasKit] Implement some basic Canvas/Surface things. 2018-09-21 12:03:55 +00:00
platform_tools [skottie] Plumb external SkFontMgr 2018-08-23 13:13:30 +00:00
resources [skottie] GM exercising external font loading 2018-09-20 19:05:35 +00:00
samplecode Remove a largue quantity of 4444 and/or dithering code 2018-09-21 00:50:06 +00:00
site doc change for getAlphaf 2018-09-21 18:11:06 +00:00
src mark SkCanvas layer device as immutable before compositing it on restore 2018-09-21 18:34:32 +00:00
tests Reland "add getAlphaf() to pixmap/bitmap" 2018-09-21 17:41:03 +00:00
third_party Reland "always optimize third_party code" 2018-09-20 23:21:01 +00:00
tools Set window dimensions with GetClientRect, not GetWindowRect 2018-09-21 14:18:18 +00:00
.clang-format Update .clang-format to handle Objective-C files 2018-07-27 21:33:30 +00:00
.gitignore Add script to pull svgs to svgs/ and add to .gitignore 2018-08-31 20:02:24 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Fixed SkVertices crashing on Windows DLL builds 2018-04-22 14:42:01 +00:00
BUILD.gn move skpipe to experimental 2018-09-21 17:20:25 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll third_party/externals/angle2 a977acc85769..ab5fb5edb186 (4 commits) 2018-09-21 11:21:15 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py Add new autoroll service accounts to AUTHORS check bypass 2018-09-07 18:49:23 +00:00
public.bzl move skpipe to experimental 2018-09-21 17:20:25 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
whitespace.txt [infra] Marker for IntelBayTrail BIOS update. 2018-09-17 16:47:35 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.