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

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: Mock out physical time 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
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..887d6789029782047f61ead84556a111de93d24a 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(base::TimeTicks::Now());
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();
}

Powered by Google App Engine
This is Rietveld 408576698