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

Issue 1096513002: Pass dashing information to path rasterizers. (Closed)

Created:
5 years, 8 months ago by Stephen White
Modified:
5 years, 7 months ago
Reviewers:
bsalomon, egdaniel
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Pass dashing information to path rasterizers. This is a WIP patch. This changes the canDrawPath() and onDrawPath() virtuals to take a GrStrokeInfo instead of an SkStrokeRec. It also adds a SkPathEffect to GrStrokeInfo. Note that some of the existing dashing-related fields in GrStrokeInfo may now be redundant, and could probably be removed. Note: this required losing the copy-on-write info in GrContext::internalDrawPath(). If this is required, we can figure out a way to make GrStrokeInfo copy-on-write, since it isn't currently. BUG=skia:

Patch Set 1 #

Patch Set 2 : fix 100-col issue #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -105 lines) Patch
M experimental/AndroidPathRenderer/GrAndroidPathRenderer.h View 1 chunk +2 lines, -2 lines 0 comments Download
M experimental/AndroidPathRenderer/GrAndroidPathRenderer.cpp View 2 chunks +5 lines, -5 lines 0 comments Download
M experimental/StrokePathRenderer/GrStrokePathRenderer.h View 1 chunk +2 lines, -2 lines 0 comments Download
M experimental/StrokePathRenderer/GrStrokePathRenderer.cpp View 2 chunks +5 lines, -5 lines 0 comments Download
M include/gpu/GrContext.h View 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/GrPathRendererChain.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrAAConvexPathRenderer.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrAAConvexPathRenderer.cpp View 3 chunks +4 lines, -3 lines 0 comments Download
M src/gpu/GrAADistanceFieldPathRenderer.h View 1 chunk +3 lines, -3 lines 0 comments Download
M src/gpu/GrAADistanceFieldPathRenderer.cpp View 5 chunks +6 lines, -5 lines 0 comments Download
M src/gpu/GrAAHairLinePathRenderer.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrAAHairLinePathRenderer.cpp View 4 chunks +5 lines, -4 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 6 chunks +6 lines, -5 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 4 chunks +10 lines, -9 lines 2 comments Download
M src/gpu/GrDefaultPathRenderer.h View 2 chunks +5 lines, -5 lines 0 comments Download
M src/gpu/GrDefaultPathRenderer.cpp View 6 chunks +10 lines, -10 lines 0 comments Download
M src/gpu/GrPathRenderer.h View 7 chunks +7 lines, -7 lines 0 comments Download
M src/gpu/GrPathRendererChain.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrSoftwarePathRenderer.h View 1 chunk +3 lines, -3 lines 0 comments Download
M src/gpu/GrSoftwarePathRenderer.cpp View 4 chunks +5 lines, -4 lines 0 comments Download
M src/gpu/GrStencilAndCoverPathRenderer.h View 1 chunk +4 lines, -4 lines 0 comments Download
M src/gpu/GrStencilAndCoverPathRenderer.cpp View 5 chunks +9 lines, -8 lines 0 comments Download
M src/gpu/GrStrokeInfo.h View 3 chunks +15 lines, -5 lines 2 comments Download
M src/gpu/GrTessellatingPathRenderer.h View 1 chunk +3 lines, -3 lines 0 comments Download
M src/gpu/GrTessellatingPathRenderer.cpp View 4 chunks +5 lines, -4 lines 0 comments Download
M tests/TessellatingPathRendererTests.cpp View 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 9 (3 generated)
Stephen White
Brian, Greg: let me know if this is headed in the right direction.
5 years, 8 months ago (2015-04-16 16:25:08 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1096513002/20001
5 years, 8 months ago (2015-04-16 16:33:10 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-16 16:39:28 UTC) #6
bsalomon
Seems like the right direction to me. I'm not sure whether we added that copy ...
5 years, 8 months ago (2015-04-16 17:52:18 UTC) #7
bsalomon
https://codereview.chromium.org/1096513002/diff/20001/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): https://codereview.chromium.org/1096513002/diff/20001/src/gpu/GrContext.cpp#newcode1458 src/gpu/GrContext.cpp:1458: if (stroke.getStrokeRec().applyToPath(tmpPath.init(), *pathPtr)) { need to apply path effect ...
5 years, 8 months ago (2015-04-16 17:53:38 UTC) #8
Stephen White
5 years, 7 months ago (2015-05-14 22:12:53 UTC) #9
On 2015/04/16 17:53:38, bsalomon wrote:
> https://codereview.chromium.org/1096513002/diff/20001/src/gpu/GrContext.cpp
> File src/gpu/GrContext.cpp (right):
> 
>
https://codereview.chromium.org/1096513002/diff/20001/src/gpu/GrContext.cpp#n...
> src/gpu/GrContext.cpp:1458: if
> (stroke.getStrokeRec().applyToPath(tmpPath.init(), *pathPtr)) {
> need to apply path effect here, right?

Closing this in favour of https://codereview.chromium.org/1100073003, which has
already landed.

Powered by Google App Engine
This is Rietveld 408576698