Index: src/gpu/gl/builders/GrGLShaderBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLShaderBuilder.cpp b/src/gpu/gl/builders/GrGLShaderBuilder.cpp |
index 4dea14263214c778b396289b7378cc47f36634b9..72fe37ef0a28973702af79e1f6a768411115ebad 100644 |
--- a/src/gpu/gl/builders/GrGLShaderBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLShaderBuilder.cpp |
@@ -62,6 +62,12 @@ GrGLShaderBuilder::GrGLShaderBuilder(GrGLProgramBuilder* program) |
, fFeaturesAddedMask(0) { |
} |
+void GrGLShaderBuilder::declAppend(const GrGLShaderVar& var, const GrGLProgramBuilder& builder) { |
+ SkString tempDecl; |
+ var.appendDecl(builder.ctxInfo(), &tempDecl); |
+ this->codeAppendf("%s;\n", tempDecl.c_str()); |
+} |
+ |
void GrGLShaderBuilder::emitFunction(GrSLType returnType, |
const char* name, |
int argCnt, |