aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SamplePathEffects.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-03-21 13:25:16 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-21 13:25:16 -0700
commit7b380d0d0e91ae6967c52bfa14853a77b9551de4 (patch)
treee76ea25f431624e01b51ca605761438fd4560120 /samplecode/SamplePathEffects.cpp
parentdc6c9bf91c158e89cd9d5ef19dfbf1da98c598a6 (diff)
guard rasterizer and drawlooper setters
Diffstat (limited to 'samplecode/SamplePathEffects.cpp')
-rw-r--r--samplecode/SamplePathEffects.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SamplePathEffects.cpp b/samplecode/SamplePathEffects.cpp
index 10715f382a..1f9915d378 100644
--- a/samplecode/SamplePathEffects.cpp
+++ b/samplecode/SamplePathEffects.cpp
@@ -152,7 +152,7 @@ protected:
paint.setARGB(0xFF, 0, 0, 0);
paint.setPathEffect(make_warp_pe(fPhase));
TestRastBuilder testRastBuilder;
- paint.setRasterizer(testRastBuilder.detachRasterizer())->unref();
+ paint.setRasterizer(testRastBuilder.detach());
canvas->drawPath(fPath, paint);
}