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

Issue 183453002: add new onClip* methods to SkCanvas (Closed)

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

Description

The goal of this CL is to add new onClip* methods that disassociate reporting on the state of the clip from the clip operations themselves. This is because, for some backends (e.g., the GPU), incrementally tracking the state of the clip creates some overhead. Once Chromium is moved over to the new API, the SkCanvas::clip* methods will be made non-virtual.

Patch Set 1 #

Patch Set 2 : clean up #

Patch Set 3 : more cleanup #

Total comments: 2

Patch Set 4 : add more overrides for debug and nul canvas #

Patch Set 5 : fix Chrome compilation issue and tileGrid bug #

Patch Set 6 : remove debug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+392 lines, -328 lines) Patch
M experimental/PdfViewer/SkNulCanvas.h View 1 2 3 4 1 chunk +56 lines, -45 lines 0 comments Download
M include/core/SkCanvas.h View 1 2 3 4 5 chunks +16 lines, -7 lines 0 comments Download
M include/utils/SkDeferredCanvas.h View 1 2 3 4 2 chunks +5 lines, -8 lines 0 comments Download
M include/utils/SkDumpCanvas.h View 1 2 3 4 2 chunks +7 lines, -6 lines 0 comments Download
M include/utils/SkLuaCanvas.h View 1 2 3 4 2 chunks +5 lines, -6 lines 0 comments Download
M include/utils/SkNWayCanvas.h View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M include/utils/SkProxyCanvas.h View 1 2 3 4 2 chunks +5 lines, -6 lines 0 comments Download
M src/core/SkBBoxHierarchyRecord.h View 1 2 3 4 1 chunk +6 lines, -12 lines 0 comments Download
M src/core/SkBBoxHierarchyRecord.cpp View 1 2 3 4 1 chunk +15 lines, -15 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 15 chunks +84 lines, -43 lines 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 2 3 4 4 chunks +8 lines, -4 lines 0 comments Download
M src/core/SkPictureRecord.h View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 4 4 chunks +14 lines, -22 lines 0 comments Download
M src/pipe/SkGPipeWrite.cpp View 1 2 3 4 3 chunks +28 lines, -19 lines 0 comments Download
M src/utils/SkCanvasStack.h View 1 2 3 4 1 chunk +6 lines, -5 lines 0 comments Download
M src/utils/SkCanvasStack.cpp View 1 2 3 4 2 chunks +8 lines, -11 lines 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 2 3 4 1 chunk +17 lines, -22 lines 0 comments Download
M src/utils/SkDumpCanvas.cpp View 1 2 3 4 1 chunk +13 lines, -13 lines 0 comments Download
M src/utils/SkLuaCanvas.cpp View 1 2 3 4 1 chunk +11 lines, -11 lines 0 comments Download
M src/utils/SkNWayCanvas.cpp View 1 2 3 4 1 chunk +11 lines, -11 lines 0 comments Download
M src/utils/SkNoSaveLayerCanvas.h View 1 2 3 4 1 chunk +8 lines, -13 lines 0 comments Download
M src/utils/SkProxyCanvas.cpp View 1 2 3 4 1 chunk +8 lines, -8 lines 0 comments Download
M src/utils/debugger/SkDebugCanvas.h View 1 2 3 4 2 chunks +24 lines, -10 lines 0 comments Download
M src/utils/debugger/SkDebugCanvas.cpp View 1 2 3 4 2 chunks +10 lines, -13 lines 0 comments Download
M tests/PictureTest.cpp View 1 2 3 4 1 chunk +17 lines, -9 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
robertphillips
6 years, 9 months ago (2014-02-27 18:11:28 UTC) #1
reed1
lgtm w/ question about virtualization https://codereview.chromium.org/183453002/diff/30001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/183453002/diff/30001/include/core/SkCanvas.h#newcode981 include/core/SkCanvas.h:981: virtual bool isClipEmpty() const; ...
6 years, 9 months ago (2014-02-27 18:43:50 UTC) #2
robertphillips
https://codereview.chromium.org/183453002/diff/30001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/183453002/diff/30001/include/core/SkCanvas.h#newcode981 include/core/SkCanvas.h:981: virtual bool isClipEmpty() const; I learned about a new ...
6 years, 9 months ago (2014-02-27 20:20:30 UTC) #3
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 9 months ago (2014-02-28 14:30:06 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/183453002/50001
6 years, 9 months ago (2014-02-28 14:30:19 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-28 14:30:26 UTC) #6
commit-bot: I haz the power
Failed to apply patch for src/utils/debugger/SkDebugCanvas.h: While running patch -p0 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-02-28 14:30:27 UTC) #7
robertphillips
committed as r13620
6 years, 9 months ago (2014-02-28 14:36:04 UTC) #8
robertphillips
This was reverted in r13622 due to broken Chrome Canary compilation and failing tilegrid tests
6 years, 9 months ago (2014-02-28 15:29:00 UTC) #9
robertphillips
6 years, 9 months ago (2014-02-28 18:20:02 UTC) #10
Message was sent while issue was closed.
Relanded (with fixes) as r13627

Powered by Google App Engine
This is Rietveld 408576698