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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 26880010: gfx: Add FrameTime and DisplayTime classes (Closed) Base URL: http://git.chromium.org/chromium/src.git@checkHighResNow4
Patch Set: WIP Created 7 years, 2 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/single_thread_proxy.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 52203129e4847b5437ef6559bf254f034eb4f9bb..33bf8df1b86892891e18fa1381f22c43f110cc7b 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -176,7 +176,7 @@ void LayerTreeImpl::SetCurrentlyScrollingLayer(LayerImpl* layer) {
if (currently_scrolling_layer_ &&
currently_scrolling_layer_->scrollbar_animation_controller())
currently_scrolling_layer_->scrollbar_animation_controller()->
- DidScrollGestureEnd(CurrentPhysicalTimeTicks());
+ DidScrollGestureEnd(CurrentPhysicalFrameTime());
currently_scrolling_layer_ = layer;
if (layer && layer->scrollbar_animation_controller())
layer->scrollbar_animation_controller()->DidScrollGestureBegin();
@@ -577,7 +577,7 @@ bool LayerTreeImpl::PinchGestureActive() const {
return layer_tree_host_impl_->pinch_gesture_active();
}
-base::TimeTicks LayerTreeImpl::CurrentFrameTimeTicks() const {
+gfx::FrameTime LayerTreeImpl::CurrentFrameTimeTicks() const {
return layer_tree_host_impl_->CurrentFrameTimeTicks();
}
@@ -585,8 +585,8 @@ base::Time LayerTreeImpl::CurrentFrameTime() const {
return layer_tree_host_impl_->CurrentFrameTime();
}
-base::TimeTicks LayerTreeImpl::CurrentPhysicalTimeTicks() const {
- return layer_tree_host_impl_->CurrentPhysicalTimeTicks();
+gfx::FrameTime LayerTreeImpl::CurrentPhysicalFrameTime() const {
+ return layer_tree_host_impl_->CurrentPhysicalFrameTime();
}
void LayerTreeImpl::SetNeedsCommit() {
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698