diff options
author | robertphillips <robertphillips@google.com> | 2016-04-15 04:37:07 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-15 04:37:07 -0700 |
commit | a53011ef44705a091a8e24f7ea289a3f9ad759f2 (patch) | |
tree | b3cca836becb797f55d0caacb3f4cca0bf4e910e /tests | |
parent | 834d9e109298ae704043128005f8c1bc622350f4 (diff) |
Update DisplacementMapEffect to sk_sp
TBR=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1877783003
Review URL: https://codereview.chromium.org/1877783003
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ImageFilterTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp index 114c342ada..172f84fa77 100644 --- a/tests/ImageFilterTest.cpp +++ b/tests/ImageFilterTest.cpp @@ -160,10 +160,10 @@ public: sk_sp<SkImageFilter> gradientSource(SkImageSource::Make(std::move(gradientImage))); this->addFilter("displacement map", - sk_sp<SkImageFilter>(SkDisplacementMapEffect::Create( - SkDisplacementMapEffect::kR_ChannelSelectorType, - SkDisplacementMapEffect::kB_ChannelSelectorType, - 20.0f, gradientSource.get(), input.get(), cropRect))); + SkDisplacementMapEffect::Make(SkDisplacementMapEffect::kR_ChannelSelectorType, + SkDisplacementMapEffect::kB_ChannelSelectorType, + 20.0f, + std::move(gradientSource), input, cropRect)); } this->addFilter("blur", SkBlurImageFilter::Make(SK_Scalar1, |