Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3525)

Unified Diff: cc/resources/display_item_list.cc

Issue 1066273002: Use SkPictureRecorder::endRecordingAsPicture() instead of endRecording() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/resources/display_item_list_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/resources/display_item_list_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698