diff options
author | robertphillips <robertphillips@google.com> | 2016-04-06 08:40:59 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-06 08:40:59 -0700 |
commit | c416912da4840af0c49bd8cdcf00044ed39500f6 (patch) | |
tree | 2da9d5261c5a85c660a0fea0beae63f5dd7e83b4 /tests/ImageFilterTest.cpp | |
parent | 885b677b10b88ba1eebecd1c2795702b88f63d39 (diff) |
Update DropShadowImageFilter to sk_sp
TBR=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1861843002
Review URL: https://codereview.chromium.org/1861843002
Diffstat (limited to 'tests/ImageFilterTest.cpp')
-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 b0b7349aea..197dd32277 100644 --- a/tests/ImageFilterTest.cpp +++ b/tests/ImageFilterTest.cpp @@ -181,10 +181,10 @@ public: SK_Scalar1, input, cropRect).release()); - this->addFilter("drop shadow", SkDropShadowImageFilter::Create( + this->addFilter("drop shadow", SkDropShadowImageFilter::Make( SK_Scalar1, SK_Scalar1, SK_Scalar1, SK_Scalar1, SK_ColorGREEN, SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode, - input.get(), cropRect)); + input, cropRect).release()); this->addFilter("diffuse lighting", SkLightingImageFilter::CreatePointLitDiffuse( location, SK_ColorGREEN, 0, 0, input.get(), cropRect)); this->addFilter("specular lighting", @@ -851,11 +851,11 @@ static sk_sp<SkImageFilter> make_blur(sk_sp<SkImageFilter> input) { } static sk_sp<SkImageFilter> make_drop_shadow(sk_sp<SkImageFilter> input) { - return sk_sp<SkImageFilter>(SkDropShadowImageFilter::Create( + return SkDropShadowImageFilter::Make( SkIntToScalar(100), SkIntToScalar(100), SkIntToScalar(10), SkIntToScalar(10), SK_ColorBLUE, SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode, - input.get(), nullptr)); + std::move(input)); } DEF_TEST(ImageFilterBlurThenShadowBounds, reporter) { |