| Index: src/gpu/GrDrawState.h
 | 
| diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h
 | 
| index de14763a0508fd71ca17c8587aca41b7b0618549..d2c60ea0724b1a57bddd30eacb02ceaa71b5df73 100644
 | 
| --- a/src/gpu/GrDrawState.h
 | 
| +++ b/src/gpu/GrDrawState.h
 | 
| @@ -340,13 +340,13 @@
 | 
|      /// the color / coverage distinction.
 | 
|      ////
 | 
|  
 | 
| -    const GrEffect* addColorEffect(const GrEffect* effect, int attr0 = -1, int attr1 = -1) {
 | 
| +    const GrEffectRef* addColorEffect(const GrEffectRef* effect, int attr0 = -1, int attr1 = -1) {
 | 
|          SkASSERT(NULL != effect);
 | 
|          SkNEW_APPEND_TO_TARRAY(&fColorStages, GrEffectStage, (effect, attr0, attr1));
 | 
|          return effect;
 | 
|      }
 | 
|  
 | 
| -    const GrEffect* addCoverageEffect(const GrEffect* effect, int attr0 = -1, int attr1 = -1) {
 | 
| +    const GrEffectRef* addCoverageEffect(const GrEffectRef* effect, int attr0 = -1, int attr1 = -1) {
 | 
|          SkASSERT(NULL != effect);
 | 
|          SkNEW_APPEND_TO_TARRAY(&fCoverageStages, GrEffectStage, (effect, attr0, attr1));
 | 
|          return effect;
 | 
| @@ -356,23 +356,27 @@
 | 
|       * Creates a GrSimpleTextureEffect that uses local coords as texture coordinates.
 | 
|       */
 | 
|      void addColorTextureEffect(GrTexture* texture, const SkMatrix& matrix) {
 | 
| -        this->addColorEffect(GrSimpleTextureEffect::Create(texture, matrix))->unref();
 | 
| +        GrEffectRef* effect = GrSimpleTextureEffect::Create(texture, matrix);
 | 
| +        this->addColorEffect(effect)->unref();
 | 
|      }
 | 
|  
 | 
|      void addCoverageTextureEffect(GrTexture* texture, const SkMatrix& matrix) {
 | 
| -        this->addCoverageEffect(GrSimpleTextureEffect::Create(texture, matrix))->unref();
 | 
| +        GrEffectRef* effect = GrSimpleTextureEffect::Create(texture, matrix);
 | 
| +        this->addCoverageEffect(effect)->unref();
 | 
|      }
 | 
|  
 | 
|      void addColorTextureEffect(GrTexture* texture,
 | 
|                                 const SkMatrix& matrix,
 | 
|                                 const GrTextureParams& params) {
 | 
| -        this->addColorEffect(GrSimpleTextureEffect::Create(texture, matrix, params))->unref();
 | 
| +        GrEffectRef* effect = GrSimpleTextureEffect::Create(texture, matrix, params);
 | 
| +        this->addColorEffect(effect)->unref();
 | 
|      }
 | 
|  
 | 
|      void addCoverageTextureEffect(GrTexture* texture,
 | 
|                                    const SkMatrix& matrix,
 | 
|                                    const GrTextureParams& params) {
 | 
| -        this->addCoverageEffect(GrSimpleTextureEffect::Create(texture, matrix, params))->unref();
 | 
| +        GrEffectRef* effect = GrSimpleTextureEffect::Create(texture, matrix, params);
 | 
| +        this->addCoverageEffect(effect)->unref();
 | 
|      }
 | 
|  
 | 
|      /**
 | 
| 
 |