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 /ash/wm/video_detector.h | |
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 'ash/wm/video_detector.h')
-rw-r--r-- | ash/wm/video_detector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ash/wm/video_detector.h b/ash/wm/video_detector.h index 7a2b112..d50f9f3 100644 --- a/ash/wm/video_detector.h +++ b/ash/wm/video_detector.h @@ -69,7 +69,7 @@ class ASH_EXPORT VideoDetector : public aura::EnvObserver, virtual void OnWindowInitialized(aura::Window* window) OVERRIDE; // WindowObserver overrides. - virtual void OnWindowPaintScheduled(aura::Window* window, + virtual void OnDelegatedFrameDamage(aura::Window* window, const gfx::Rect& region) OVERRIDE; virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; |