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

Issue 2246113002: Convert GrAppliedClip interface to builder style (Closed)

Created:
4 years, 4 months ago by csmartdalton
Modified:
4 years, 4 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@fixstencilpath
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Convert GrAppliedClip interface to builder style GrAppliedClip was about at its limit for how many "make" functions it could have. Window rectangles would push it over the edge. This change makes it so GrDrawTarget supplies the original draw bounds to the constructor, and then GrClip adds the various required clipping techniques. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2246113002 Committed: https://skia.googlesource.com/skia/+/d211e7875d9d564f075f664d9f402e1fed6dd90c

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebase #

Total comments: 5

Patch Set 3 : Convert GrAppliedClip interface to builder style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -248 lines) Patch
M include/gpu/GrClip.h View 1 2 4 chunks +24 lines, -101 lines 0 comments Download
M include/gpu/GrTypesPriv.h View 1 chunk +7 lines, -0 lines 0 comments Download
M src/gpu/GrClip.cpp View 1 2 2 chunks +10 lines, -20 lines 0 comments Download
M src/gpu/GrClipStackClip.h View 1 chunk +1 line, -5 lines 0 comments Download
M src/gpu/GrClipStackClip.cpp View 1 2 15 chunks +31 lines, -59 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 6 chunks +23 lines, -37 lines 0 comments Download
M src/gpu/GrReducedClip.h View 2 chunks +14 lines, -10 lines 0 comments Download
M src/gpu/GrReducedClip.cpp View 4 chunks +8 lines, -5 lines 0 comments Download
M tests/ClipStackTest.cpp View 7 chunks +21 lines, -11 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
csmartdalton
https://codereview.chromium.org/2246113002/diff/1/include/gpu/GrClip.h File include/gpu/GrClip.h (left): https://codereview.chromium.org/2246113002/diff/1/include/gpu/GrClip.h#oldcode268 include/gpu/GrClip.h:268: SkRect fDeviceBounds; Here we can eventually store a simple ...
4 years, 4 months ago (2016-08-15 16:05:26 UTC) #3
csmartdalton
Oops, patch 1 had a rebasing error https://codereview.chromium.org/2246113002/diff/20001/include/gpu/GrClip.h File include/gpu/GrClip.h (left): https://codereview.chromium.org/2246113002/diff/20001/include/gpu/GrClip.h#oldcode268 include/gpu/GrClip.h:268: SkRect fDeviceBounds; ...
4 years, 4 months ago (2016-08-15 16:12:17 UTC) #6
bsalomon
https://codereview.chromium.org/2246113002/diff/20001/include/gpu/GrClip.h File include/gpu/GrClip.h (right): https://codereview.chromium.org/2246113002/diff/20001/include/gpu/GrClip.h#newcode46 include/gpu/GrClip.h:46: * Returns the device bounds of the draw after ...
4 years, 4 months ago (2016-08-15 16:34:03 UTC) #7
csmartdalton
On 2016/08/15 16:34:03, bsalomon wrote: > https://codereview.chromium.org/2246113002/diff/20001/include/gpu/GrClip.h > File include/gpu/GrClip.h (right): > > https://codereview.chromium.org/2246113002/diff/20001/include/gpu/GrClip.h#newcode46 > ...
4 years, 4 months ago (2016-08-15 17:27:28 UTC) #8
csmartdalton
On 2016/08/15 16:34:03, bsalomon wrote: > https://codereview.chromium.org/2246113002/diff/20001/include/gpu/GrClip.h > File include/gpu/GrClip.h (right): > > https://codereview.chromium.org/2246113002/diff/20001/include/gpu/GrClip.h#newcode46 > ...
4 years, 4 months ago (2016-08-15 17:27:29 UTC) #9
bsalomon
Ok, this makes more sense to me. lgtm
4 years, 4 months ago (2016-08-15 17:56:30 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2246113002/40001
4 years, 4 months ago (2016-08-15 18:01:43 UTC) #14
commit-bot: I haz the power
4 years, 4 months ago (2016-08-15 18:17:34 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/d211e7875d9d564f075f664d9f402e1fed6dd90c

Powered by Google App Engine
This is Rietveld 408576698