Index: src/gpu/gl/GrGLShaderBuilder.h |
diff --git a/src/gpu/gl/GrGLShaderBuilder.h b/src/gpu/gl/GrGLShaderBuilder.h |
index 42df62ac4583bb62df6870be74719b0ebefa208f..d0bbb4d30c1ba271103b043917aed809123e3cb7 100644 |
--- a/src/gpu/gl/GrGLShaderBuilder.h |
+++ b/src/gpu/gl/GrGLShaderBuilder.h |
@@ -168,6 +168,12 @@ public: |
const char* body, |
SkString* outName); |
+ void addTexGenUnit(GrSLType type, |
+ SkString* fsInName = NULL, |
+ int* unitIdx = NULL, |
+ int* numComponents = NULL); |
+ int getNumTexGenUnits() { return fNumTexGenUnits; } |
+ |
/** Add input/output variable declarations (i.e. 'varying') to the fragment shader. */ |
GrGLShaderVar& fsInputAppend() { return fFSInputs.push_back(); } |
GrGLShaderVar& fsOutputAppend() { return fFSOutputs.push_back(); } |
@@ -488,8 +494,9 @@ private: |
GrGLUniformManager::UniformHandle fDstCopyScaleUniform; |
bool fTopLeftFragPosRead; |
+ int fNumTexGenUnits; |
- SkAutoTDelete<VertexBuilder> fVertexBuilder; |
+ SkAutoTDelete<VertexBuilder> fVertexBuilder; |
}; |
#endif |