summaryrefslogtreecommitdiffstats
path: root/ui/views/view.h
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 /ui/views/view.h
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 'ui/views/view.h')
-rw-r--r--ui/views/view.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/views/view.h b/ui/views/view.h
index bdf4813..316c8c0 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -1118,6 +1118,8 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// Overridden from ui::LayerDelegate:
virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE;
+ virtual void OnDelegatedFrameDamage(
+ const gfx::Rect& damage_rect_in_dip) OVERRIDE;
virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE;