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

Issue 611653002: Cleanup of shader building system (Closed)

Created:
6 years, 2 months ago by joshua.litt
Modified:
6 years, 2 months ago
Reviewers:
bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@solo_gp
Project:
skia
Visibility:
Public.

Description

Cleanup of shader building system this is a huge refactor and cleanup of the gl shader building system in Skia. The entire shader building pipeline is now part of GrGLProgramCreator, which takes a gp, and some fps, and creates a program. I added some subclasses of GrGLProgram to handle the eccentricities of Nvpr/Nvpres. Outside of the builders folder and GrGLPrograms, this change is basically just a rename solo gp BUG=skia: Committed: https://skia.googlesource.com/skia/+/fe1233c3f12f81bb675718516bbb32f72af726ec Committed: https://skia.googlesource.com/skia/+/47bb38283072dc87dc93220cd2f370ca109972ff

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : pass dm #

Patch Set 4 : rebase #

Patch Set 5 : fix compiler issue #

Patch Set 6 : fix build issue #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : cleanup #

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : cleanup #

Patch Set 17 : more cleanup #

Total comments: 16

Patch Set 18 : feedback incorporated #

Patch Set 19 : name changes #

Total comments: 7

Patch Set 20 : feedback inc #

Patch Set 21 : rebase #

Patch Set 22 : rebase #

Patch Set 23 : windows error fixed #

Patch Set 24 : rebase #

Patch Set 25 : rebase #

Patch Set 26 : bug fixed #

