aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ImageFilterTest.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-04-06 08:40:59 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-06 08:40:59 -0700
commitc416912da4840af0c49bd8cdcf00044ed39500f6 (patch)
tree2da9d5261c5a85c660a0fea0beae63f5dd7e83b4 /tests/ImageFilterTest.cpp
parent885b677b10b88ba1eebecd1c2795702b88f63d39 (diff)
Update DropShadowImageFilter 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 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) {