cc: Don't schedule top controls animation when there isn't one
If the top controls manager calculates an animation scroll delta of zero, we schedule another animation attempt for the following frame. This causes the compositor to run constantly -- for instance -- on pages where scrolling JavaScript-driven instead of impl-driven. The fix is to bail out if there is no active top controls animation. TEST=LayerTreeHostImplWithTopControlsTest.NoIdleAnimation BUG=309648 Review URL: https://codereview.chromium.org/167013003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251770 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment