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

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

Issue 23537028: Enable vertexless shading when path rendering is supported (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 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/GrGLProgram.h
diff --git a/src/gpu/gl/GrGLProgram.h b/src/gpu/gl/GrGLProgram.h
index b18b8ae31ddb6e8339eb9ae724e07cf6bbb59832..f0e03f821ac0a70870f188b2d69ffd2115a7bb43 100644
--- a/src/gpu/gl/GrGLProgram.h
+++ b/src/gpu/gl/GrGLProgram.h
@@ -61,6 +61,8 @@ public:
*/
GrGLuint programID() const { return fProgramID; }
+ bool hasVertexShader() const { return fHasVertexShader; }
+
/**
* Some GL state that is relevant to programs is not stored per-program. In particular color
* and coverage attributes can be global state. This struct is read and updated by
@@ -235,6 +237,9 @@ private:
GrGLUniformManager fUniformManager;
UniformHandles fUniformHandles;
+ bool fHasVertexShader;
+ int fNumTexGenUnits;
+
typedef SkRefCnt INHERITED;
};

Powered by Google App Engine
This is Rietveld 408576698