From 0ac6af49975c54c2debf41e9200af416ecd2d973 Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Wed, 16 Jan 2013 15:16:18 +0000 Subject: Wrap GrEffects in GrEffectPtr. This is the first step towards automatic recycling of scratch resouces in the cache via ref-cnts. R=robertphillips@google.com Review URL: https://codereview.appspot.com/7092061 git-svn-id: http://skia.googlecode.com/svn/trunk@7222 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gm/texdata.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gm') diff --git a/gm/texdata.cpp b/gm/texdata.cpp index e36feef0cb..1f888267ad 100644 --- a/gm/texdata.cpp +++ b/gm/texdata.cpp @@ -113,8 +113,7 @@ protected: SkMatrix tm; tm = vm; tm.postIDiv(2*S, 2*S); - paint.colorStage(0)->setEffect(SkNEW_ARGS(GrSingleTextureEffect, - (texture, tm)))->unref(); + paint.colorStage(0)->setEffect(GrSingleTextureEffect::Create(texture, tm))->unref(); ctx->drawRect(paint, GrRect::MakeWH(2*S, 2*S)); -- cgit v1.2.3