aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/RecordOptsTest.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-03-28 13:13:42 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-28 13:13:42 -0700
commit5ff17b13524eea03e4b672ee3b3a49b649dd09fb (patch)
tree784821fc2fdc1c2d08a89321e22cbbe405021f01 /tests/RecordOptsTest.cpp
parent02b2f1900db8e20daf22a2c9972311308d259426 (diff)
Swap SkPictureImageFilter's factories over to smart pointers
A trial balloon before converting the rest This requires https://codereview.chromium.org/1836443003/ (add SK_SUPPORT_LEGACY_IMAGEFILTER_PTR flag for future skia CL) to land in Chromium first GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1831323003 Review URL: https://codereview.chromium.org/1831323003
Diffstat (limited to 'tests/RecordOptsTest.cpp')
-rw-r--r--tests/RecordOptsTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/RecordOptsTest.cpp b/tests/RecordOptsTest.cpp
index 77eb76bc02..242712da3b 100644
--- a/tests/RecordOptsTest.cpp
+++ b/tests/RecordOptsTest.cpp
@@ -239,7 +239,7 @@ DEF_TEST(RecordOpts_MergeSvgOpacityAndFilterLayers, r) {
canvas->drawRect(SkRect::MakeWH(SkIntToScalar(50), SkIntToScalar(50)), shapePaint);
shape = recorder.finishRecordingAsPicture();
}
- translucentFilterLayerPaint.setImageFilter(SkPictureImageFilter::Create(shape.get()))->unref();
+ translucentFilterLayerPaint.setImageFilter(SkPictureImageFilter::Make(shape));
int index = 0;