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

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: Even more compile fixes 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
« no previous file with comments | « ui/aura/window.h ('k') | ui/aura/window_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 992642ed059430e692535edddb94498b63cf7eed..5c05d4440acd1f96f612415f583f5fb75170b244 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -491,9 +491,8 @@ 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);
}
}
@@ -1356,6 +1355,13 @@ void Window::OnPaintLayer(gfx::Canvas* canvas) {
Paint(canvas);
}
+void Window::OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) {
+ DCHECK(layer());
+ FOR_EACH_OBSERVER(WindowObserver,
+ observers_,
+ OnDelegatedFrameDamage(this, damage_rect_in_dip));
+}
+
base::Closure Window::PrepareForLayerBoundsChange() {
return base::Bind(&Window::OnWindowBoundsChanged, base::Unretained(this),
bounds());
« no previous file with comments | « ui/aura/window.h ('k') | ui/aura/window_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698