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

Issue 746423007: Draft change to start pulling uniform color into GP (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_factories
Project:
skia
Visibility:
Public.

Description

This change will ultimately pull uniform color, and to a much lesser degree uniform coverage, into GPs. There are still some loose ends because drawstate has the ability to override the GP, but fixing these cleanly will have to wait until we have deferred geometry in place and can make attribute / uniform decisions on the fly. BUG=skia: Committed: https://skia.googlesource.com/skia/+/9b98932adaceb7ad0a617ade16616923f6bffe84

Patch Set 1 #

Total comments: 4

Patch Set 2 : feedback incorporated #

Total comments: 6

Patch Set 3 : test #

Patch Set 4 : more cleanup #

Patch Set 5 : cleaning #

Patch Set 6 : cleanup #

Total comments: 7

Patch Set 7 : more cleanup #

Patch Set 8 : debugging #

Patch Set 9 : more cleanup #

Patch Set 10 : fix up makeEqual #

Patch Set 11 : missed some places to update uniform cache #

Total comments: 11

Patch Set 12 : adding path proc stuff #

Patch Set 13 : adding scary comment #

Patch Set 14 : rebase #

Patch Set 15 : more path processor stuf #

Patch Set 16 : more cleanup #

Total comments: 1

Patch Set 17 : rebase #

Patch Set 18 : updates #

Patch Set 19 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1231 lines, -573 lines) Patch
M expectations/gm/ignored-tests.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -0 lines 0 comments Download
M gyp/gpu.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkTemplates.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M include/gpu/GrXferProcessor.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -5 lines 0 comments Download
M include/gpu/effects/GrPorterDuffXferProcessor.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +5 lines, -5 lines 0 comments Download
M src/gpu/GrAAConvexPathRenderer.cpp View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +47 lines, -8 lines 0 comments Download
M src/gpu/GrDefaultGeoProcFactory.cpp View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +86 lines, -16 lines 0 comments Download
M src/gpu/GrGeometryProcessor.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +181 lines, -65 lines 0 comments Download
A src/gpu/GrGeometryProcessor.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +170 lines, -0 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrOptDrawState.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +7 lines, -28 lines 0 comments Download
M src/gpu/GrOptDrawState.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +23 lines, -48 lines 0 comments Download
M src/gpu/GrOvalRenderer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 chunks +124 lines, -21 lines 0 comments Download
M src/gpu/GrProcOptInfo.h View 1 2 3 4 5 6 3 chunks +0 lines, -8 lines 0 comments Download
M src/gpu/GrProcOptInfo.cpp View 1 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
M src/gpu/GrProcessor.cpp View 1 2 1 chunk +0 lines, -29 lines 0 comments Download
M src/gpu/GrProgramDesc.h View 1 2 3 4 5 6 7 8 3 chunks +1 line, -34 lines 0 comments Download
M src/gpu/effects/GrBezierEffect.h View 1 2 3 4 5 6 7 8 9 5 chunks +11 lines, -0 lines 0 comments Download
M src/gpu/effects/GrBezierEffect.cpp View 1 2 3 4 5 6 7 8 9 10 11 15 chunks +166 lines, -19 lines 0 comments Download
M src/gpu/effects/GrBitmapTextGeoProc.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/effects/GrBitmapTextGeoProc.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +49 lines, -13 lines 0 comments Download
M src/gpu/effects/GrDashingEffect.cpp View 1 2 3 4 5 6 7 8 9 10 11 15 chunks +95 lines, -18 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldTextureEffect.h View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -0 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldTextureEffect.cpp View 1 2 3 4 5 6 7 8 9 10 11 15 chunks +135 lines, -32 lines 0 comments Download
M src/gpu/effects/GrPorterDuffXferProcessor.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +41 lines, -20 lines 0 comments Download
M src/gpu/gl/GrGLGeometryProcessor.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +18 lines, -3 lines 0 comments Download
M src/gpu/gl/GrGLProgram.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +3 lines, -8 lines 0 comments Download
M src/gpu/gl/GrGLProgram.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +11 lines, -60 lines 0 comments Download
M src/gpu/gl/GrGLProgramDesc.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +9 lines, -56 lines 0 comments Download
M src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/builders/GrGLNvprProgramBuilder.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/gl/builders/GrGLProgramBuilder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +3 lines, -6 lines 0 comments Download
M src/gpu/gl/builders/GrGLProgramBuilder.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 9 chunks +18 lines, -66 lines 0 comments Download

Messages

