Index: tests/SkResourceCacheTest.cpp |
diff --git a/tests/SkResourceCacheTest.cpp b/tests/SkResourceCacheTest.cpp |
index 625b98a90332ef4eaa281ea4c584fcbc4e3807f4..7ae5f6486f8be6138c5595d3034b99d5ce16f4c8 100644 |
--- a/tests/SkResourceCacheTest.cpp |
+++ b/tests/SkResourceCacheTest.cpp |
@@ -322,8 +322,8 @@ DEF_TEST(BitmapCache_discarded_image, reporter) { |
SkPictureRecorder recorder; |
SkCanvas* canvas = recorder.beginRecording(10, 10); |
canvas->clear(SK_ColorCYAN); |
- sk_sp<SkPicture> picture(recorder.endRecording()); |
- return SkImage::MakeFromPicture(picture, SkISize::Make(10, 10), nullptr, nullptr); |
+ return SkImage::MakeFromPicture(recorder.finishRecordingAsPicture(), |
+ SkISize::Make(10, 10), nullptr, nullptr); |
}); |
} |
} |