diff options
author | reed <reed@google.com> | 2016-03-21 13:25:16 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-21 13:25:16 -0700 |
commit | 7b380d0d0e91ae6967c52bfa14853a77b9551de4 (patch) | |
tree | e76ea25f431624e01b51ca605761438fd4560120 /tests/PaintTest.cpp | |
parent | dc6c9bf91c158e89cd9d5ef19dfbf1da98c598a6 (diff) |
guard rasterizer and drawlooper setters
Need to land https://codereview.chromium.org/1823513002/ first
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1821533002
Review URL: https://codereview.chromium.org/1821533002
Diffstat (limited to 'tests/PaintTest.cpp')
-rw-r--r-- | tests/PaintTest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/PaintTest.cpp b/tests/PaintTest.cpp index 7affa9ee94..a58bd864ec 100644 --- a/tests/PaintTest.cpp +++ b/tests/PaintTest.cpp @@ -146,8 +146,7 @@ DEF_TEST(Paint_copy, reporter) { paint.setStrokeWidth(SkIntToScalar(2)); // set a few pointers SkLayerDrawLooper::Builder looperBuilder; - SkLayerDrawLooper* looper = looperBuilder.detachLooper(); - paint.setLooper(looper)->unref(); + paint.setLooper(looperBuilder.detach()); SkMaskFilter* mask = SkBlurMaskFilter::Create(kNormal_SkBlurStyle, SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(1))); paint.setMaskFilter(mask)->unref(); |