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

Issue 1957363002: Replace GrStrokeInfo with GrStyle. (Closed)

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

Description

Replace GrStrokeInfo with GrStyle. A side effect is that arbitrary path effects can no be pushed deeper into the Ganesh flow for paths. They may be applied by path renderers. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1957363002 Committed: https://skia.googlesource.com/skia/+/33595bdf4b64a745f6340338d307e806e96c587f Committed: https://skia.googlesource.com/skia/+/6663acff010ce752e4bf778da81fa97448c9db31

Patch Set 1 #

Patch Set 2 : Remove dependency on SkDashPathEffect from GrDashingEffect.cpp #

Total comments: 12

Patch Set 3 : Address comments #

Patch Set 4 : don't include private headers in GrTestUtils.h #

Patch Set 5 : Fix issue where hairlines were going to MSAAPathRenderer #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+657 lines, -893 lines) Patch
M gyp/gpu.gypi View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M include/gpu/GrContext.h View 1 chunk +0 lines, -1 line 0 comments Download
M include/gpu/GrDrawContext.h View 7 chunks +12 lines, -19 lines 0 comments Download
M include/gpu/GrTestUtils.h View 1 2 3 3 chunks +31 lines, -4 lines 0 comments Download
M src/gpu/GrBlurUtils.h View 2 chunks +2 lines, -3 lines 0 comments Download
M src/gpu/GrBlurUtils.cpp View 1 2 9 chunks +61 lines, -101 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 10 chunks +8 lines, -10 lines 0 comments Download
M src/gpu/GrDrawContext.cpp View 1 2 21 chunks +69 lines, -70 lines 0 comments Download
M src/gpu/GrPath.h View 3 chunks +6 lines, -6 lines 0 comments Download
M src/gpu/GrPath.cpp View 5 chunks +56 lines, -30 lines 0 comments Download
M src/gpu/GrPathRenderer.h View 10 chunks +13 lines, -17 lines 0 comments Download
M src/gpu/GrPathRendererChain.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrPathRendering.h View 3 chunks +14 lines, -12 lines 0 comments Download
M src/gpu/GrPathRendering.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/GrResourceProvider.h View 2 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/GrResourceProvider.cpp View 1 chunk +6 lines, -6 lines 0 comments Download
M src/gpu/GrSWMaskHelper.h View 2 chunks +3 lines, -4 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 4 chunks +6 lines, -16 lines 0 comments Download
M src/gpu/GrSoftwarePathRenderer.cpp View 2 chunks +2 lines, -8 lines 0 comments Download
D src/gpu/GrStrokeInfo.h View 1 chunk +0 lines, -191 lines 0 comments Download
D src/gpu/GrStrokeInfo.cpp View 1 chunk +0 lines, -93 lines 0 comments Download
M src/gpu/GrStyle.h View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M src/gpu/GrTestUtils.cpp View 1 2 3 2 chunks +46 lines, -19 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 9 chunks +11 lines, -15 lines 0 comments Download
M src/gpu/SkGpuDevice_drawTexture.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/batches/GrAAConvexPathRenderer.cpp View 2 chunks +1 line, -2 lines 0 comments Download
M src/gpu/batches/GrAADistanceFieldPathRenderer.cpp View 3 chunks +21 lines, -12 lines 0 comments Download
M src/gpu/batches/GrAAHairLinePathRenderer.cpp View 4 chunks +10 lines, -6 lines 0 comments Download
M src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp View 3 chunks +15 lines, -11 lines 0 comments Download
M src/gpu/batches/GrDashLinePathRenderer.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/batches/GrDefaultPathRenderer.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/batches/GrDefaultPathRenderer.cpp View 6 chunks +17 lines, -17 lines 0 comments Download
M src/gpu/batches/GrMSAAPathRenderer.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/gpu/batches/GrMSAAPathRenderer.cpp View 1 2 3 4 6 chunks +22 lines, -22 lines 0 comments Download
M src/gpu/batches/GrPLSPathRenderer.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/batches/GrStencilAndCoverPathRenderer.cpp View 5 chunks +11 lines, -9 lines 0 comments Download
M src/gpu/batches/GrTessellatingPathRenderer.cpp View 1 2 3 4 8 chunks +53 lines, -46 lines 1 comment Download
M src/gpu/effects/GrDashingEffect.h View 2 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/effects/GrDashingEffect.cpp View 1 6 chunks +16 lines, -21 lines 0 comments Download
M src/gpu/gl/GrGLPath.h View 2 chunks +3 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGLPath.cpp View 6 chunks +19 lines, -23 lines 0 comments Download
M src/gpu/gl/GrGLPathRange.h View 4 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGLPathRange.cpp View 5 chunks +23 lines, -30 lines 0 comments Download
M src/gpu/gl/GrGLPathRendering.h View 2 chunks +3 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGLPathRendering.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M src/gpu/text/GrStencilAndCoverTextContext.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/text/GrStencilAndCoverTextContext.cpp View 7 chunks +51 lines, -26 lines 0 comments Download
M tests/GpuDrawPathTest.cpp View 2 chunks +3 lines, -4 lines 0 comments Download
M tests/TessellatingPathRendererTests.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (19 generated)
bsalomon
A lot, but not all, of this is wrote. Most of the files have few ...
4 years, 7 months ago (2016-05-09 18:15:34 UTC) #6
robertphillips
lgtm https://codereview.chromium.org/1957363002/diff/80001/include/gpu/GrTestUtils.h File include/gpu/GrTestUtils.h (right): https://codereview.chromium.org/1957363002/diff/80001/include/gpu/GrTestUtils.h#newcode44 include/gpu/GrTestUtils.h:44: Can this class go in the .cpp file ...
4 years, 7 months ago (2016-05-09 20:05:29 UTC) #7
egdaniel
https://codereview.chromium.org/1957363002/diff/80001/src/gpu/GrDrawContext.cpp File src/gpu/GrDrawContext.cpp (right): https://codereview.chromium.org/1957363002/diff/80001/src/gpu/GrDrawContext.cpp#newcode291 src/gpu/GrDrawContext.cpp:291: // Dashing should've been devolved to a path in ...
4 years, 7 months ago (2016-05-09 20:08:40 UTC) #8
bsalomon
https://codereview.chromium.org/1957363002/diff/80001/include/gpu/GrTestUtils.h File include/gpu/GrTestUtils.h (right): https://codereview.chromium.org/1957363002/diff/80001/include/gpu/GrTestUtils.h#newcode44 include/gpu/GrTestUtils.h:44: On 2016/05/09 20:05:28, robertphillips wrote: > Can this class ...
4 years, 7 months ago (2016-05-09 20:38:55 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1957363002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1957363002/100001
4 years, 7 months ago (2016-05-09 20:39:25 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/8471)
4 years, 7 months ago (2016-05-09 20:42:17 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1957363002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1957363002/160001
4 years, 7 months ago (2016-05-09 21:19:15 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-09 21:40:46 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1957363002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1957363002/160001
4 years, 7 months ago (2016-05-10 12:56:07 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:160001) as https://skia.googlesource.com/skia/+/33595bdf4b64a745f6340338d307e806e96c587f
4 years, 7 months ago (2016-05-10 12:57:33 UTC) #24
bsalomon
A revert of this CL (patchset #4 id:160001) has been created in https://codereview.chromium.org/1967513002/ by bsalomon@google.com. ...
4 years, 7 months ago (2016-05-10 13:18:55 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:180001) as https://skia.googlesource.com/skia/+/6663acff010ce752e4bf778da81fa97448c9db31
4 years, 7 months ago (2016-05-10 16:14:22 UTC) #30
Stephen White
4 years, 7 months ago (2016-05-17 21:34:30 UTC) #32
Message was sent while issue was closed.
https://codereview.chromium.org/1957363002/diff/180001/src/gpu/batches/GrTess...
File src/gpu/batches/GrTessellatingPathRenderer.cpp (right):

https://codereview.chromium.org/1957363002/diff/180001/src/gpu/batches/GrTess...
src/gpu/batches/GrTessellatingPathRenderer.cpp:163: if (styleDataCnt >= 0) {
Post-landing driveby: could we just assert this is true, given that we've
checked for !args.fStyle->hasNonDashPathEffect() in onCanDrawPath()? Or are
there other conditions which would cause it to occur? If so, could we add those
conditions on onCanDrawPath()? (or make a helper on GrStyle that lets us know
when it can't be key'ed?).

Not doing caching will probably make this path renderer slower than others if we
hit this case.

Powered by Google App Engine
This is Rietveld 408576698