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

Issue 783763002: Initial CL to move color / coverage off of drawstate (Closed)

Created:
6 years ago by joshua.litt
Modified:
6 years ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@no-static-gp
Project:
skia
Visibility:
Public.

Description

This cl moves color and coverage off of drawstate. In an effort to keep this CL manageable, I have left the compute invariant input / output in a bit of a strange state(fixing this will be complicated). In addition, NVPR makes this very complicated, and I haven't quite figured out a good way to handle it, so for now color and coverage DO live on optstate, but I will figure out some way to refactor that in future CLs. BUG=skia: Committed: https://skia.googlesource.com/skia/+/2e3b3e369d79e78f7635d4c20e83a47ab571bdf2

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : nvpr bug fixed #

Total comments: 11

Patch Set 4 : feedback inc #

Patch Set 5 : feedback inc #

Patch Set 6 : todo added #

Total comments: 2

Patch Set 7 : small cleanup #

Patch Set 8 : comment cleanup #

Patch Set 9 : rebase #

Patch Set 10 : fixed #

Patch Set 11 : clang fix #

Patch Set 12 : bug fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+589 lines, -474 lines) Patch
M gm/beziereffects.cpp View 1 6 chunks +3 lines, -6 lines 0 comments Download
M gm/convexpolyeffect.cpp View 1 2 chunks +2 lines, -4 lines 0 comments Download
M gm/rrects.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M gm/texturedomaineffect.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M gm/yuvtorgbeffect.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M include/gpu/GrColor.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M include/gpu/GrContext.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M include/gpu/GrProcessorUnitTest.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +61 lines, -0 lines 0 comments Download
M src/gpu/GrAAConvexPathRenderer.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrAAConvexPathRenderer.cpp View 1 6 chunks +7 lines, -6 lines 0 comments Download
M src/gpu/GrAADistanceFieldPathRenderer.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M src/gpu/GrAADistanceFieldPathRenderer.cpp View 1 2 4 chunks +6 lines, -3 lines 0 comments Download
M src/gpu/GrAAHairLinePathRenderer.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M src/gpu/GrAAHairLinePathRenderer.cpp View 1 6 chunks +14 lines, -6 lines 0 comments Download
M src/gpu/GrAARectRenderer.h View 1 4 chunks +7 lines, -1 line 0 comments Download
M src/gpu/GrAARectRenderer.cpp View 1 7 chunks +14 lines, -12 lines 0 comments Download
M src/gpu/GrBitmapTextContext.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/GrBitmapTextContext.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +34 lines, -27 lines 0 comments Download
M src/gpu/GrClipMaskManager.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 2 3 10 chunks +19 lines, -15 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 4 22 chunks +46 lines, -31 lines 0 comments Download
M src/gpu/GrDefaultGeoProcFactory.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M src/gpu/GrDefaultGeoProcFactory.cpp View 1 4 chunks +10 lines, -8 lines 0 comments Download
M src/gpu/GrDefaultPathRenderer.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M src/gpu/GrDefaultPathRenderer.cpp View 1 6 chunks +13 lines, -9 lines 0 comments Download
M src/gpu/GrDistanceFieldTextContext.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -4 lines 0 comments Download
M src/gpu/GrDrawState.h View 1 2 3 4 5 6 7 5 chunks +16 lines, -67 lines 0 comments Download
M src/gpu/GrDrawState.cpp View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +29 lines, -40 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 6 chunks +15 lines, -7 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 4 5 6 7 8 10 chunks +25 lines, -16 lines 0 comments Download
M src/gpu/GrGeometryProcessor.h View 1 2 5 chunks +19 lines, -1 line 0 comments Download
M src/gpu/GrInOrderDrawBuffer.h View 1 4 chunks +9 lines, -4 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 1 9 chunks +18 lines, -9 lines 0 comments Download
M src/gpu/GrOptDrawState.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/GrOptDrawState.cpp View 1 2 3 4 5 6 3 chunks +9 lines, -5 lines 0 comments Download
M src/gpu/GrOvalRenderer.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M src/gpu/GrOvalRenderer.cpp View 1 2 3 4 24 chunks +34 lines, -26 lines 0 comments Download
M src/gpu/GrPathRenderer.h View 1 4 chunks +4 lines, -2 lines 0 comments Download
M src/gpu/GrProcessor.cpp View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M src/gpu/GrSWMaskHelper.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 1 2 chunks +2 lines, -1 line 0 comments Download
M src/gpu/GrSoftwarePathRenderer.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrSoftwarePathRenderer.cpp View 1 5 chunks +9 lines, -7 lines 0 comments Download
M src/gpu/GrStencilAndCoverPathRenderer.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrStencilAndCoverPathRenderer.cpp View 1 3 chunks +3 lines, -2 lines 0 comments Download
M src/gpu/GrStencilAndCoverTextContext.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/effects/GrBezierEffect.h View 1 6 chunks +23 lines, -17 lines 0 comments Download
M src/gpu/effects/GrBezierEffect.cpp View 1 2 3 4 5 6 7 8 6 chunks +9 lines, -9 lines 0 comments Download
M src/gpu/effects/GrBitmapTextGeoProc.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/effects/GrBitmapTextGeoProc.cpp View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -4 lines 0 comments Download
M src/gpu/effects/GrDashingEffect.h View 1 3 chunks +4 lines, -2 lines 0 comments Download
M src/gpu/effects/GrDashingEffect.cpp View 1 2 3 4 5 6 7 8 12 chunks +32 lines, -20 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldTextureEffect.h View 6 chunks +11 lines, -11 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldTextureEffect.cpp View 1 2 3 4 5 6 7 8 7 chunks +18 lines, -10 lines 0 comments Download
M tests/GLProgramsTest.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -66 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
joshualitt
Brian, PTAL. This cl just plumbs color around until we have a GP. GP does ...
6 years ago (2014-12-08 18:17:12 UTC) #4
joshualitt
adding Greg as well for feedback. I know the computing invariant I/O stuff is not ...
6 years ago (2014-12-08 18:18:42 UTC) #6
bsalomon
https://codereview.chromium.org/783763002/diff/60001/include/gpu/GrColor.h File include/gpu/GrColor.h (right): https://codereview.chromium.org/783763002/diff/60001/include/gpu/GrColor.h#newcode70 include/gpu/GrColor.h:70: #define GrColor_BLACK 0x0 I think this should be TRANSPARENT ...
6 years ago (2014-12-08 19:42:13 UTC) #7
joshualitt
Questions answered and some feedback incorporated https://codereview.chromium.org/783763002/diff/60001/src/gpu/GrAAHairLinePathRenderer.cpp File src/gpu/GrAAHairLinePathRenderer.cpp (right): https://codereview.chromium.org/783763002/diff/60001/src/gpu/GrAAHairLinePathRenderer.cpp#newcode842 src/gpu/GrAAHairLinePathRenderer.cpp:842: drawState->setGeometryProcessor(GrDefaultGeoProcFactory::Create(color, On 2014/12/08 ...
6 years ago (2014-12-08 20:19:21 UTC) #8
bsalomon
https://codereview.chromium.org/783763002/diff/60001/src/gpu/GrAAHairLinePathRenderer.cpp File src/gpu/GrAAHairLinePathRenderer.cpp (right): https://codereview.chromium.org/783763002/diff/60001/src/gpu/GrAAHairLinePathRenderer.cpp#newcode842 src/gpu/GrAAHairLinePathRenderer.cpp:842: drawState->setGeometryProcessor(GrDefaultGeoProcFactory::Create(color, On 2014/12/08 20:19:20, joshualitt wrote: > On 2014/12/08 ...
6 years ago (2014-12-08 20:28:15 UTC) #9
joshualitt
> Right that's why I think we should rephrase the question it asks as "could ...
6 years ago (2014-12-08 21:30:13 UTC) #10
bsalomon
lgtm w/ two comment requests. https://codereview.chromium.org/783763002/diff/120001/src/gpu/GrDrawState.h File src/gpu/GrDrawState.h (right): https://codereview.chromium.org/783763002/diff/120001/src/gpu/GrDrawState.h#newcode95 src/gpu/GrDrawState.h:95: * intends to specify ...
6 years ago (2014-12-08 21:50:54 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/783763002/200001
6 years ago (2014-12-09 21:00:40 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu13.10-GCC4.8-Arm7-Debug-Android-Trybot on client.skia.compile (http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu13.10-GCC4.8-Arm7-Debug-Android-Trybot/builds/1049) Build-Win-VS2013-x86-Debug-Trybot on client.skia.compile (http://build.chromium.org/p/client.skia.compile/builders/Build-Win-VS2013-x86-Debug-Trybot/builds/1418)
6 years ago (2014-12-09 21:02:50 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/783763002/240001
6 years ago (2014-12-09 21:21:47 UTC) #17
commit-bot: I haz the power
6 years ago (2014-12-09 21:31:20 UTC) #18
Message was sent while issue was closed.
Committed patchset #12 (id:240001) as
https://skia.googlesource.com/skia/+/2e3b3e369d79e78f7635d4c20e83a47ab571bdf2

Powered by Google App Engine
This is Rietveld 408576698