diff options
| author | enne <enne@chromium.org> | 2014-08-23 14:27:46 -0700 |
|---|---|---|
| committer | Commit bot <commit-bot@chromium.org> | 2014-08-23 21:33:41 +0000 |
| commit | 9a3ddb332a5ec5e21a5767b2891ba161cda5a3d0 (patch) | |
| tree | f9035ea15d0ae44836b0a89b019e89d18770c935 /athena/wm | |
| parent | 145425d17c8351595048b0dff319e8ff284d983f (diff) | |
| download | chromium_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.cc | 3 |
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(); |
