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

Unified Diff: ui/aura/window.cc

Issue 464643003: Stop painting when receiving delegated frame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 6 years, 4 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/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 992642ed059430e692535edddb94498b63cf7eed..eb7d1f18619ae56df7551e62141594d2014de2cf 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -491,12 +491,18 @@ void Window::SchedulePaintInRect(const gfx::Rect& rect) {
parent_rect.Offset(bounds().origin().OffsetFromOrigin());
parent_->SchedulePaintInRect(parent_rect);
}
- } else if (layer() && layer()->SchedulePaint(rect)) {
- FOR_EACH_OBSERVER(
- WindowObserver, observers_, OnWindowPaintScheduled(this, rect));
+ } else if (layer()) {
+ layer()->SchedulePaint(rect);
}
}
+void Window::OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) {
sky 2014/08/18 23:43:57 Move to match position of header.
enne (OOO) 2014/08/19 17:08:50 Done.
+ DCHECK(layer());
+ FOR_EACH_OBSERVER(WindowObserver,
+ observers_,
+ OnDelegatedFrameDamage(this, damage_rect_in_dip));
+}
+
void Window::StackChildAtTop(Window* child) {
if (children_.size() <= 1 || child == children_.back())
return; // In the front already.
« no previous file with comments | « ui/aura/window.h ('k') | ui/aura/window_observer.h » ('j') | ui/compositor/layer_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698