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

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: Add to LayerDelegate interface instead 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..5682e26ad80cd7d0bc6eee598982b24650b8f80f 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -497,6 +497,13 @@ void Window::SchedulePaintInRect(const gfx::Rect& rect) {
}
}
+void Window::OnDelegatedFrameDamage(const gfx::Rect &damage_rect_in_dip) {
+ DCHECK(layer());
+ FOR_EACH_OBSERVER(WindowObserver,
+ observers_,
+ OnWindowPaintScheduled(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/compositor/layer.h » ('j') | ui/compositor/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698