Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Issue 16925007: Fix scrollbar fade animation scheduling. (Closed)

Created:
7 years, 6 months ago by aelias_OOO_until_Jul13
Modified:
7 years, 6 months ago
Reviewers:
danakj
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Fix scrollbar fade animation scheduling. In r195531, most of the uses of base::TimeTicks::Now() were replaced by current frame time, but this is incorrect in the case of scrollbar fade scheduling. Although the fade itself is animated within draw frames, the delay until it starts is managed outside frames (intentionally so -- we want to avoid spamming animation frames before the fade has actually begun). Revert that part of r195531 and add more test coverage. NOTRY=true BUG=236351 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=206532

Patch Set 1 #

Total comments: 1

Patch Set 2 : Mock out physical time #

Total comments: 3

Patch Set 3 : Apply time override using virtual method and apply nits #

Total comments: 4

Patch Set 4 : Clean up LayerTreeHost creation in test #

Patch Set 5 : Rename fake_time to fake_now #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -28 lines) Patch
M cc/layers/layer_impl.cc View 1 3 chunks +8 lines, -11 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 chunks +5 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 4 chunks +10 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 3 chunks +126 lines, -1 line 0 comments Download
M cc/trees/layer_tree_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M cc/trees/layer_tree_settings.h View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 4 chunks +9 lines, -9 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
aelias_OOO_until_Jul13
Hi Dana, PTAL. The only substantive change is to switch the times back to base::TimeTicks::Now(), ...
7 years, 6 months ago (2013-06-14 08:33:57 UTC) #1
danakj
https://codereview.chromium.org/16925007/diff/1/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/16925007/diff/1/cc/trees/layer_tree_host_impl_unittest.cc#newcode1059 cc/trees/layer_tree_host_impl_unittest.cc:1059: base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(25)); This timing stuff is going to be a ...
7 years, 6 months ago (2013-06-14 17:40:39 UTC) #2
aelias_OOO_until_Jul13
There are already tests for LinearFadeAnimationController. But the problem was caused specifically by switching to ...
7 years, 6 months ago (2013-06-14 18:03:35 UTC) #3
danakj
On Fri, Jun 14, 2013 at 2:03 PM, <aelias@chromium.org> wrote: > There are already tests ...
7 years, 6 months ago (2013-06-14 18:05:52 UTC) #4
aelias_OOO_until_Jul13
On 2013/06/14 18:05:52, danakj wrote: > On Fri, Jun 14, 2013 at 2:03 PM, <mailto:aelias@chromium.org> ...
7 years, 6 months ago (2013-06-14 18:33:48 UTC) #5
danakj
https://codereview.chromium.org/16925007/diff/5002/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/16925007/diff/5002/cc/trees/layer_tree_host_impl.cc#newcode2263 cc/trees/layer_tree_host_impl.cc:2263: base::TimeTicks LayerTreeHostImpl::CurrentPhysicalTimeTicks() const { Think I'd prefer this is ...
7 years, 6 months ago (2013-06-14 18:35:10 UTC) #6
danakj
https://codereview.chromium.org/16925007/diff/5002/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/16925007/diff/5002/cc/trees/layer_tree_host_impl_unittest.cc#newcode1041 cc/trees/layer_tree_host_impl_unittest.cc:1041: base::TimeTicks fake_time = base::TimeTicks::Now(); nit: fake_now ? https://codereview.chromium.org/16925007/diff/5002/cc/trees/layer_tree_host_impl_unittest.cc#newcode1051 cc/trees/layer_tree_host_impl_unittest.cc:1051: ...
7 years, 6 months ago (2013-06-14 18:36:42 UTC) #7
aelias_OOO_until_Jul13
Good point. All done, PTAL.
7 years, 6 months ago (2013-06-14 21:16:37 UTC) #8
danakj
LGTM thanks for the test! https://codereview.chromium.org/16925007/diff/16001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/16925007/diff/16001/cc/trees/layer_tree_host_impl.cc#newcode2244 cc/trees/layer_tree_host_impl.cc:2244: void LayerTreeHostImpl::UpdateCurrentFrameTime(base::TimeTicks* ticks, nit: ...
7 years, 6 months ago (2013-06-14 21:25:23 UTC) #9
aelias_OOO_until_Jul13
https://codereview.chromium.org/16925007/diff/16001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/16925007/diff/16001/cc/trees/layer_tree_host_impl.cc#newcode2244 cc/trees/layer_tree_host_impl.cc:2244: void LayerTreeHostImpl::UpdateCurrentFrameTime(base::TimeTicks* ticks, On 2013/06/14 21:25:23, danakj wrote: > ...
7 years, 6 months ago (2013-06-14 22:19:02 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/16925007/29001
7 years, 6 months ago (2013-06-15 01:19:35 UTC) #11
commit-bot: I haz the power
7 years, 6 months ago (2013-06-15 01:20:06 UTC) #12
Message was sent while issue was closed.
Change committed as 206532

Powered by Google App Engine
This is Rietveld 408576698