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

Issue 595953002: We need to adjust the bounds of clip ops with SaveLayer paints too. (Closed)

Created:
6 years, 3 months ago by mtklein_C
Modified:
6 years, 3 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

We need to adjust the bounds of clip ops with SaveLayer paints too. Before this CL, SkRecord only adjusted the bounds of draw ops for SaveLayers' paints. That worked fine, but as a final step we intersect the bounds of draw ops with the bounds of the current clip, essentially undoing all that work. I think the right fix here is to also adjust the bounds of the clip ops. BUG=skia:2957, 415468 R=robertphillips@google.com Committed: https://skia.googlesource.com/skia/+/271a030f5d0d3c59715fbeffb31c761279f3f8ca

Patch Set 1 #

Patch Set 2 : tweak new gm #

Total comments: 12

Patch Set 3 : test instead of GM #

Patch Set 4 : explain more #

Total comments: 2

Patch Set 5 : grammar #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -15 lines) Patch
M src/core/SkRecordDraw.cpp View 4 chunks +32 lines, -14 lines 0 comments Download
M tests/RecordDrawTest.cpp View 1 2 3 4 2 chunks +28 lines, -1 line 0 comments Download

Messages

Total messages: 17 (4 generated)
mtklein
6 years, 3 months ago (2014-09-23 15:17:26 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/595953002/20001
6 years, 3 months ago (2014-09-23 15:17:59 UTC) #4
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 3 months ago (2014-09-23 15:17:59 UTC) #5
Stephen White
https://codereview.chromium.org/595953002/diff/20001/gm/imageblurtiled2.cpp File gm/imageblurtiled2.cpp (right): https://codereview.chromium.org/595953002/diff/20001/gm/imageblurtiled2.cpp#newcode22 gm/imageblurtiled2.cpp:22: virtual SkString onShortName() { return SkString("imageblurtiled2"); } Nit: this ...
6 years, 3 months ago (2014-09-23 16:03:51 UTC) #6
robertphillips
https://codereview.chromium.org/595953002/diff/20001/gm/imageblurtiled2.cpp File gm/imageblurtiled2.cpp (right): https://codereview.chromium.org/595953002/diff/20001/gm/imageblurtiled2.cpp#newcode20 gm/imageblurtiled2.cpp:20: // This GM is a regression test for http://skbug.com/2957 ...
6 years, 3 months ago (2014-09-23 16:36:39 UTC) #7
mtklein
PTAL https://codereview.chromium.org/595953002/diff/20001/gm/imageblurtiled2.cpp File gm/imageblurtiled2.cpp (right): https://codereview.chromium.org/595953002/diff/20001/gm/imageblurtiled2.cpp#newcode22 gm/imageblurtiled2.cpp:22: virtual SkString onShortName() { return SkString("imageblurtiled2"); } > ...
6 years, 3 months ago (2014-09-23 17:43:13 UTC) #8
mtklein
https://codereview.chromium.org/595953002/diff/20001/src/core/SkRecordDraw.cpp File src/core/SkRecordDraw.cpp (right): https://codereview.chromium.org/595953002/diff/20001/src/core/SkRecordDraw.cpp#newcode201 src/core/SkRecordDraw.cpp:201: fCurrentClipBounds = this->adjustForSaveLayerPaints(&clip) ? clip : Bounds::MakeLargest(); On 2014/09/23 ...
6 years, 3 months ago (2014-09-23 18:02:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/595953002/60001
6 years, 3 months ago (2014-09-23 18:02:54 UTC) #11
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 3 months ago (2014-09-23 18:02:55 UTC) #12
Stephen White
On 2014/09/23 18:02:09, mtklein wrote: > https://codereview.chromium.org/595953002/diff/20001/src/core/SkRecordDraw.cpp > File src/core/SkRecordDraw.cpp (right): > > https://codereview.chromium.org/595953002/diff/20001/src/core/SkRecordDraw.cpp#newcode201 > ...
6 years, 3 months ago (2014-09-23 18:03:18 UTC) #13
robertphillips
lgtm + some comment suggestions https://codereview.chromium.org/595953002/diff/60001/tests/RecordDrawTest.cpp File tests/RecordDrawTest.cpp (right): https://codereview.chromium.org/595953002/diff/60001/tests/RecordDrawTest.cpp#newcode243 tests/RecordDrawTest.cpp:243: lower -> less ? ...
6 years, 3 months ago (2014-09-23 18:56:35 UTC) #14
mtklein
On 2014/09/23 18:56:35, robertphillips wrote: > lgtm + some comment suggestions > > https://codereview.chromium.org/595953002/diff/60001/tests/RecordDrawTest.cpp > ...
6 years, 3 months ago (2014-09-23 19:03:22 UTC) #16
mtklein_C
6 years, 3 months ago (2014-09-23 19:28:43 UTC) #17
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as 271a030 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698