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

Issue 1100073003: Extract gpu line dashing to GrDashLinePathRenderer (Closed)

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

Description

Extract gpu line dashing to GrDashLinePathRenderer Move line dashing logic from GrContext::drawPath to GrDashLinePathRenderer. This makes it possible to let path renderers render arbitrary dashed paths. End goal is to implement dashing in GrStencilAndCoverPathRenderer. Committed: https://skia.googlesource.com/skia/+/1899651ffc459f5462aa989cd6d08507947b67e4

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -177 lines) Patch
M gyp/gpu.gypi View 2 chunks +3 lines, -0 lines 0 comments Download
M include/gpu/GrContext.h View 2 chunks +1 line, -2 lines 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 +3 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 4 chunks +5 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 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrAddPathRenderers_default.cpp View 2 chunks +3 lines, -0 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 6 chunks +5 lines, -6 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 5 chunks +58 lines, -64 lines 0 comments Download
A + src/gpu/GrDashLinePathRenderer.h View 2 chunks +15 lines, -14 lines 0 comments Download
A src/gpu/GrDashLinePathRenderer.cpp View 1 chunk +44 lines, -0 lines 0 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 +11 lines, -11 lines 0 comments Download
M src/gpu/GrPathRenderer.h View 9 chunks +15 lines, -12 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 +7 lines, -6 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 4 chunks +13 lines, -12 lines 0 comments Download
M src/gpu/GrStrokeInfo.h View 1 2 3 chunks +19 lines, -0 lines 0 comments Download
A src/gpu/GrStrokeInfo.cpp View 1 chunk +23 lines, -0 lines 0 comments Download
M src/gpu/GrTessellatingPathRenderer.h View 1 chunk +3 lines, -3 lines 0 comments Download
M src/gpu/GrTessellatingPathRenderer.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/effects/GrDashingEffect.h View 1 chunk +3 lines, -1 line 0 comments Download
M src/gpu/effects/GrDashingEffect.cpp View 3 chunks +4 lines, -10 lines 0 comments Download
M tests/TessellatingPathRendererTests.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (4 generated)
Kimmo Kinnunen
5 years, 8 months ago (2015-04-23 12:27:37 UTC) #2
egdaniel
Adding stephan to this cl because I believe he was recently working on doing a ...
5 years, 8 months ago (2015-04-23 14:36:05 UTC) #4
Stephen White
On 2015/04/23 14:36:05, egdaniel wrote: > Adding stephan to this cl because I believe he ...
5 years, 8 months ago (2015-04-23 15:01:19 UTC) #5
Stephen White
On 2015/04/23 15:01:19, Stephen White wrote: > On 2015/04/23 14:36:05, egdaniel wrote: > > Adding ...
5 years, 8 months ago (2015-04-23 15:02:06 UTC) #6
joshualitt
On 2015/04/23 15:02:06, Stephen White wrote: > On 2015/04/23 15:01:19, Stephen White wrote: > > ...
5 years, 8 months ago (2015-04-24 14:52:22 UTC) #7
bsalomon
lgtm with some nits. https://codereview.chromium.org/1100073003/diff/20001/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): https://codereview.chromium.org/1100073003/diff/20001/src/gpu/GrContext.cpp#newcode1370 src/gpu/GrContext.cpp:1370: if (is_nested_rects(target, &pipelineBuilder, color, viewMatrix, ...
5 years, 8 months ago (2015-04-24 15:56:46 UTC) #8
Kimmo Kinnunen
https://codereview.chromium.org/1100073003/diff/20001/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): https://codereview.chromium.org/1100073003/diff/20001/src/gpu/GrContext.cpp#newcode1370 src/gpu/GrContext.cpp:1370: if (is_nested_rects(target, &pipelineBuilder, color, viewMatrix, path, strokeRec, rects)) { ...
5 years, 8 months ago (2015-04-27 06:12:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1100073003/40001
5 years, 8 months ago (2015-04-27 06:14:31 UTC) #12
commit-bot: I haz the power
5 years, 8 months ago (2015-04-27 06:18:54 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/1899651ffc459f5462aa989cd6d08507947b67e4

Powered by Google App Engine
This is Rietveld 408576698