Index: src/gpu/glsl/GrGLSLPrimitiveProcessor.cpp |
diff --git a/src/gpu/glsl/GrGLSLPrimitiveProcessor.cpp b/src/gpu/glsl/GrGLSLPrimitiveProcessor.cpp |
index abb3abcb0d10d467fe9f9dc374c7ce5466ca6557..70b58cda94f2d85a747dd3dd32d0f73273d83522 100644 |
--- a/src/gpu/glsl/GrGLSLPrimitiveProcessor.cpp |
+++ b/src/gpu/glsl/GrGLSLPrimitiveProcessor.cpp |
@@ -33,9 +33,9 @@ SkMatrix GrGLSLPrimitiveProcessor::GetTransformMatrix(const SkMatrix& localMatri |
} |
void GrGLSLPrimitiveProcessor::setupUniformColor(GrGLSLGPBuilder* pb, |
+ GrGLSLFragmentBuilder* fragBuilder, |
const char* outputName, |
UniformHandle* colorUniform) { |
- GrGLSLFragmentBuilder* fs = pb->getFragmentShaderBuilder(); |
SkASSERT(colorUniform); |
const char* stagedLocalVarName; |
*colorUniform = pb->addUniform(GrGLSLProgramBuilder::kFragment_Visibility, |
@@ -43,5 +43,5 @@ void GrGLSLPrimitiveProcessor::setupUniformColor(GrGLSLGPBuilder* pb, |
kDefault_GrSLPrecision, |
"Color", |
&stagedLocalVarName); |
- fs->codeAppendf("%s = %s;", outputName, stagedLocalVarName); |
+ fragBuilder->codeAppendf("%s = %s;", outputName, stagedLocalVarName); |
} |