Total messages: 20 (4 generated)
joshualitt
Brian, could you take a look at DefaultGeoProcFactory.cpp before I get carried away and change ...
6 years ago (2014-12-04 20:13:42 UTC) #3
bsalomon
https://codereview.chromium.org/746423007/diff/1/src/gpu/GrDefaultGeoProcFactory.cpp File src/gpu/GrDefaultGeoProcFactory.cpp (right): https://codereview.chromium.org/746423007/diff/1/src/gpu/GrDefaultGeoProcFactory.cpp#newcode71 src/gpu/GrDefaultGeoProcFactory.cpp:71: struct BatchTracker { can this be private? https://codereview.chromium.org/746423007/diff/1/src/gpu/GrDefaultGeoProcFactory.cpp#newcode101 src/gpu/GrDefaultGeoProcFactory.cpp:101: ...
6 years ago (2014-12-05 14:43:03 UTC) #4
joshualitt
So the fNewStyle is a debug hack. In programbuilder, if the GP has this flag ...
6 years ago (2014-12-10 16:23:46 UTC) #5
bsalomon
https://codereview.chromium.org/746423007/diff/20001/src/gpu/GrDefaultGeoProcFactory.cpp File src/gpu/GrDefaultGeoProcFactory.cpp (right): https://codereview.chromium.org/746423007/diff/20001/src/gpu/GrDefaultGeoProcFactory.cpp#newcode62 src/gpu/GrDefaultGeoProcFactory.cpp:62: if (kAttribute_Output != left.fOutputColor && left.fColor != right.fColor) { ...
6 years ago (2014-12-10 18:36:20 UTC) #6
joshualitt
Okay, Brian take a look. There is still a TON of things to cleanup, especially ...
6 years ago (2014-12-11 20:52:48 UTC) #7
bsalomon
Sorry for slow review, couldn't publish yesterday. https://codereview.chromium.org/746423007/diff/100001/src/gpu/GrGeometryProcessor.cpp File src/gpu/GrGeometryProcessor.cpp (right): https://codereview.chromium.org/746423007/diff/100001/src/gpu/GrGeometryProcessor.cpp#newcode25 src/gpu/GrGeometryProcessor.cpp:25: this->onGetInvariantOutputColor(out); this ...
6 years ago (2014-12-12 14:29:35 UTC) #8
joshualitt
Okay, I've cleaned up some of the stuff in optstate, let me know if this ...
6 years ago (2014-12-12 23:12:03 UTC) #9
bsalomon
This is looking much, much cleaner. The new comments really help. https://codereview.chromium.org/746423007/diff/200001/src/gpu/GrGeometryProcessor.cpp File src/gpu/GrGeometryProcessor.cpp (right): ...
6 years ago (2014-12-15 15:31:14 UTC) #10
joshualitt
Updated, as mentioned, GrGLPathProcessor is not used currently, but the canMakeEqual, initBatchTracker, etc are.
6 years ago (2014-12-15 16:52:03 UTC) #11
bsalomon
lgtm
6 years ago (2014-12-15 17:22:17 UTC) #12
joshualitt
I cleaned up a bunch, pulled in more path processor stuff, and modified the XP. ...
6 years ago (2014-12-15 20:29:06 UTC) #14
bsalomon
minor suggestion, lgtm if it lgtg https://codereview.chromium.org/746423007/diff/300001/src/gpu/effects/GrBitmapTextGeoProc.cpp File src/gpu/effects/GrBitmapTextGeoProc.cpp (right): https://codereview.chromium.org/746423007/diff/300001/src/gpu/effects/GrBitmapTextGeoProc.cpp#newcode75 src/gpu/effects/GrBitmapTextGeoProc.cpp:75: // TODO fix ...
6 years ago (2014-12-15 20:45:17 UTC) #15
joshualitt
Greg, this patch is rebased and up to date. PTAL
6 years ago (2014-12-15 20:53:04 UTC) #16
egdaniel
On 2014/12/15 20:53:04, joshualitt wrote: > Greg, this patch is rebased and up to date. ...
6 years ago (2014-12-15 21:00:30 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/746423007/360001
6 years ago (2014-12-15 22:13:22 UTC) #19
commit-bot: I haz the power
6 years ago (2014-12-15 22:16:31 UTC) #20
Message was sent while issue was closed.
Committed patchset #19 (id:360001) as
https://skia.googlesource.com/skia/+/9b98932adaceb7ad0a617ade16616923f6bffe84

Powered by Google App Engine
This is Rietveld 408576698