Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2103)

Issue 6074043: Ganesh shaders: plumbing to use GrCustomShader nodes if provided (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by TomH
Modified:
12 years, 8 months ago
CC:
reed1
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

The previous CL had the base classes; this CL turns them on. One member function that Brian asked me to make protected last time around had to revert to public because now we're actually calling it.

Patch Set 1 #

Patch Set 2 : Savagely trim overly-verbose - even florid - comment #

Total comments: 6

Patch Set 3 : Remove storage of GrCustomStage*[] from GrGLProgram objects #

Patch Set 4 : Roughed in lifetime management #

Total comments: 1

Patch Set 5 : Ref, unref, look for safety - and expose our novelties #

Patch Set 6 : GrSafeSetNull #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -61 lines) Patch
M gyp/gpu.gyp View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
A + include/gpu/GrCustomStage.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M include/gpu/GrSamplerState.h View 1 2 3 4 5 5 chunks +16 lines, -2 lines 0 comments Download
M src/gpu/GrCustomStage.h View 1 2 3 4 1 chunk +0 lines, -34 lines 0 comments Download
M src/gpu/gl/GrGLProgram.h View 1 2 3 6 chunks +14 lines, -3 lines 0 comments Download
M src/gpu/gl/GrGLProgram.cpp View 1 2 3 4 11 chunks +87 lines, -9 lines 0 comments Download
M src/gpu/gl/GrGLProgramStage.h View 1 2 3 3 chunks +7 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGpuGLShaders.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M src/gpu/gl/GrGpuGLShaders.cpp View 1 2 3 4 8 chunks +50 lines, -6 lines 0 comments Download

Messages

Total messages: 10
TomH
Step 2: hook up the pipes.
12 years, 8 months ago (2012-04-19 13:54:26 UTC) #1
robertphillips
One nit + several clarifying questions http://codereview.appspot.com/6074043/diff/2001/include/gpu/GrSamplerState.h File include/gpu/GrSamplerState.h (right): http://codereview.appspot.com/6074043/diff/2001/include/gpu/GrSamplerState.h#newcode242 include/gpu/GrSamplerState.h:242: void setCustomStage(GrCustomStage* stage) ...
12 years, 8 months ago (2012-04-19 15:14:04 UTC) #2
TomH
Note from verbal review: try to not store GrCustomStage* on GrGLProgram; pass it in when ...
12 years, 8 months ago (2012-04-19 16:44:39 UTC) #3
TomH
This version (a bit rough) removes the GrCustomStage* array from GrGLProgram; it's assembled on the ...
12 years, 8 months ago (2012-04-19 20:54:26 UTC) #4
bsalomon
If you want to defer finalizing the lifetime until there is an actual caller that's ...
12 years, 8 months ago (2012-04-19 21:06:33 UTC) #5
robertphillips
LGTM
12 years, 8 months ago (2012-04-20 12:43:43 UTC) #6
TomH
This version has lifetime management as sketched by Brian, although we won't thoroughly test it ...
12 years, 8 months ago (2012-04-20 15:33:30 UTC) #7
bsalomon
SampleState needs to ref / unref. http://codereview.appspot.com/6074043/diff/15001/src/gpu/gl/GrGLProgram.cpp File src/gpu/gl/GrGLProgram.cpp (right): http://codereview.appspot.com/6074043/diff/15001/src/gpu/gl/GrGLProgram.cpp#newcode630 src/gpu/gl/GrGLProgram.cpp:630: delete fCustomStage[i]; delete ...
12 years, 8 months ago (2012-04-20 17:51:15 UTC) #8
TomH
Also per discussion with Brian move GrCustomStage.h from src/gpu/ to include/gpu/, to allow for future ...
12 years, 8 months ago (2012-04-20 18:06:06 UTC) #9
TomH
12 years, 8 months ago (2012-04-20 18:36:36 UTC) #10
Committed in r3742.

Won't actually work: we need to implement RTTI for GrCustomStage so that we can
properly compare GrSamplerState.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b