Index: src/gpu/gl/GrGLShaderBuilder.h |
diff --git a/src/gpu/gl/GrGLShaderBuilder.h b/src/gpu/gl/GrGLShaderBuilder.h |
index 4c43fc36c3947cb1c9abddb73144a22cd760688f..208c61060becc7ee4a8c087743d96cfd2f3903c5 100644 |
--- a/src/gpu/gl/GrGLShaderBuilder.h |
+++ b/src/gpu/gl/GrGLShaderBuilder.h |
@@ -450,4 +450,26 @@ private: |
typedef GrGLShaderBuilder INHERITED; |
}; |
+//////////////////////////////////////////////////////////////////////////////// |
+ |
+class GrGLFragmentOnlyShaderBuilder : public GrGLShaderBuilder { |
+public: |
+ GrGLFragmentOnlyShaderBuilder(GrGpuGL*, GrGLUniformManager&, const GrGLProgramDesc&); |
+ |
+ int getNumTexCoordSets() const { return fNumTexCoordSets; } |
+ int addTexCoordSets(int count) { return (fNumTexCoordSets += count) - count; } |
+ |
+ virtual GrGLProgramEffects* createAndEmitEffects( |
+ const GrEffectStage* effectStages[], |
+ const EffectKey effectKeys[], |
+ int effectCnt, |
+ SkString* inOutFSColor, |
+ GrSLConstantVec* fsInOutColorKnownValue) SK_OVERRIDE; |
+ |
+private: |
+ int fNumTexCoordSets; |
+ |
+ typedef GrGLShaderBuilder INHERITED; |
+}; |
+ |
#endif |