Index: src/gpu/gl/GrGLProgramDataManager.h |
diff --git a/src/gpu/gl/GrGLProgramDataManager.h b/src/gpu/gl/GrGLProgramDataManager.h |
index 2c92cece1b774d7aea07bf352fde8bbdb8f73b95..c2cb8fc69894f8ff8d8d8934a791242fd9121832 100644 |
--- a/src/gpu/gl/GrGLProgramDataManager.h |
+++ b/src/gpu/gl/GrGLProgramDataManager.h |
@@ -61,8 +61,10 @@ public: |
void set4fv(UniformHandle, int arrayCount, const float v[]) const override; |
// matrices are column-major, the first three upload a single matrix, the latter three upload |
// arrayCount matrices into a uniform array. |
+ void setMatrix2f(UniformHandle, const float matrix[]) const override; |
void setMatrix3f(UniformHandle, const float matrix[]) const override; |
void setMatrix4f(UniformHandle, const float matrix[]) const override; |
+ void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override; |
void setMatrix3fv(UniformHandle, int arrayCount, const float matrices[]) const override; |
void setMatrix4fv(UniformHandle, int arrayCount, const float matrices[]) const override; |
@@ -97,6 +99,9 @@ private: |
SkDEBUGCODE(void printUnused(const Uniform&) const;) |
+ template<int N> inline void setMatrices(UniformHandle, int arrayCount, |
+ const float matrices[]) const; |
+ |
SkTArray<Uniform, true> fUniforms; |
SkTArray<PathProcVarying, true> fPathProcVaryings; |
GrGLGpu* fGpu; |