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

Issue 541593005: allow canvas to force conservative clips (for speed) (Closed)

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

Description

Allow SkCanvas to be initialized to force conservative rasterclips. This has the following effects: 1. Queries to the current clip will be conservatively large. This can mean the quickReject may return false more often. 2. The conservative clips mean less work is done. 3. Enabled by default for Gpu, Record, and NoSaveLayer canvases. 4. API is private for now. Committed: https://skia.googlesource.com/skia/+/27a5e656c3d6ef22f9cb34de18e1b960da3aa241

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : now with all gms passing #

Patch Set 4 : add private InitFlag to canvas #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -166 lines) Patch
M include/core/SkCanvas.h View 1 2 3 4 5 3 chunks +11 lines, -6 lines 0 comments Download
M include/core/SkDevice.h View 1 chunk +2 lines, -0 lines 0 comments Download
M include/gpu/SkGpuDevice.h View 1 chunk +1 line, -0 lines 0 comments Download
M include/utils/SkNoSaveLayerCanvas.h View 1 2 3 4 5 2 chunks +2 lines, -16 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 13 chunks +71 lines, -112 lines 0 comments Download
M src/core/SkDeviceLooper.cpp View 1 chunk +4 lines, -3 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M src/core/SkRasterClip.h View 1 2 3 4 4 chunks +7 lines, -3 lines 0 comments Download
M src/core/SkRasterClip.cpp View 1 2 3 4 5 6 8 chunks +124 lines, -14 lines 1 comment Download
M src/core/SkRecorder.cpp View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M tests/AAClipTest.cpp View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M tests/PictureTest.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
reed1
the rasterclip changes seem to be correct. However, what is the best way to "trigger" ...
6 years, 3 months ago (2014-09-08 21:37:27 UTC) #2
reed1
PTAL -- added flag to canvas for this behavior, but it is also deducible from ...
6 years, 3 months ago (2014-09-09 16:34:32 UTC) #3
mtklein
I'm probably a bit behind on this... clients can't get at the clip anymore? https://codereview.chromium.org/541593005/diff/100001/src/core/SkRasterClip.cpp ...
6 years, 3 months ago (2014-09-09 17:25:39 UTC) #4
reed1
https://codereview.chromium.org/541593005/diff/100001/src/core/SkRasterClip.cpp File src/core/SkRasterClip.cpp (right): https://codereview.chromium.org/541593005/diff/100001/src/core/SkRasterClip.cpp#newcode116 src/core/SkRasterClip.cpp:116: // this->getDevice()->getGlobalBounds(&deviceIBounds); On 2014/09/09 17:25:38, mtklein wrote: > stray? ...
6 years, 3 months ago (2014-09-09 17:41:38 UTC) #6
mtklein
Brain fart! LGTM.
6 years, 3 months ago (2014-09-09 17:51:52 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/reed@google.com/541593005/120001
6 years, 3 months ago (2014-09-09 19:11:45 UTC) #9
commit-bot: I haz the power
Committed patchset #7 (id:120001) as 27a5e656c3d6ef22f9cb34de18e1b960da3aa241
6 years, 3 months ago (2014-09-09 19:19:33 UTC) #10
reed1
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/554033003/ by reed@google.com. ...
6 years, 3 months ago (2014-09-09 19:50:18 UTC) #11
robertphillips
6 years, 3 months ago (2014-09-10 14:44:23 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/541593005/diff/120001/src/core/SkRasterClip.cpp
File src/core/SkRasterClip.cpp (right):

https://codereview.chromium.org/541593005/diff/120001/src/core/SkRasterClip.c...
src/core/SkRasterClip.cpp:171: 
Subroutine for this and the version in SkRasterClip::op ?

Powered by Google App Engine
This is Rietveld 408576698