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/input/top_controls_manager_unittest.cc | |
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/input/top_controls_manager_unittest.cc')
-rw-r--r-- | cc/input/top_controls_manager_unittest.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cc/input/top_controls_manager_unittest.cc b/cc/input/top_controls_manager_unittest.cc index b3bc722c..4fb1bef 100644 --- a/cc/input/top_controls_manager_unittest.cc +++ b/cc/input/top_controls_manager_unittest.cc @@ -34,15 +34,12 @@ class MockTopControlsManagerClient : public TopControlsManagerClient { virtual ~MockTopControlsManagerClient() {} - virtual void setNeedsRedraw() OVERRIDE { + virtual void DidChangeTopControlsPosition() OVERRIDE { redraw_needed_ = true; - } - - virtual void setActiveTreeNeedsUpdateDrawProperties() OVERRIDE { update_draw_properties_needed_ = true; } - virtual bool haveRootScrollLayer() const OVERRIDE { + virtual bool HaveRootScrollLayer() const OVERRIDE { return true; } |