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

Unified Diff: src/gpu/gl/builders/GrGLProgramBuilder.h

Issue 628293002: Plumb OptDrawState down to VertexShaderBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up Created 6 years, 2 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
Index: src/gpu/gl/builders/GrGLProgramBuilder.h
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.h b/src/gpu/gl/builders/GrGLProgramBuilder.h
index f6397d8871bdbf4ac7e1f0a0afb105e4a98eb1d8..59f50940588cb1ca6578584ff013f962055fc632 100644
--- a/src/gpu/gl/builders/GrGLProgramBuilder.h
+++ b/src/gpu/gl/builders/GrGLProgramBuilder.h
@@ -86,7 +86,8 @@ public:
* @return true if generation was successful.
*/
- bool genProgram(const GrGeometryStage* inGeometryProcessor,
+ bool genProgram(const GrOptDrawState& optstate,
+ const GrGeometryStage* inGeometryProcessor,
const GrFragmentStage* inColorStages[],
const GrFragmentStage* inCoverageStages[]);
@@ -180,7 +181,7 @@ protected:
virtual bool compileAndAttachShaders(GrGLuint programId, SkTDArray<GrGLuint>* shaderIds) const;
- virtual void bindProgramLocations(GrGLuint programId);
+ virtual void bindProgramLocations(const GrOptDrawState&, GrGLuint programId);
void resolveProgramLocations(GrGLuint programId);
void appendDecls(const VarArray&, SkString*) const;
@@ -322,7 +323,7 @@ private:
* Compiles all the shaders, links them into a program, and writes the program id to the output
* struct.
**/
- bool finish();
+ bool finish(const GrOptDrawState&);
GrGLFragmentProcessorEmitter fGrProcessorEmitter;

Powered by Google App Engine
This is Rietveld 408576698