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

Unified Diff: src/gpu/gl/GrGLUniformManager.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/GrGLUniformManager.h
diff --git a/src/gpu/gl/GrGLUniformManager.h b/src/gpu/gl/GrGLUniformManager.h
index eefab049865070d92ea57cb88ccdfb536fea3a18..85a6e7ec9e35f290482cdc9eb44f4aab6e95384d 100644
--- a/src/gpu/gl/GrGLUniformManager.h
+++ b/src/gpu/gl/GrGLUniformManager.h
@@ -69,6 +69,13 @@ public:
void setMatrix3fv(UniformHandle, int offset, int arrayCount, const GrGLfloat matrices[]) const;
void setMatrix4fv(UniformHandle, int offset, int arrayCount, const GrGLfloat matrices[]) const;
+ /** Functions for setting global GL uniforms. Since anybody can change these, they need to
+ * be set every time, even if it's the same value as last time. The implementation will
+ * shadow the state and skip updates where possible.
+ */
+ void enableGlobalTexGen(int unitIndex, int numComponents, const GrGLfloat* coefficients) const;
+ void enableGlobalTexGen(int unitIndex, int numComponents, const SkMatrix& matrix) const;
+
// convenience method for uploading a SkMatrix to a 3x3 matrix uniform
void setSkMatrix(UniformHandle, const SkMatrix&) const;

Powered by Google App Engine
This is Rietveld 408576698