aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PaintTest.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-04-04 10:02:58 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-04 10:02:58 -0700
commitefdfd51b68a300d5c6e28743fe0344ca05d1cec9 (patch)
tree3cd04d31a56219559e89f6eded6f7a894eb700ba /tests/PaintTest.cpp
parent175cf0e51b9fbb075588c4d29e7e4257cea6f4ad (diff)
switch maskfilters to sk_sp
Diffstat (limited to 'tests/PaintTest.cpp')
-rw-r--r--tests/PaintTest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/PaintTest.cpp b/tests/PaintTest.cpp
index b07c0e41ae..253ce86769 100644
--- a/tests/PaintTest.cpp
+++ b/tests/PaintTest.cpp
@@ -147,9 +147,8 @@ DEF_TEST(Paint_copy, reporter) {
// set a few pointers
SkLayerDrawLooper::Builder looperBuilder;
paint.setLooper(looperBuilder.detach());
- SkMaskFilter* mask = SkBlurMaskFilter::Create(kNormal_SkBlurStyle,
- SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(1)));
- paint.setMaskFilter(mask)->unref();
+ paint.setMaskFilter(SkBlurMaskFilter::Make(kNormal_SkBlurStyle,
+ SkBlurMask::ConvertRadiusToSigma(1)));
// copy the paint using the copy constructor and check they are the same
SkPaint copiedPaint = paint;