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; |