Index: gm/filterfastbounds.cpp |
diff --git a/gm/filterfastbounds.cpp b/gm/filterfastbounds.cpp |
index 6ae4e740dea71ecaf71462f2f2eb51276cf80656..43a1b1e6f7430369a5d6af59f577617acb0b1255 100644 |
--- a/gm/filterfastbounds.cpp |
+++ b/gm/filterfastbounds.cpp |
@@ -122,22 +122,21 @@ static void create_paints(SkTArray<SkPaint>* paints, sk_sp<SkImageFilter> source |
static const SkDropShadowImageFilter::ShadowMode kBoth = |
SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode; |
- sk_sp<SkImageFilter> dsif( |
- SkDropShadowImageFilter::Create(10.0f, 10.0f, |
- 3.0f, 3.0f, |
- SK_ColorRED, kBoth, |
- source.get(), nullptr)); |
+ sk_sp<SkImageFilter> dsif(SkDropShadowImageFilter::Make(10.0f, 10.0f, |
+ 3.0f, 3.0f, |
+ SK_ColorRED, kBoth, |
+ source)); |
add_paint(paints, std::move(dsif)); |
} |
{ |
sk_sp<SkImageFilter> dsif( |
- SkDropShadowImageFilter::Create(27.0f, 27.0f, |
+ SkDropShadowImageFilter::Make(27.0f, 27.0f, |
3.0f, 3.0f, |
SK_ColorRED, |
SkDropShadowImageFilter::kDrawShadowOnly_ShadowMode, |
- source.get(), nullptr)); |
+ source)); |
add_paint(paints, std::move(dsif)); |
} |