Index: gm/recordopts.cpp |
diff --git a/gm/recordopts.cpp b/gm/recordopts.cpp |
index bac6d8858ce2ca8a8a9cf208d20c29a2ecdf865c..3c44f4ac272697b0156bb2b3af8e3e029eb27ec5 100644 |
--- a/gm/recordopts.cpp |
+++ b/gm/recordopts.cpp |
@@ -117,7 +117,7 @@ static void draw_svg_opacity_and_filter_layer_sequence(SkCanvas* canvas, SkColor |
canvas->save(); |
canvas->clipRect(targetRect); |
SkPaint drawPaint; |
- drawPaint.setImageFilter(SkPictureImageFilter::Create(shape.get()))->unref(); |
+ drawPaint.setImageFilter(SkPictureImageFilter::Make(shape)); |
installDetector(&drawPaint); |
canvas->saveLayer(&targetRect, &drawPaint); |
canvas->restore(); |