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

Issue 200923008: Fix cull nesting assertion. (Closed)

Created:
6 years, 9 months ago by f(malita)
Modified:
6 years, 9 months ago
Reviewers:
robertphillips, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Fix cull nesting assertion. Cull rects are in local coordinates and cannot be compared directly. No wonder it was so hard enforcing this in Blink :o This moves the validation logic into SkCanvas, using a device-space cull stack (debug build only). There are still some Blink bugs causing violations, so for now I'd like to keep this as an error message only. R=reed@google.com,robertphillips@google.com Committed: http://code.google.com/p/skia/source/detail?r=13885

Patch Set 1 #

Total comments: 13

Patch Set 2 : Updated per comments. #

Patch Set 3 : Split validation method. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -27 lines) Patch
M include/core/SkCanvas.h View 1 2 2 chunks +6 lines, -10 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 2 chunks +0 lines, -17 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
f(malita)
6 years, 9 months ago (2014-03-19 22:26:36 UTC) #1
robertphillips
https://codereview.chromium.org/200923008/diff/1/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/200923008/diff/1/include/core/SkCanvas.h#newcode1397 include/core/SkCanvas.h:1397: #ifdef SK_DEBUG // The cull stack cull rects are ...
6 years, 9 months ago (2014-03-20 12:23:56 UTC) #2
f(malita)
https://codereview.chromium.org/200923008/diff/1/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/200923008/diff/1/include/core/SkCanvas.h#newcode1397 include/core/SkCanvas.h:1397: #ifdef SK_DEBUG On 2014/03/20 12:23:56, robertphillips wrote: > // ...
6 years, 9 months ago (2014-03-20 13:30:58 UTC) #3
robertphillips
https://codereview.chromium.org/200923008/diff/1/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (left): https://codereview.chromium.org/200923008/diff/1/src/core/SkPictureRecord.cpp#oldcode1561 src/core/SkPictureRecord.cpp:1561: void SkPictureRecord::onPushCull(const SkRect& cullRect) { Aren't they all in ...
6 years, 9 months ago (2014-03-20 14:20:41 UTC) #4
f(malita)
https://codereview.chromium.org/200923008/diff/1/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (left): https://codereview.chromium.org/200923008/diff/1/src/core/SkPictureRecord.cpp#oldcode1561 src/core/SkPictureRecord.cpp:1561: void SkPictureRecord::onPushCull(const SkRect& cullRect) { On 2014/03/20 14:20:41, robertphillips ...
6 years, 9 months ago (2014-03-20 14:38:20 UTC) #5
f(malita)
Relocated the tracking logic into pushCull proper so that it's balanced vs. popCull.
6 years, 9 months ago (2014-03-20 15:23:51 UTC) #6
robertphillips
lgtm fwiw
6 years, 9 months ago (2014-03-20 15:28:14 UTC) #7
reed1
lgtm
6 years, 9 months ago (2014-03-20 20:03:35 UTC) #8
f(malita)
The CQ bit was checked by fmalita@chromium.org
6 years, 9 months ago (2014-03-20 20:17:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/fmalita@chromium.org/200923008/40001
6 years, 9 months ago (2014-03-20 20:17:28 UTC) #10
commit-bot: I haz the power
6 years, 9 months ago (2014-03-20 20:25:17 UTC) #11
Message was sent while issue was closed.
Change committed as 13885

Powered by Google App Engine
This is Rietveld 408576698