diff options
author | aelias@chromium.org <aelias@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-09 04:48:44 +0000 |
---|---|---|
committer | aelias@chromium.org <aelias@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-09 04:48:44 +0000 |
commit | 59adb11526935835e809cc1d3c990a10985a0023 (patch) | |
tree | 325241a0fc219cf5d1c0864e651d6f3018039a55 /cc/trees/layer_tree_host_impl.h | |
parent | 0847ada9dc32754f004601f574d9d8d46a24c5f3 (diff) | |
download | chromium_src-59adb11526935835e809cc1d3c990a10985a0023.zip chromium_src-59adb11526935835e809cc1d3c990a10985a0023.tar.gz chromium_src-59adb11526935835e809cc1d3c990a10985a0023.tar.bz2 |
Damage root layer when viewport or top controls changes.
http://crrev.com/192706 broke top controls hiding because this situation
doesn't cause any damage, meaning no renderer frames are sent. Fix it
by causing full root layer damage whenever one of the inputs to
VisibleViewportSize changes.
NOTRY=true
BUG=229138
Review URL: https://chromiumcodereview.appspot.com/13817003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193011 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/trees/layer_tree_host_impl.h')
-rw-r--r-- | cc/trees/layer_tree_host_impl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h index 0730c73..4ad081a 100644 --- a/cc/trees/layer_tree_host_impl.h +++ b/cc/trees/layer_tree_host_impl.h @@ -114,9 +114,8 @@ class CC_EXPORT LayerTreeHostImpl : public InputHandlerClient, virtual bool HaveTouchEventHandlersAt(gfx::Point viewport_port) OVERRIDE; // TopControlsManagerClient implementation. - virtual void setActiveTreeNeedsUpdateDrawProperties() OVERRIDE; - virtual void setNeedsRedraw() OVERRIDE; - virtual bool haveRootScrollLayer() const OVERRIDE; + virtual void DidChangeTopControlsPosition() OVERRIDE; + virtual bool HaveRootScrollLayer() const OVERRIDE; void StartScrollbarAnimation(base::TimeTicks now); @@ -233,6 +232,7 @@ class CC_EXPORT LayerTreeHostImpl : public InputHandlerClient, bool visible() const { return visible_; } void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } + void SetNeedsRedraw() { client_->SetNeedsRedrawOnImplThread(); } size_t memory_allocation_limit_bytes() const { return managed_memory_policy_.bytes_limit_when_visible; |