Patch Set 27 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1680 lines, -1992 lines) Patch
M gyp/gpu.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +7 lines, -9 lines 0 comments Download
M include/gpu/GrPaint.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M include/gpu/GrProcessorStage.h View 1 3 chunks +14 lines, -6 lines 0 comments Download
M include/gpu/GrTBackendProcessorFactory.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M src/gpu/GrAAConvexPathRenderer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/GrAARectRenderer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 6 chunks +7 lines, -7 lines 0 comments Download
M src/gpu/GrDrawState.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -1 line 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 18 19 20 21 22 23 2 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/GrOvalRenderer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 9 chunks +10 lines, -10 lines 0 comments Download
M src/gpu/effects/GrBezierEffect.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 10 chunks +13 lines, -13 lines 0 comments Download
M src/gpu/effects/GrCustomCoordsTextureEffect.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/effects/GrDashingEffect.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 7 chunks +9 lines, -9 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldTextureEffect.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 10 chunks +10 lines, -10 lines 0 comments Download
M src/gpu/gl/GrGLGeometryProcessor.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLProcessor.h View 1 1 chunk +2 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 16 17 18 19 20 6 chunks +135 lines, -26 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 16 17 18 19 20 21 22 23 24 25 6 chunks +225 lines, -51 lines 0 comments Download
M src/gpu/gl/GrGLProgramDataManager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +10 lines, -27 lines 0 comments Download
M src/gpu/gl/GrGLProgramDataManager.cpp View 1 4 chunks +5 lines, -34 lines 0 comments Download
M src/gpu/gl/GrGLProgramDesc.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +3 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGLProgramDesc.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +6 lines, -5 lines 0 comments Download
M src/gpu/gl/GrGLProgramEffects.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -201 lines 0 comments Download
M src/gpu/gl/GrGLProgramEffects.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -204 lines 0 comments Download
M src/gpu/gl/GrGpuGL.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGpuGL_program.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 4 chunks +6 lines, -2 lines 0 comments Download
D src/gpu/gl/builders/GrGLFragmentOnlyProgramBuilder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -56 lines 0 comments Download
D src/gpu/gl/builders/GrGLFragmentOnlyProgramBuilder.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -107 lines 0 comments Download
M src/gpu/gl/builders/GrGLFragmentShaderBuilder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +46 lines, -34 lines 0 comments Download
M src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 9 chunks +157 lines, -180 lines 0 comments Download
D src/gpu/gl/builders/GrGLFullProgramBuilder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -130 lines 0 comments Download
D src/gpu/gl/builders/GrGLFullProgramBuilder.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -221 lines 0 comments Download
M src/gpu/gl/builders/GrGLGeometryShaderBuilder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +3 lines, -7 lines 0 comments Download
M src/gpu/gl/builders/GrGLGeometryShaderBuilder.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +5 lines, -5 lines 0 comments Download
A src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +30 lines, -0 lines 0 comments Download
A src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +55 lines, -0 lines 0 comments Download
A src/gpu/gl/builders/GrGLNvprProgramBuilder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +56 lines, -0 lines 0 comments Download
A src/gpu/gl/builders/GrGLNvprProgramBuilder.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +84 lines, -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 16 17 18 19 20 21 22 23 24 25 3 chunks +267 lines, -256 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 16 17 18 19 20 21 22 23 24 25 6 chunks +361 lines, -173 lines 0 comments Download
M src/gpu/gl/builders/GrGLShaderBuilder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +5 lines, -29 lines 0 comments Download
M src/gpu/gl/builders/GrGLShaderBuilder.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +10 lines, -9 lines 0 comments Download
M src/gpu/gl/builders/GrGLVertexShaderBuilder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +17 lines, -26 lines 0 comments Download
M src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +90 lines, -109 lines 0 comments Download
M tests/GLProgramsTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +10 lines, -7 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
joshua.litt
Most of the refactoring for this patch is in GrGL*ProgramBuilder and GrGLProgram. I actually just ...
6 years, 2 months ago (2014-09-28 22:49:05 UTC) #2
bsalomon
Some early comments. Is there any way this can be broken up into smaller CLs? ...
6 years, 2 months ago (2014-09-29 15:43:19 UTC) #3
joshua.litt
feedback incorporated https://codereview.chromium.org/611653002/diff/310001/include/gpu/GrProcessorStage.h File include/gpu/GrProcessorStage.h (right): https://codereview.chromium.org/611653002/diff/310001/include/gpu/GrProcessorStage.h#newcode34 include/gpu/GrProcessorStage.h:34: virtual ~GrProcessorStage() {} On 2014/09/29 15:43:19, bsalomon ...
6 years, 2 months ago (2014-09-29 21:05:22 UTC) #4
joshua.litt
Brian, after taking a closer look at the hierarchies, I think refactoring them as we ...
6 years, 2 months ago (2014-10-06 16:14:48 UTC) #5
bsalomon
https://codereview.chromium.org/611653002/diff/350001/src/gpu/GrAARectRenderer.cpp File src/gpu/GrAARectRenderer.cpp (right): https://codereview.chromium.org/611653002/diff/350001/src/gpu/GrAARectRenderer.cpp#newcode61 src/gpu/GrAARectRenderer.cpp:61: GrGLGPFragmentShaderBuilder* fsBuilder = builder->getFragmentShaderBuilder(); Can we kill the word ...
6 years, 2 months ago (2014-10-06 18:49:40 UTC) #6
joshua.litt
feedback incorporated https://codereview.chromium.org/611653002/diff/350001/src/gpu/gl/GrGLProgram.cpp File src/gpu/gl/GrGLProgram.cpp (right): https://codereview.chromium.org/611653002/diff/350001/src/gpu/gl/GrGLProgram.cpp#newcode200 src/gpu/gl/GrGLProgram.cpp:200: SkASSERT(!GrGpu::IsPathRenderingDrawType(drawType)); On 2014/10/06 18:49:40, bsalomon wrote: > ...
6 years, 2 months ago (2014-10-06 19:16:57 UTC) #7
bsalomon
(close eyes) lgtm
6 years, 2 months ago (2014-10-06 19:28:01 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/611653002/470001
6 years, 2 months ago (2014-10-07 18:48:33 UTC) #10
commit-bot: I haz the power
Committed patchset #25 (id:470001) as fe1233c3f12f81bb675718516bbb32f72af726ec
6 years, 2 months ago (2014-10-07 19:16:44 UTC) #11
joshua.litt
A revert of this CL (patchset #25 id:470001) has been created in https://codereview.chromium.org/635533005/ by joshualitt@chromium.org. ...
6 years, 2 months ago (2014-10-07 19:41:39 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/611653002/490001
6 years, 2 months ago (2014-10-07 23:34:50 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-10-07 23:43:48 UTC) #15
Message was sent while issue was closed.
Committed patchset #27 (id:490001) as 47bb38283072dc87dc93220cd2f370ca109972ff

Powered by Google App Engine
This is Rietveld 408576698