aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/texdata.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-13 17:24:24 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-13 17:24:24 +0000
commit42dacab4e7366d9f53989558cc8d045c3d065bcd (patch)
treeb4659c9888df3193960c1dd1cfb01650dcc12cdb /gm/texdata.cpp
parent0408a346962ef0939704fe435a0cdde52da4613f (diff)
Make GrPaint have a variable sized array of color and coverage stages rather than a fixed size.
R=robertphillips@google.com, jvanverth@google.com Author: bsalomon@google.com Review URL: https://chromiumcodereview.appspot.com/18686007 git-svn-id: http://skia.googlecode.com/svn/trunk@10062 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/texdata.cpp')
-rw-r--r--gm/texdata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/texdata.cpp b/gm/texdata.cpp
index 6281825d25..cfb27f6f91 100644
--- a/gm/texdata.cpp
+++ b/gm/texdata.cpp
@@ -113,7 +113,7 @@ protected:
SkMatrix tm;
tm = vm;
tm.postIDiv(2*S, 2*S);
- paint.colorStage(0)->setEffect(GrSimpleTextureEffect::Create(texture, tm))->unref();
+ paint.addColorTextureEffect(texture, tm);
ctx->drawRect(paint, GrRect::MakeWH(2*S, 2*S));