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

Unified Diff: ui/compositor/layer.cc

Issue 1094553002: Revert "Speculative revert by sheriff" (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 | « ui/compositor/layer.h ('k') | ui/file_manager/file_manager/foreground/css/cws_widget_container.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index 34c11e3f7482729acd4225ead015b8a08ecefacd..3e61d40b95a2c02151bf44dd5418c2d74cc655c8 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -751,11 +751,11 @@ void Layer::PaintContents(
delegate_->OnPaintLayer(PaintContext(canvas.get(), clip));
}
-scoped_refptr<cc::DisplayItemList> Layer::PaintContentsToDisplayList(
+void Layer::PaintContentsToDisplayList(
+ cc::DisplayItemList* display_list,
const gfx::Rect& clip,
ContentLayerClient::PaintingControlSetting painting_control) {
TRACE_EVENT1("ui", "Layer::PaintContentsToDisplayList", "name", name_);
- scoped_refptr<cc::DisplayItemList> list = cc::DisplayItemList::Create();
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
@@ -763,9 +763,8 @@ scoped_refptr<cc::DisplayItemList> Layer::PaintContentsToDisplayList(
gfx::Rect invalidation = clip;
DCHECK(clip.Contains(invalidation));
delegate_->OnPaintLayer(
- PaintContext(list.get(), device_scale_factor_, clip, invalidation));
+ PaintContext(display_list, device_scale_factor_, clip, invalidation));
}
- return list;
}
bool Layer::FillsBoundsCompletely() const { return fills_bounds_completely_; }
« no previous file with comments | « ui/compositor/layer.h ('k') | ui/file_manager/file_manager/foreground/css/cws_widget_container.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698