Index: tests/RecordDrawTest.cpp |
diff --git a/tests/RecordDrawTest.cpp b/tests/RecordDrawTest.cpp |
index 17d971126c569922eba6199b9fe4589619e7da30..cf8141a78914aeb17af659e77c2068e21f81138d 100644 |
--- a/tests/RecordDrawTest.cpp |
+++ b/tests/RecordDrawTest.cpp |
@@ -209,8 +209,10 @@ DEF_TEST(RecordDraw_SaveLayerAffectsClipBounds, r) { |
// We draw a rectangle with a long drop shadow. We used to not update the clip |
// bounds based on SaveLayer paints, so the drop shadow could be cut off. |
SkPaint paint; |
- paint.setImageFilter(SkDropShadowImageFilter::Create(20, 0, 0, 0, SK_ColorBLACK, |
- SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode))->unref(); |
+ paint.setImageFilter(SkDropShadowImageFilter::Make( |
+ 20, 0, 0, 0, SK_ColorBLACK, |
+ SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode, |
+ nullptr)); |
recorder.saveLayer(nullptr, &paint); |
recorder.clipRect(SkRect::MakeWH(20, 40)); |