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

Unified Diff: ui/compositor/layer.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: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index 34c11e3f7482729acd4225ead015b8a08ecefacd..9463e299814b1f824e9580d89d59960168e65161 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -755,7 +755,7 @@ scoped_refptr<cc::DisplayItemList> Layer::PaintContentsToDisplayList(
const gfx::Rect& clip,
ContentLayerClient::PaintingControlSetting painting_control) {
TRACE_EVENT1("ui", "Layer::PaintContentsToDisplayList", "name", name_);
- scoped_refptr<cc::DisplayItemList> list = cc::DisplayItemList::Create();
+ scoped_refptr<cc::DisplayItemList> list = cc::DisplayItemList::Create(clip);
danakj 2015/04/14 20:49:34 This is weird. Maybe cc should make the DisplayIte
ajuma 2015/04/14 21:51:27 Done. This approach seems a lot cleaner.
if (delegate_) {
// TODO(danakj): Save the invalidation on the layer and pass that down
// instead of the |clip| here. That will break everything until View
« cc/resources/display_item_list_unittest.cc ('K') | « cc/trees/layer_tree_host_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698