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

Unified Diff: ui/compositor/layer.cc

Issue 1452353002: Turn off computation of the interest rect in cc in synchronized paint mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« cc/playback/display_list_recording_source.cc ('K') | « 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 36d56f26ebb6644e024eb215bca060aa7d2f67fd..82996500068d10edf0d288c8dd05763df8c26d8d 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -751,18 +751,17 @@ void Layer::RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request) {
}
scoped_refptr<cc::DisplayItemList> Layer::PaintContentsToDisplayList(
- const gfx::Rect& clip,
- ContentLayerClient::PaintingControlSetting painting_control) {
+ ContentLayerClient::PaintingControlSetting painting_control,
+ gfx::Rect* recording_viewport) {
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(*recording_viewport, settings);
if (delegate_) {
delegate_->OnPaintLayer(
PaintContext(display_list.get(), device_scale_factor_, invalidation));
« cc/playback/display_list_recording_source.cc ('K') | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698