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

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

Issue 426553011: Make GrGLProgram be available to GrGLProgramDataManager (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix win warning Created 6 years, 4 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 edb24a758289bb2e1aa61531d6f221194377a120..fb496856b41ff676089d219017d5fefd89f5af82 100644
--- a/src/gpu/gl/GrGLProgram.h
+++ b/src/gpu/gl/GrGLProgram.h
@@ -37,6 +37,8 @@ class GrGLProgram : public SkRefCnt {
public:
SK_DECLARE_INST_COUNT(GrGLProgram)
+ typedef GrGLShaderBuilder::BuiltinUniformHandles BuiltinUniformHandles;
+
static GrGLProgram* Create(GrGpuGL* gpu,
const GrGLProgramDesc& desc,
const GrEffectStage* colorStages[],
@@ -59,9 +61,9 @@ public:
/**
* Gets the GL program ID for this program.
*/
- GrGLuint programID() const { return fBuilderOutput.fProgramID; }
+ GrGLuint programID() const { return fProgramID; }
- bool hasVertexShader() const { return fBuilderOutput.fHasVertexShader; }
+ bool hasVertexShader() const { return fHasVertexShader; }
/**
* Some GL state that is relevant to programs is not stored per-program. In particular color
@@ -165,8 +167,7 @@ private:
GrGLProgram(GrGpuGL*,
const GrGLProgramDesc&,
- GrGLProgramDataManager*,
- const GrGLShaderBuilder::GenProgramOutput&);
+ const GrGLShaderBuilder&);
// Sets the texture units for samplers.
void initSamplerUniforms();
@@ -188,12 +189,17 @@ private:
GrColor fCoverage;
int fDstCopyTexUnit;
- GrGLShaderBuilder::GenProgramOutput fBuilderOutput;
+ BuiltinUniformHandles fBuiltinUniformHandles;
+ SkAutoTUnref<GrGLProgramEffects> fColorEffects;
+ SkAutoTUnref<GrGLProgramEffects> fCoverageEffects;
+ GrGLuint fProgramID;
+ bool fHasVertexShader;
+ int fTexCoordSetCnt;
GrGLProgramDesc fDesc;
GrGpuGL* fGpu;
- SkAutoTUnref<GrGLProgramDataManager> fProgramDataManager;
+ GrGLProgramDataManager fProgramDataManager;
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