diff options
author | robertphillips <robertphillips@google.com> | 2016-04-15 05:09:32 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-15 05:09:32 -0700 |
commit | 47db5fe4436c924f42b05bc63f8fad833b99bfbe (patch) | |
tree | ee36eee27a6b983aec2a6600a2a50768ec9e4fc0 /tests | |
parent | ad3dc0da218cc43c9917a256d4afb8cf0d7c5899 (diff) |
Revert of Update DisplacementMapEffect to sk_sp (patchset #3 id:40001 of https://codereview.chromium.org/1877783003/ )
Reason for revert:
unexpected image diffs in imagefilterscropexpand GM
Original issue's description:
> 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
>
> Committed: https://skia.googlesource.com/skia/+/a53011ef44705a091a8e24f7ea289a3f9ad759f2
TBR=fmalita@chromium.org,reed@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Review URL: https://codereview.chromium.org/1884253004
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 172f84fa77..114c342ada 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", - SkDisplacementMapEffect::Make(SkDisplacementMapEffect::kR_ChannelSelectorType, - SkDisplacementMapEffect::kB_ChannelSelectorType, - 20.0f, - std::move(gradientSource), input, cropRect)); + sk_sp<SkImageFilter>(SkDisplacementMapEffect::Create( + SkDisplacementMapEffect::kR_ChannelSelectorType, + SkDisplacementMapEffect::kB_ChannelSelectorType, + 20.0f, gradientSource.get(), input.get(), cropRect))); } this->addFilter("blur", SkBlurImageFilter::Make(SK_Scalar1, |