Index: src/gpu/GrAAConvexPathRenderer.cpp |
diff --git a/src/gpu/GrAAConvexPathRenderer.cpp b/src/gpu/GrAAConvexPathRenderer.cpp |
index d0f6e0ef64d4494d59ee3ea226bbf240765fb189..7765eb1839831ca3e5c1bfd1a805ee86526b0459 100644 |
--- a/src/gpu/GrAAConvexPathRenderer.cpp |
+++ b/src/gpu/GrAAConvexPathRenderer.cpp |
@@ -506,7 +506,7 @@ static void create_vertices(const SegmentArray& segments, |
class QuadEdgeEffect : public GrVertexEffect { |
public: |
- static GrEffectRef* Create() { |
+ static GrEffect* Create() { |
GR_CREATE_STATIC_EFFECT(gQuadEdgeEffect, QuadEdgeEffect, ()); |
gQuadEdgeEffect->ref(); |
return gQuadEdgeEffect; |
@@ -595,10 +595,10 @@ private: |
GR_DEFINE_EFFECT_TEST(QuadEdgeEffect); |
-GrEffectRef* QuadEdgeEffect::TestCreate(SkRandom* random, |
- GrContext*, |
- const GrDrawTargetCaps& caps, |
- GrTexture*[]) { |
+GrEffect* QuadEdgeEffect::TestCreate(SkRandom* random, |
+ GrContext*, |
+ const GrDrawTargetCaps& caps, |
+ GrTexture*[]) { |
// Doesn't work without derivative instructions. |
return caps.shaderDerivativeSupport() ? QuadEdgeEffect::Create() : NULL; |
} |
@@ -675,7 +675,7 @@ bool GrAAConvexPathRenderer::onDrawPath(const SkPath& origPath, |
drawState->setVertexAttribs<gPathAttribs>(SK_ARRAY_COUNT(gPathAttribs)); |
static const int kEdgeAttrIndex = 1; |
- GrEffectRef* quadEffect = QuadEdgeEffect::Create(); |
+ GrEffect* quadEffect = QuadEdgeEffect::Create(); |
drawState->addCoverageEffect(quadEffect, kEdgeAttrIndex)->unref(); |
GrDrawTarget::AutoReleaseGeometry arg(target, vCount, iCount); |