Index: src/gpu/gl/GrGLShaderBuilder.cpp |
diff --git a/src/gpu/gl/GrGLShaderBuilder.cpp b/src/gpu/gl/GrGLShaderBuilder.cpp |
index 7d2152f3018e3bbf4f69287a49c264b20cb98516..4b7de027936df1debe1adc44f1b74fc6c24a26d1 100644 |
--- a/src/gpu/gl/GrGLShaderBuilder.cpp |
+++ b/src/gpu/gl/GrGLShaderBuilder.cpp |
@@ -337,7 +337,7 @@ void GrGLShaderBuilder::nameVariable(SkString* out, char prefix, const char* nam |
const char* GrGLShaderBuilder::dstColor() { |
if (fCodeStage.inStageCode()) { |
- const GrEffectRef& effect = *fCodeStage.effectStage()->getEffect(); |
+ const GrEffect* effect = fCodeStage.effectStage()->getEffect(); |
if (!effect->willReadDstColor()) { |
SkDEBUGFAIL("GrGLEffect asked for dst color but its generating GrEffect " |
"did not request access."); |
@@ -487,7 +487,7 @@ SkString GrGLShaderBuilder::ensureFSCoords2D(const TransformedCoordsArray& coord |
const char* GrGLShaderBuilder::fragmentPosition() { |
if (fCodeStage.inStageCode()) { |
- const GrEffectRef& effect = *fCodeStage.effectStage()->getEffect(); |
+ const GrEffect* effect = fCodeStage.effectStage()->getEffect(); |
if (!effect->willReadFragmentPosition()) { |
SkDEBUGFAIL("GrGLEffect asked for frag position but its generating GrEffect " |
"did not request access."); |