summaryrefslogtreecommitdiffstats
path: root/athena/wm
diff options
context:
space:
mode:
authorenne <enne@chromium.org>2014-08-23 14:27:46 -0700
committerCommit bot <commit-bot@chromium.org>2014-08-23 21:33:41 +0000
commit9a3ddb332a5ec5e21a5767b2891ba161cda5a3d0 (patch)
treef9035ea15d0ae44836b0a89b019e89d18770c935 /athena/wm
parent145425d17c8351595048b0dff319e8ff284d983f (diff)
downloadchromium_src-9a3ddb332a5ec5e21a5767b2891ba161cda5a3d0.zip
chromium_src-9a3ddb332a5ec5e21a5767b2891ba161cda5a3d0.tar.gz
chromium_src-9a3ddb332a5ec5e21a5767b2891ba161cda5a3d0.tar.bz2
Stop painting when receiving delegated frame
The SchedulePaintInRect call in DelegatedFrameHost is only there to eventually notify an observer on the aura::Window that damage has occurred (for the video detector). Instead, just pass along the damage to the LayerDelegate API and don't schedule a paint. R=jbauman@chromium.org BUG=none Review URL: https://codereview.chromium.org/464643003 Cr-Commit-Position: refs/heads/master@{#291582}
Diffstat (limited to 'athena/wm')
-rw-r--r--athena/wm/overview_toolbar.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/athena/wm/overview_toolbar.cc b/athena/wm/overview_toolbar.cc
index 4537a04..339d1dd 100644
--- a/athena/wm/overview_toolbar.cc
+++ b/athena/wm/overview_toolbar.cc
@@ -81,6 +81,9 @@ class ActionButton : public ui::LayerDelegate {
shadow);
}
+ virtual void OnDelegatedFrameDamage(
+ const gfx::Rect& damage_rect_in_dip) OVERRIDE {}
+
virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE {}
virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE {
return base::Closure();