Index: src/gpu/GrPathProcessor.cpp |
diff --git a/src/gpu/GrPathProcessor.cpp b/src/gpu/GrPathProcessor.cpp |
index 6e11140d9f364b6d50a538799f99b10587e680ae..0e856520d413c71af475d920e42b9ae93710f9b8 100644 |
--- a/src/gpu/GrPathProcessor.cpp |
+++ b/src/gpu/GrPathProcessor.cpp |
@@ -26,7 +26,7 @@ public: |
void emitCode(EmitArgs& args) override { |
GrGLSLGPBuilder* pb = args.fPB; |
- GrGLSLFragmentBuilder* fs = args.fPB->getFragmentShaderBuilder(); |
+ GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder; |
const GrPathProcessor& pathProc = args.fGP.cast<GrPathProcessor>(); |
// emit transforms |
@@ -40,12 +40,12 @@ public: |
kDefault_GrSLPrecision, |
"Color", |
&stagedLocalVarName); |
- fs->codeAppendf("%s = %s;", args.fOutputColor, stagedLocalVarName); |
+ fragBuilder->codeAppendf("%s = %s;", args.fOutputColor, stagedLocalVarName); |
} |
// setup constant solid coverage |
if (pathProc.opts().readsCoverage()) { |
- fs->codeAppendf("%s = vec4(1);", args.fOutputCoverage); |
+ fragBuilder->codeAppendf("%s = vec4(1);", args.fOutputCoverage); |
} |
} |