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

Unified Diff: cc/blink/web_content_layer_impl.cc

Issue 1077033004: cc: Make DisplayItemList::Append replay into an SkPicture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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
Index: cc/blink/web_content_layer_impl.cc
diff --git a/cc/blink/web_content_layer_impl.cc b/cc/blink/web_content_layer_impl.cc
index 922422308d80bbbdad80d218e6d3d10342aa6dfc..6ba54d97b9335f9b5c644fff9722d6b85da892d4 100644
--- a/cc/blink/web_content_layer_impl.cc
+++ b/cc/blink/web_content_layer_impl.cc
@@ -77,9 +77,9 @@ WebContentLayerImpl::PaintContentsToDisplayList(
const gfx::Rect& clip,
cc::ContentLayerClient::PaintingControlSetting painting_control) {
if (!client_)
- return cc::DisplayItemList::Create();
+ return cc::DisplayItemList::Create(clip);
- WebDisplayItemListImpl list;
+ WebDisplayItemListImpl list(clip);
client_->paintContents(&list, clip, PaintingControlToWeb(painting_control));
return list.ToDisplayItemList();
}

Powered by Google App Engine
This is Rietveld 408576698