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

Unified Diff: src/gpu/gl/GrGLProgram.h

Issue 305203002: Use GrGLShaderBuilder::GenProgramOutput in GrGLProgram. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: restore autotunref Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/gl/GrGLProgram.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLProgram.h
diff --git a/src/gpu/gl/GrGLProgram.h b/src/gpu/gl/GrGLProgram.h
index 88fc02201e0981c7285ea429e78655274a9decdd..73a32395a29b501fc29f103d2b7a29ad531bfb51 100644
--- a/src/gpu/gl/GrGLProgram.h
+++ b/src/gpu/gl/GrGLProgram.h
@@ -60,9 +60,9 @@ public:
/**
* Gets the GL program ID for this program.
*/
- GrGLuint programID() const { return fProgramID; }
+ GrGLuint programID() const { return fBuilderOutput.fProgramID; }
- bool hasVertexShader() const { return fHasVertexShader; }
+ bool hasVertexShader() const { return fBuilderOutput.fHasVertexShader; }
/**
* Some GL state that is relevant to programs is not stored per-program. In particular color
@@ -164,12 +164,12 @@ public:
private:
typedef GrGLUniformManager::UniformHandle UniformHandle;
- GrGLProgram(GrGpuGL* gpu,
- const GrGLProgramDesc& desc,
- GrGLUniformManager* uman,
- const GrGLShaderBuilder::GenProgramOutput& builderOutput);
+ GrGLProgram(GrGpuGL*,
+ const GrGLProgramDesc&,
+ GrGLUniformManager*,
+ const GrGLShaderBuilder::GenProgramOutput&);
- // Sets the texture units for samplers
+ // Sets the texture units for samplers.
void initSamplerUniforms();
// Helper for setData(). Makes GL calls to specify the initial color when there is not
@@ -183,27 +183,18 @@ private:
// Helper for setData() that sets the view matrix and loads the render target height uniform
void setMatrixAndRenderTargetHeight(const GrDrawState&);
- // GL program ID
- GrGLuint fProgramID;
-
// these reflect the current values of uniforms (GL uniform values travel with program)
MatrixState fMatrixState;
GrColor fColor;
GrColor fCoverage;
int fDstCopyTexUnit;
- SkAutoTDelete<GrGLProgramEffects> fColorEffects;
- SkAutoTDelete<GrGLProgramEffects> fCoverageEffects;
+ GrGLShaderBuilder::GenProgramOutput fBuilderOutput;
GrGLProgramDesc fDesc;
-
GrGpuGL* fGpu;
SkAutoTUnref<GrGLUniformManager> fUniformManager;
- GrGLShaderBuilder::UniformHandles fUniformHandles;
-
- bool fHasVertexShader;
- int fTexCoordSetCnt;
typedef SkRefCnt INHERITED;
};
« no previous file with comments | « no previous file | src/gpu/gl/GrGLProgram.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698