Index: src/gpu/GrAARectRenderer.cpp |
diff --git a/src/gpu/GrAARectRenderer.cpp b/src/gpu/GrAARectRenderer.cpp |
index 497b3cfbb8d6b11903a5b9d741596f5e2e08081d..48024a6999f6d69a36e91c82f48baaaacddfe99c 100644 |
--- a/src/gpu/GrAARectRenderer.cpp |
+++ b/src/gpu/GrAARectRenderer.cpp |
@@ -19,7 +19,7 @@ class GrGLAlignedRectEffect; |
// Axis Aligned special case |
class GrAlignedRectEffect : public GrVertexEffect { |
public: |
- static GrEffectRef* Create() { |
+ static GrEffect* Create() { |
GR_CREATE_STATIC_EFFECT(gAlignedRectEffect, GrAlignedRectEffect, ()); |
gAlignedRectEffect->ref(); |
return gAlignedRectEffect; |
@@ -113,10 +113,10 @@ private: |
GR_DEFINE_EFFECT_TEST(GrAlignedRectEffect); |
-GrEffectRef* GrAlignedRectEffect::TestCreate(SkRandom* random, |
- GrContext* context, |
- const GrDrawTargetCaps&, |
- GrTexture* textures[]) { |
+GrEffect* GrAlignedRectEffect::TestCreate(SkRandom* random, |
+ GrContext* context, |
+ const GrDrawTargetCaps&, |
+ GrTexture* textures[]) { |
return GrAlignedRectEffect::Create(); |
} |
@@ -137,7 +137,7 @@ class GrGLRectEffect; |
*/ |
class GrRectEffect : public GrVertexEffect { |
public: |
- static GrEffectRef* Create() { |
+ static GrEffect* Create() { |
GR_CREATE_STATIC_EFFECT(gRectEffect, GrRectEffect, ()); |
gRectEffect->ref(); |
return gRectEffect; |
@@ -248,10 +248,10 @@ private: |
GR_DEFINE_EFFECT_TEST(GrRectEffect); |
-GrEffectRef* GrRectEffect::TestCreate(SkRandom* random, |
- GrContext* context, |
- const GrDrawTargetCaps&, |
- GrTexture* textures[]) { |
+GrEffect* GrRectEffect::TestCreate(SkRandom* random, |
+ GrContext* context, |
+ const GrDrawTargetCaps&, |
+ GrTexture* textures[]) { |
return GrRectEffect::Create(); |
} |
@@ -631,7 +631,7 @@ void GrAARectRenderer::shaderFillAARect(GrGpu* gpu, |
RectVertex* verts = reinterpret_cast<RectVertex*>(geo.vertices()); |
- GrEffectRef* effect = GrRectEffect::Create(); |
+ GrEffect* effect = GrRectEffect::Create(); |
static const int kRectAttrIndex = 1; |
static const int kWidthIndex = 2; |
drawState->addCoverageEffect(effect, kRectAttrIndex, kWidthIndex)->unref(); |
@@ -681,7 +681,7 @@ void GrAARectRenderer::shaderFillAlignedAARect(GrGpu* gpu, |
AARectVertex* verts = reinterpret_cast<AARectVertex*>(geo.vertices()); |
- GrEffectRef* effect = GrAlignedRectEffect::Create(); |
+ GrEffect* effect = GrAlignedRectEffect::Create(); |
static const int kOffsetIndex = 1; |
drawState->addCoverageEffect(effect, kOffsetIndex)->unref(); |