Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Issue 993863002: Make the canvas draw looper internal layer not part of SkCanvas save count

Created:
5 years, 9 months ago by Kimmo Kinnunen
Modified:
5 years, 8 months ago
Reviewers:
robertphillips, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Make the canvas draw looper internal layer not part of SkCanvas save count Image filter in a paint would leave save count in wrong state for normal draws. This could be observed through the canvas references during the draw call. An example of this is inspecting the canvas during a draw looper. Instead of recording deferred saves for each MCRec, record the current save count when the MCRec was created. Internal layers, i.e. layers that are created to implement a drawing mode instead of client calling SkCanvas::saveLayer, do not increase the save count even though they create MCRecs. BUG=skia:3388

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : another approach #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -34 lines) Patch
M gyp/tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkDrawLooper.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 10 chunks +25 lines, -34 lines 0 comments Download
A tests/DrawLooperTest.cpp View 1 2 1 chunk +104 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
Kimmo Kinnunen
5 years, 9 months ago (2015-03-10 08:23:15 UTC) #2
reed1
The fix seems good, thanks. I don't understand why the test has to also involve ...
5 years, 9 months ago (2015-03-24 17:49:17 UTC) #3
Kimmo Kinnunen
On 2015/03/24 17:49:17, reed1 wrote: > The fix seems good, thanks. > > I don't ...
5 years, 9 months ago (2015-03-25 06:18:26 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/993863002/20001
5 years, 9 months ago (2015-03-25 06:21:17 UTC) #6
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 9 months ago (2015-03-25 06:21:17 UTC) #7
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Please ask for an LGTM from a full ...
5 years, 9 months ago (2015-03-25 12:21:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/993863002/20001
5 years, 9 months ago (2015-03-26 20:14:19 UTC) #11
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 9 months ago (2015-03-26 20:14:21 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-GCC-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86_64-Release-Trybot/builds/172)
5 years, 9 months ago (2015-03-26 20:15:49 UTC) #14
Kimmo Kinnunen
Thanks for the feedback. How about this new version? For reference: This was landed in: ...
5 years, 8 months ago (2015-03-31 13:28:43 UTC) #15
reed1
5 years, 8 months ago (2015-04-03 20:03:52 UTC) #17
adding a 2nd pair of eyes.

Powered by Google App Engine
This is Rietveld 408576698