Index: src/gpu/gl/GrGLShaderBuilder.cpp |
diff --git a/src/gpu/gl/GrGLShaderBuilder.cpp b/src/gpu/gl/GrGLShaderBuilder.cpp |
index 71942404e7e6c080f5a0489bcdc0ad5ef7bd2d07..4d8df4e3b7e83761854bfe7d6292378893bc990b 100644 |
--- a/src/gpu/gl/GrGLShaderBuilder.cpp |
+++ b/src/gpu/gl/GrGLShaderBuilder.cpp |
@@ -943,6 +943,13 @@ GrGLFragmentOnlyShaderBuilder::GrGLFragmentOnlyShaderBuilder(GrGpuGL* gpu, |
SkASSERT(GrGLProgramDesc::kAttribute_ColorInput != desc.getHeader().fCoverageInput); |
} |
+int GrGLFragmentOnlyShaderBuilder::addTexCoordSets(int count) { |
+ int firstFreeCoordSet = fNumTexCoordSets; |
+ fNumTexCoordSets += count; |
+ SkASSERT(gpu()->glCaps().maxFixedFunctionTextureCoords() >= fNumTexCoordSets); |
+ return firstFreeCoordSet; |
+} |
+ |
GrGLProgramEffects* GrGLFragmentOnlyShaderBuilder::createAndEmitEffects( |
const GrEffectStage* effectStages[], |
const EffectKey effectKeys[], |