| Index: src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp
 | 
| diff --git a/src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp b/src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp
 | 
| index b6959e32e17d3ad30193f4dde2de2f8712239e43..4d0aa0fbfc7bb1ee999cebeadc451ceb5cef0041 100644
 | 
| --- a/src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp
 | 
| +++ b/src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp
 | 
| @@ -59,10 +59,10 @@ class GLEdge2PtConicalEffect;
 | 
|  class Edge2PtConicalEffect : public GrGradientEffect {
 | 
|  public:
 | 
|  
 | 
| -    static GrEffectRef* Create(GrContext* ctx,
 | 
| -                               const SkTwoPointConicalGradient& shader,
 | 
| -                               const SkMatrix& matrix,
 | 
| -                               SkShader::TileMode tm) {
 | 
| +    static GrEffect* Create(GrContext* ctx,
 | 
| +                            const SkTwoPointConicalGradient& shader,
 | 
| +                            const SkMatrix& matrix,
 | 
| +                            SkShader::TileMode tm) {
 | 
|          return SkNEW_ARGS(Edge2PtConicalEffect, (ctx, shader, matrix, tm));
 | 
|      }
 | 
|  
 | 
| @@ -172,10 +172,10 @@ const GrBackendEffectFactory& Edge2PtConicalEffect::getFactory() const {
 | 
|  
 | 
|  GR_DEFINE_EFFECT_TEST(Edge2PtConicalEffect);
 | 
|  
 | 
| -GrEffectRef* Edge2PtConicalEffect::TestCreate(SkRandom* random,
 | 
| -                                              GrContext* context,
 | 
| -                                              const GrDrawTargetCaps&,
 | 
| -                                              GrTexture**) {
 | 
| +GrEffect* Edge2PtConicalEffect::TestCreate(SkRandom* random,
 | 
| +                                           GrContext* context,
 | 
| +                                           const GrDrawTargetCaps&,
 | 
| +                                           GrTexture**) {
 | 
|      SkPoint center1 = {random->nextUScalar1(), random->nextUScalar1()};
 | 
|      SkScalar radius1 = random->nextUScalar1();
 | 
|      SkPoint center2;
 | 
| @@ -202,9 +202,9 @@ GrEffectRef* Edge2PtConicalEffect::TestCreate(SkRandom* random,
 | 
|                                                                            colors, stops, colorCount,
 | 
|                                                                            tm));
 | 
|      SkPaint paint;
 | 
| -    GrEffectRef* effect;
 | 
| -    GrColor grColor;
 | 
| -    shader->asNewEffect(context, paint, NULL, &grColor, &effect);
 | 
| +    GrEffect* effect;
 | 
| +    GrColor paintColor;
 | 
| +    SkAssertResult(shader->asNewEffect(context, paint, NULL, &paintColor, &effect));
 | 
|      return effect;
 | 
|  }
 | 
|  
 | 
| @@ -365,11 +365,11 @@ class GLFocalOutside2PtConicalEffect;
 | 
|  class FocalOutside2PtConicalEffect : public GrGradientEffect {
 | 
|  public:
 | 
|  
 | 
| -    static GrEffectRef* Create(GrContext* ctx,
 | 
| -                               const SkTwoPointConicalGradient& shader,
 | 
| -                               const SkMatrix& matrix,
 | 
| -                               SkShader::TileMode tm,
 | 
| -                               SkScalar focalX) {
 | 
| +    static GrEffect* Create(GrContext* ctx,
 | 
| +                            const SkTwoPointConicalGradient& shader,
 | 
| +                            const SkMatrix& matrix,
 | 
| +                            SkShader::TileMode tm,
 | 
| +                            SkScalar focalX) {
 | 
|          return SkNEW_ARGS(FocalOutside2PtConicalEffect, (ctx, shader, matrix, tm, focalX));
 | 
|      }
 | 
|  
 | 
| @@ -448,10 +448,10 @@ const GrBackendEffectFactory& FocalOutside2PtConicalEffect::getFactory() const {
 | 
|  
 | 
|  GR_DEFINE_EFFECT_TEST(FocalOutside2PtConicalEffect);
 | 
|  
 | 
| -GrEffectRef* FocalOutside2PtConicalEffect::TestCreate(SkRandom* random,
 | 
| -                                                      GrContext* context,
 | 
| -                                                      const GrDrawTargetCaps&,
 | 
| -                                                      GrTexture**) {
 | 
| +GrEffect* FocalOutside2PtConicalEffect::TestCreate(SkRandom* random,
 | 
| +                                                   GrContext* context,
 | 
| +                                                   const GrDrawTargetCaps&,
 | 
| +                                                   GrTexture**) {
 | 
|      SkPoint center1 = {random->nextUScalar1(), random->nextUScalar1()};
 | 
|      SkScalar radius1 = 0.f;
 | 
|      SkPoint center2;
 | 
| @@ -475,9 +475,9 @@ GrEffectRef* FocalOutside2PtConicalEffect::TestCreate(SkRandom* random,
 | 
|                                                                            colors, stops, colorCount,
 | 
|                                                                            tm));
 | 
|      SkPaint paint;
 | 
| -    GrEffectRef* effect;
 | 
| -    GrColor grColor;
 | 
| -    shader->asNewEffect(context, paint, NULL, &grColor, &effect);
 | 
| +    GrEffect* effect;
 | 
| +    GrColor paintColor;
 | 
| +    SkAssertResult(shader->asNewEffect(context, paint, NULL, &paintColor, &effect));
 | 
|      return effect;
 | 
|  }
 | 
|  
 | 
| @@ -579,11 +579,11 @@ class GLFocalInside2PtConicalEffect;
 | 
|  class FocalInside2PtConicalEffect : public GrGradientEffect {
 | 
|  public:
 | 
|  
 | 
| -    static GrEffectRef* Create(GrContext* ctx,
 | 
| -                               const SkTwoPointConicalGradient& shader,
 | 
| -                               const SkMatrix& matrix,
 | 
| -                               SkShader::TileMode tm,
 | 
| -                               SkScalar focalX) {
 | 
| +    static GrEffect* Create(GrContext* ctx,
 | 
| +                            const SkTwoPointConicalGradient& shader,
 | 
| +                            const SkMatrix& matrix,
 | 
| +                            SkShader::TileMode tm,
 | 
| +                            SkScalar focalX) {
 | 
|          return SkNEW_ARGS(FocalInside2PtConicalEffect, (ctx, shader, matrix, tm, focalX));
 | 
|      }
 | 
|  
 | 
| @@ -657,10 +657,10 @@ const GrBackendEffectFactory& FocalInside2PtConicalEffect::getFactory() const {
 | 
|  
 | 
|  GR_DEFINE_EFFECT_TEST(FocalInside2PtConicalEffect);
 | 
|  
 | 
| -GrEffectRef* FocalInside2PtConicalEffect::TestCreate(SkRandom* random,
 | 
| -                                                     GrContext* context,
 | 
| -                                                     const GrDrawTargetCaps&,
 | 
| -                                                     GrTexture**) {
 | 
| +GrEffect* FocalInside2PtConicalEffect::TestCreate(SkRandom* random,
 | 
| +                                                  GrContext* context,
 | 
| +                                                  const GrDrawTargetCaps&,
 | 
| +                                                  GrTexture**) {
 | 
|      SkPoint center1 = {random->nextUScalar1(), random->nextUScalar1()};
 | 
|      SkScalar radius1 = 0.f;
 | 
|      SkPoint center2;
 | 
| @@ -686,10 +686,10 @@ GrEffectRef* FocalInside2PtConicalEffect::TestCreate(SkRandom* random,
 | 
|                                                                            colors, stops, colorCount,
 | 
|                                                                            tm));
 | 
|      SkPaint paint;
 | 
| -    GrColor grColor;
 | 
| -    GrEffectRef* grEffect;
 | 
| -    shader->asNewEffect(context, paint, NULL, &grColor, &grEffect);
 | 
| -    return grEffect;
 | 
| +    GrColor paintColor;
 | 
| +    GrEffect* effect;
 | 
| +    SkAssertResult(shader->asNewEffect(context, paint, NULL, &paintColor, &effect));
 | 
| +    return effect;
 | 
|  }
 | 
|  
 | 
|  GLFocalInside2PtConicalEffect::GLFocalInside2PtConicalEffect(const GrBackendEffectFactory& factory,
 | 
| @@ -812,11 +812,11 @@ class GLCircleInside2PtConicalEffect;
 | 
|  class CircleInside2PtConicalEffect : public GrGradientEffect {
 | 
|  public:
 | 
|  
 | 
| -    static GrEffectRef* Create(GrContext* ctx,
 | 
| -                               const SkTwoPointConicalGradient& shader,
 | 
| -                               const SkMatrix& matrix,
 | 
| -                               SkShader::TileMode tm,
 | 
| -                               const CircleConicalInfo& info) {
 | 
| +    static GrEffect* Create(GrContext* ctx,
 | 
| +                            const SkTwoPointConicalGradient& shader,
 | 
| +                            const SkMatrix& matrix,
 | 
| +                            SkShader::TileMode tm,
 | 
| +                            const CircleConicalInfo& info) {
 | 
|          return SkNEW_ARGS(CircleInside2PtConicalEffect, (ctx, shader, matrix, tm, info));
 | 
|      }
 | 
|  
 | 
| @@ -902,10 +902,10 @@ const GrBackendEffectFactory& CircleInside2PtConicalEffect::getFactory() const {
 | 
|  
 | 
|  GR_DEFINE_EFFECT_TEST(CircleInside2PtConicalEffect);
 | 
|  
 | 
| -GrEffectRef* CircleInside2PtConicalEffect::TestCreate(SkRandom* random,
 | 
| -                                                      GrContext* context,
 | 
| -                                                      const GrDrawTargetCaps&,
 | 
| -                                                      GrTexture**) {
 | 
| +GrEffect* CircleInside2PtConicalEffect::TestCreate(SkRandom* random,
 | 
| +                                                   GrContext* context,
 | 
| +                                                   const GrDrawTargetCaps&,
 | 
| +                                                   GrTexture**) {
 | 
|      SkPoint center1 = {random->nextUScalar1(), random->nextUScalar1()};
 | 
|      SkScalar radius1 = random->nextUScalar1() + 0.0001f; // make sure radius1 != 0
 | 
|      SkPoint center2;
 | 
| @@ -930,10 +930,10 @@ GrEffectRef* CircleInside2PtConicalEffect::TestCreate(SkRandom* random,
 | 
|                                                                            colors, stops, colorCount,
 | 
|                                                                            tm));
 | 
|      SkPaint paint;
 | 
| -    GrColor grColor;
 | 
| -    GrEffectRef* grEffect;
 | 
| -    shader->asNewEffect(context, paint, NULL, &grColor, &grEffect);
 | 
| -    return grEffect;
 | 
| +    GrColor paintColor;
 | 
| +    GrEffect* effect;
 | 
| +    SkAssertResult(shader->asNewEffect(context, paint, NULL, &paintColor, &effect));
 | 
| +    return effect;
 | 
|  }
 | 
|  
 | 
|  GLCircleInside2PtConicalEffect::GLCircleInside2PtConicalEffect(const GrBackendEffectFactory& factory,
 | 
| @@ -1024,11 +1024,11 @@ class GLCircleOutside2PtConicalEffect;
 | 
|  class CircleOutside2PtConicalEffect : public GrGradientEffect {
 | 
|  public:
 | 
|  
 | 
| -    static GrEffectRef* Create(GrContext* ctx,
 | 
| -                               const SkTwoPointConicalGradient& shader,
 | 
| -                               const SkMatrix& matrix,
 | 
| -                               SkShader::TileMode tm,
 | 
| -                               const CircleConicalInfo& info) {
 | 
| +    static GrEffect* Create(GrContext* ctx,
 | 
| +                            const SkTwoPointConicalGradient& shader,
 | 
| +                            const SkMatrix& matrix,
 | 
| +                            SkShader::TileMode tm,
 | 
| +                            const CircleConicalInfo& info) {
 | 
|          return SkNEW_ARGS(CircleOutside2PtConicalEffect, (ctx, shader, matrix, tm, info));
 | 
|      }
 | 
|  
 | 
| @@ -1131,10 +1131,10 @@ const GrBackendEffectFactory& CircleOutside2PtConicalEffect::getFactory() const
 | 
|  
 | 
|  GR_DEFINE_EFFECT_TEST(CircleOutside2PtConicalEffect);
 | 
|  
 | 
| -GrEffectRef* CircleOutside2PtConicalEffect::TestCreate(SkRandom* random,
 | 
| -                                                       GrContext* context,
 | 
| -                                                       const GrDrawTargetCaps&,
 | 
| -                                                       GrTexture**) {
 | 
| +GrEffect* CircleOutside2PtConicalEffect::TestCreate(SkRandom* random,
 | 
| +                                                    GrContext* context,
 | 
| +                                                    const GrDrawTargetCaps&,
 | 
| +                                                    GrTexture**) {
 | 
|      SkPoint center1 = {random->nextUScalar1(), random->nextUScalar1()};
 | 
|      SkScalar radius1 = random->nextUScalar1() + 0.0001f; // make sure radius1 != 0
 | 
|      SkPoint center2;
 | 
| @@ -1160,10 +1160,10 @@ GrEffectRef* CircleOutside2PtConicalEffect::TestCreate(SkRandom* random,
 | 
|                                                                            colors, stops, colorCount,
 | 
|                                                                            tm));
 | 
|      SkPaint paint;
 | 
| -    GrColor grColor;
 | 
| -    GrEffectRef* grEffect;
 | 
| -    shader->asNewEffect(context, paint, NULL, &grColor, &grEffect);
 | 
| -    return grEffect;
 | 
| +    GrColor paintColor;
 | 
| +    GrEffect* effect;
 | 
| +    SkAssertResult(shader->asNewEffect(context, paint, NULL, &paintColor, &effect));
 | 
| +    return effect;
 | 
|  }
 | 
|  
 | 
|  GLCircleOutside2PtConicalEffect::GLCircleOutside2PtConicalEffect(const GrBackendEffectFactory& factory,
 | 
| @@ -1280,10 +1280,10 @@ GrGLEffect::EffectKey GLCircleOutside2PtConicalEffect::GenKey(const GrDrawEffect
 | 
|  
 | 
|  //////////////////////////////////////////////////////////////////////////////
 | 
|  
 | 
| -GrEffectRef* Gr2PtConicalGradientEffect::Create(GrContext* ctx,
 | 
| -                                                const SkTwoPointConicalGradient& shader,
 | 
| -                                                SkShader::TileMode tm,
 | 
| -                                                const SkMatrix* localMatrix) {
 | 
| +GrEffect* Gr2PtConicalGradientEffect::Create(GrContext* ctx,
 | 
| +                                             const SkTwoPointConicalGradient& shader,
 | 
| +                                             SkShader::TileMode tm,
 | 
| +                                             const SkMatrix* localMatrix) {
 | 
|      SkMatrix matrix;
 | 
|      if (!shader.getLocalMatrix().invert(&matrix)) {
 | 
|          return NULL;
 | 
| 
 |