| Index: cc/resources/display_item_list.cc
|
| diff --git a/cc/resources/display_item_list.cc b/cc/resources/display_item_list.cc
|
| index 26ff003f0e535b1b603f0b33e612b0675d50fdd5..33990d09fdd62d940933754c5f15876126f56d4f 100644
|
| --- a/cc/resources/display_item_list.cc
|
| +++ b/cc/resources/display_item_list.cc
|
| @@ -72,7 +72,7 @@ void DisplayItemList::CreateAndCacheSkPicture() {
|
| canvas->clipRect(gfx::RectToSkRect(layer_rect_));
|
| for (size_t i = 0; i < items_.size(); ++i)
|
| items_[i]->Raster(canvas.get(), NULL);
|
| - picture_ = skia::AdoptRef(recorder.endRecording());
|
| + picture_ = skia::AdoptRef(recorder.endRecordingAsPicture());
|
| DCHECK(picture_);
|
| }
|
|
|
| @@ -127,7 +127,8 @@ DisplayItemList::AsValue() const {
|
| canvas->clipRect(gfx::RectToSkRect(layer_rect_));
|
| for (size_t i = 0; i < items_.size(); ++i)
|
| items_[i]->RasterForTracing(canvas);
|
| - skia::RefPtr<SkPicture> picture = skia::AdoptRef(recorder.endRecording());
|
| + skia::RefPtr<SkPicture> picture =
|
| + skia::AdoptRef(recorder.endRecordingAsPicture());
|
|
|
| std::string b64_picture;
|
| PictureDebugUtil::SerializeAsBase64(picture.get(), &b64_picture);
|
|
|