aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ImageFilterTest.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-04-15 07:57:40 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-15 07:57:40 -0700
commit534c270465a9824893d5c9d6c5bacef7726cc389 (patch)
tree8d189a3c806f2fc2232cd6bea5bc344cd9b53c3f /tests/ImageFilterTest.cpp
parentbfe11fc9a6e660f83a454b6a5f5945089a4800f3 (diff)
Update TileImageFilter to sk_sp
Diffstat (limited to 'tests/ImageFilterTest.cpp')
-rw-r--r--tests/ImageFilterTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp
index 172f84fa77..e92fef50d1 100644
--- a/tests/ImageFilterTest.cpp
+++ b/tests/ImageFilterTest.cpp
@@ -222,10 +222,10 @@ public:
cropRect));
this->addFilter("dilate", SkDilateImageFilter::Make(3, 2, input, cropRect));
this->addFilter("erode", SkErodeImageFilter::Make(2, 3, input, cropRect));
- this->addFilter("tile", sk_sp<SkImageFilter>(SkTileImageFilter::Create(
- SkRect::MakeXYWH(0, 0, 50, 50),
- cropRect ? cropRect->rect() : SkRect::MakeXYWH(0, 0, 100, 100),
- input.get())));
+ this->addFilter("tile", SkTileImageFilter::Make(
+ SkRect::MakeXYWH(0, 0, 50, 50),
+ cropRect ? cropRect->rect() : SkRect::MakeXYWH(0, 0, 100, 100),
+ input));
if (!cropRect) {
SkMatrix matrix;