aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-05 19:04:13 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-05 19:04:13 +0000
commitc7448cef098b835d6f9adf8a365fde9de076f178 (patch)
tree4d54ef27608b39bc67b15ef580e0aaa6c9bf9c66 /gm
parentffca6ce0e20665624b764ca6977b5acfda30931f (diff)
GrPaint encapsulation.
R=robertphillips@google.com Review URL: https://codereview.appspot.com/6624052 git-svn-id: http://skia.googlecode.com/svn/trunk@5838 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm')
-rw-r--r--gm/texdata.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/gm/texdata.cpp b/gm/texdata.cpp
index a87be453ea..724b4ec826 100644
--- a/gm/texdata.cpp
+++ b/gm/texdata.cpp
@@ -100,10 +100,7 @@ protected:
ctx->setRenderTarget(target);
GrPaint paint;
- paint.reset();
- paint.fColor = 0xffffffff;
- paint.fSrcBlendCoeff = kOne_GrBlendCoeff;
- paint.fDstBlendCoeff = kISA_GrBlendCoeff;
+ paint.setBlendFunc(kOne_GrBlendCoeff, kISA_GrBlendCoeff);
GrMatrix vm;
if (i) {
vm.setRotate(90 * SK_Scalar1,