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

Unified Diff: ui/compositor/layer.cc

Issue 1489713004: Remove the clip parameter from ContentLayerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clipremoval
Patch Set: Created 5 years 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') | no next file » | 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 2ec6de99e156908a3a4d37dfa00ef353a7c4f2f9..aa46790f24f7994152cb0cc0c4fe04f630f11bf6 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -755,18 +755,16 @@ gfx::Rect Layer::PaintableRegion() {
}
scoped_refptr<cc::DisplayItemList> Layer::PaintContentsToDisplayList(
- const gfx::Rect& clip,
ContentLayerClient::PaintingControlSetting painting_control) {
TRACE_EVENT1("ui", "Layer::PaintContentsToDisplayList", "name", name_);
gfx::Rect local_bounds(bounds().size());
gfx::Rect invalidation(
gfx::IntersectRects(damaged_region_.bounds(), local_bounds));
- DCHECK(clip.Contains(invalidation));
ClearDamagedRects();
cc::DisplayItemListSettings settings;
settings.use_cached_picture = false;
scoped_refptr<cc::DisplayItemList> display_list =
- cc::DisplayItemList::Create(clip, settings);
+ cc::DisplayItemList::Create(PaintableRegion(), settings);
if (delegate_) {
delegate_->OnPaintLayer(
PaintContext(display_list.get(), device_scale_factor_, invalidation));
« no previous file with comments | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698