Chromium Code Reviews| 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..6df646a5d3bf50938ee5e6a5482a593d6fdf4a4b 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) { |
| + SkString tempDecl; |
| + var.appendDecl(fProgramBuilder->ctxInfo(), &tempDecl); |
| + this->codeAppendf("%s;\n", tempDecl.c_str()); |
|
bsalomon
2014/08/29 14:55:06
nit: don't need the \n anymore... we pretty print
|
| +} |
| + |
| void GrGLShaderBuilder::emitFunction(GrSLType returnType, |
| const char* name, |
| int argCnt, |