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

Issue 23471008: Add a requiresVertexShader method to GrGLEffect (Closed)

Created:
7 years, 3 months ago by Chris Dalton
Modified:
7 years, 3 months ago
Reviewers:
bsalomon
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Add a requiresVertexShader method to GrGLEffect Adds requiresVertexShader to GrGLEffect and updates the necessary effects to override it and return true. Also reworks GrGLProgram and GrGLShaderBuilder so the program creates all the GL effects at the beginning, and determines if it needs a vertex shader before creating the shader builder. Committed: http://code.google.com/p/skia/source/detail?r=11140

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Patch Set 3 : Clean up buildGLEffects #

Total comments: 1

Patch Set 4 : Send 'hasVertexShaderEffects' to the shader builder ctor #

Patch Set 5 : brace formatting issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -64 lines) Patch
M src/gpu/GrAAConvexPathRenderer.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/GrAARectRenderer.cpp View 1 2 chunks +4 lines, -0 lines 0 comments Download
M src/gpu/GrOvalRenderer.cpp View 1 2 chunks +4 lines, -0 lines 0 comments Download
M src/gpu/effects/GrBezierEffect.cpp View 1 3 chunks +6 lines, -0 lines 0 comments Download
M src/gpu/effects/GrSimpleTextureEffect.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLEffect.h View 1 chunk +7 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLEffectMatrix.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/gl/GrGLProgram.h View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLProgram.cpp View 1 2 3 4 5 chunks +54 lines, -25 lines 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.h View 1 2 3 4 chunks +20 lines, -20 lines 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.cpp View 1 2 3 7 chunks +13 lines, -19 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Chris Dalton
This change is a bit heftier, so I'm open to suggestions.
7 years, 3 months ago (2013-09-06 05:05:21 UTC) #1
bsalomon
mostly looks good https://codereview.chromium.org/23471008/diff/1/src/gpu/effects/GrSimpleTextureEffect.cpp File src/gpu/effects/GrSimpleTextureEffect.cpp (right): https://codereview.chromium.org/23471008/diff/1/src/gpu/effects/GrSimpleTextureEffect.cpp#newcode28 src/gpu/effects/GrSimpleTextureEffect.cpp:28: const GrSimpleTextureEffect& ste = drawEffect.castEffect<GrSimpleTextureEffect>(); Maybe ...
7 years, 3 months ago (2013-09-06 14:10:03 UTC) #2
Chris Dalton
That's what I get for not reading the style guide :). I just went over ...
7 years, 3 months ago (2013-09-06 17:17:24 UTC) #3
Chris Dalton
https://codereview.chromium.org/23471008/diff/1/src/gpu/gl/GrGLShaderBuilder.h File src/gpu/gl/GrGLShaderBuilder.h (right): https://codereview.chromium.org/23471008/diff/1/src/gpu/gl/GrGLShaderBuilder.h#newcode261 src/gpu/gl/GrGLShaderBuilder.h:261: GrBackendEffectFactory::EffectKey const effectKeys[], On 2013/09/06 17:17:24, cdalton wrote: > ...
7 years, 3 months ago (2013-09-06 17:31:36 UTC) #4
bsalomon
Yes, we should use SK_OVERRIDE. https://codereview.chromium.org/23471008/diff/1/src/gpu/effects/GrSimpleTextureEffect.cpp File src/gpu/effects/GrSimpleTextureEffect.cpp (right): https://codereview.chromium.org/23471008/diff/1/src/gpu/effects/GrSimpleTextureEffect.cpp#newcode28 src/gpu/effects/GrSimpleTextureEffect.cpp:28: const GrSimpleTextureEffect& ste = ...
7 years, 3 months ago (2013-09-06 17:37:17 UTC) #5
Chris Dalton
All the comments should be addressed by now.
7 years, 3 months ago (2013-09-06 19:29:13 UTC) #6
bsalomon
on microscopic style nit, otherwise lgtm. https://codereview.chromium.org/23471008/diff/12001/src/gpu/gl/GrGLProgram.cpp File src/gpu/gl/GrGLProgram.cpp (right): https://codereview.chromium.org/23471008/diff/12001/src/gpu/gl/GrGLProgram.cpp#newcode705 src/gpu/gl/GrGLProgram.cpp:705: { nit: this ...
7 years, 3 months ago (2013-09-06 19:44:01 UTC) #7
Chris Dalton
I snuck in one quick rename so now the GrGLShaderBuilder ctor takes a boolean called ...
7 years, 3 months ago (2013-09-06 19:49:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/cdalton@nvidia.com/23471008/31001
7 years, 3 months ago (2013-09-06 19:49:55 UTC) #9
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 20:20:04 UTC) #10
Message was sent while issue was closed.
Change committed as 11140

Powered by Google App Engine
This is Rietveld 408576698