diff options
Diffstat (limited to 'cc/playback/display_list_raster_source.cc')
| -rw-r--r-- | cc/playback/display_list_raster_source.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cc/playback/display_list_raster_source.cc b/cc/playback/display_list_raster_source.cc index a6d2c84..970648f 100644 --- a/cc/playback/display_list_raster_source.cc +++ b/cc/playback/display_list_raster_source.cc @@ -260,7 +260,7 @@ void DisplayListRasterSource::RasterCommon( } } -skia::RefPtr<SkPicture> DisplayListRasterSource::GetFlattenedPicture() { +sk_sp<SkPicture> DisplayListRasterSource::GetFlattenedPicture() { TRACE_EVENT0("cc", "DisplayListRasterSource::GetFlattenedPicture"); gfx::Rect display_list_rect(size_); @@ -272,10 +272,8 @@ skia::RefPtr<SkPicture> DisplayListRasterSource::GetFlattenedPicture() { 1.f); RasterCommon(canvas, nullptr, display_list_rect, display_list_rect, 1.f); } - skia::RefPtr<SkPicture> picture = - skia::AdoptRef(recorder.endRecordingAsPicture()); - return picture; + return recorder.finishRecordingAsPicture(); } size_t DisplayListRasterSource::GetPictureMemoryUsage() const { |
