Remove texture/mask setters on GrPaint
Review URL: http://codereview.appspot.com/6446052/
git-svn-id: http://skia.googlecode.com/svn/trunk@4790 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/texdata.cpp b/gm/texdata.cpp
index c3c09fb..1d13177 100644
--- a/gm/texdata.cpp
+++ b/gm/texdata.cpp
@@ -7,6 +7,7 @@
*/
#include "gm.h"
#include "GrContext.h"
+#include "effects/GrSingleTextureEffect.h"
#include "SkColorPriv.h"
#include "SkDevice.h"
@@ -112,7 +113,9 @@
GrMatrix* sampleMat = paint.textureSampler(0)->matrix();
*sampleMat = vm;
sampleMat->postIDiv(2*S, 2*S);
- paint.setTexture(0, texture);
+ paint.textureSampler(0)->setCustomStage(
+ SkNEW_ARGS(GrSingleTextureEffect, (texture)))->unref();
+
ctx->drawRect(paint, GrRect::MakeWH(2*S, 2*S));