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

Issue 2064753003: Remove style application from GrPathRenderer subclasses (Closed)

Created:
4 years, 6 months ago by bsalomon
Modified:
4 years, 5 months ago
Base URL:
https://chromium.googlesource.com/skia.git@pathshape
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Remove style application from GrPathRenderer subclasses Now that GrPathRenderer is using GrShape it is possible to get a key for a path that was computed by applying style to an original path. This improves path renderer subclass selection, particularly when a post-styled path happens to work with a simpler path renderer (e.g. it is convex). Previously a more expensive path renderer may have applied the style and rendered it (e.g. the distance field PR) GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2064753003 Committed: https://skia.googlesource.com/skia/+/ee43241d72148545e4e3b75aa4338c491b39cc0c

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Total comments: 6

Patch Set 4 : Address comments from egdaniel@ #

Patch Set 5 : Fix stencil-and-cover onCanDrawPath #

Patch Set 6 : rm debugging asserts #

Patch Set 7 : Remove random style from DF batch test create, since it now only allows simple fill #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -245 lines) Patch
M src/gpu/GrStyle.h View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M src/gpu/batches/GrAADistanceFieldPathRenderer.h View 1 2 3 2 chunks +39 lines, -27 lines 0 comments Download
M src/gpu/batches/GrAADistanceFieldPathRenderer.cpp View 1 2 3 4 5 6 19 chunks +116 lines, -131 lines 0 comments Download
M src/gpu/batches/GrDefaultPathRenderer.cpp View 1 2 1 chunk +9 lines, -2 lines 0 comments Download
M src/gpu/batches/GrMSAAPathRenderer.cpp View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M src/gpu/batches/GrStencilAndCoverPathRenderer.cpp View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M src/gpu/batches/GrTessellatingPathRenderer.cpp View 1 7 chunks +46 lines, -71 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2064753003/40001
4 years, 6 months ago (2016-06-24 18:43:30 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-24 18:59:01 UTC) #7
bsalomon
https://codereview.chromium.org/2064753003/diff/40001/src/gpu/GrShape.cpp File src/gpu/GrShape.cpp (right): https://codereview.chromium.org/2064753003/diff/40001/src/gpu/GrShape.cpp#newcode41 src/gpu/GrShape.cpp:41: SkASSERT((Type::kPath == fType) == SkToBool(fPath.getMaybeNull())); Ignore all these. I ...
4 years, 6 months ago (2016-06-24 20:53:33 UTC) #8
egdaniel
https://codereview.chromium.org/2064753003/diff/40001/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp File src/gpu/batches/GrAADistanceFieldPathRenderer.cpp (right): https://codereview.chromium.org/2064753003/diff/40001/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp#newcode97 src/gpu/batches/GrAADistanceFieldPathRenderer.cpp:97: if (!args.fAntiAlias || !args.fShape->style().isSimpleFill() ||args.fShape->inverseFilled()) { space after || ...
4 years, 5 months ago (2016-06-27 13:16:58 UTC) #9
bsalomon
https://codereview.chromium.org/2064753003/diff/40001/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp File src/gpu/batches/GrAADistanceFieldPathRenderer.cpp (right): https://codereview.chromium.org/2064753003/diff/40001/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp#newcode97 src/gpu/batches/GrAADistanceFieldPathRenderer.cpp:97: if (!args.fAntiAlias || !args.fShape->style().isSimpleFill() ||args.fShape->inverseFilled()) { On 2016/06/27 13:16:58, ...
4 years, 5 months ago (2016-06-27 13:37:52 UTC) #10
egdaniel
lgtm
4 years, 5 months ago (2016-06-27 13:39:02 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2064753003/100001
4 years, 5 months ago (2016-06-27 13:39:17 UTC) #13
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/2064753003/120001
4 years, 5 months ago (2016-06-27 13:53:51 UTC) #16
commit-bot: I haz the power
4 years, 5 months ago (2016-06-27 14:18:21 UTC) #18
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/ee43241d72148545e4e3b75aa4338c491b39cc0c

Powered by Google App Engine
This is Rietveld 408576698