Index: tests/RecordOptsTest.cpp |
diff --git a/tests/RecordOptsTest.cpp b/tests/RecordOptsTest.cpp |
index 027ea39f5718046249200b88c06f9a0a1fc884b8..597639e5432f2408f36d1ff521bb4d5e803e83ec 100644 |
--- a/tests/RecordOptsTest.cpp |
+++ b/tests/RecordOptsTest.cpp |
@@ -230,16 +230,16 @@ DEF_TEST(RecordOpts_MergeSvgOpacityAndFilterLayers, r) { |
opaqueFilterLayerPaint.setColor(0xFF020202); // Opaque. |
SkPaint translucentFilterLayerPaint; |
translucentFilterLayerPaint.setColor(0x0F020202); // Not opaque. |
- SkAutoTUnref<SkPicture> shape; |
+ sk_sp<SkPicture> shape; |
{ |
SkPictureRecorder recorder; |
SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(100), SkIntToScalar(100)); |
SkPaint shapePaint; |
shapePaint.setColor(SK_ColorWHITE); |
canvas->drawRect(SkRect::MakeWH(SkIntToScalar(50), SkIntToScalar(50)), shapePaint); |
- shape.reset(recorder.endRecordingAsPicture()); |
+ shape = recorder.finishRecordingAsPicture(); |
} |
- translucentFilterLayerPaint.setImageFilter(SkPictureImageFilter::Create(shape))->unref(); |
+ translucentFilterLayerPaint.setImageFilter(SkPictureImageFilter::Create(shape.get()))->unref(); |
int index = 0; |