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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 16925007: Fix scrollbar fade animation scheduling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename fake_time to fake_now Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/layer_tree_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 6180568e8e926ca86d472f4368c1c39fa308711d..f47c78010d6bc49dfddf9d38eae436a9d45dbfb5 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -156,7 +156,7 @@ void LayerTreeImpl::SetCurrentlyScrollingLayer(LayerImpl* layer) {
if (currently_scrolling_layer_ &&
currently_scrolling_layer_->scrollbar_animation_controller())
currently_scrolling_layer_->scrollbar_animation_controller()->
- DidScrollGestureEnd(CurrentFrameTimeTicks());
+ DidScrollGestureEnd(CurrentPhysicalTimeTicks());
currently_scrolling_layer_ = layer;
if (layer && layer->scrollbar_animation_controller())
layer->scrollbar_animation_controller()->DidScrollGestureBegin();
@@ -468,6 +468,10 @@ base::Time LayerTreeImpl::CurrentFrameTime() const {
return layer_tree_host_impl_->CurrentFrameTime();
}
+base::TimeTicks LayerTreeImpl::CurrentPhysicalTimeTicks() const {
+ return layer_tree_host_impl_->CurrentPhysicalTimeTicks();
+}
+
void LayerTreeImpl::SetNeedsCommit() {
layer_tree_host_impl_->SetNeedsCommit();
}
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/layer_tree_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698