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

Unified Diff: cc/trees/thread_proxy.cc

Issue 210793002: Replace CurrentPhysicalTimeTicks with a fallback in CurrentFrameTimeTicks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 6 years, 9 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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/thread_proxy.cc
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
index 0008f0e4783b7af56e25714ba6f3f13329732dff..8a1547c32749256fe61b6e0e528aa4a73706985e 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -456,7 +456,7 @@ void ThreadProxy::BeginImplFrame(const BeginFrameArgs& args) {
// Sample the frame time now. This time will be used for updating animations
// when we draw.
- impl().layer_tree_host_impl->CurrentFrameTimeTicks();
+ impl().layer_tree_host_impl->UpdateCurrentFrameTime();
impl().scheduler->BeginImplFrame(args);
}
@@ -771,7 +771,7 @@ void ThreadProxy::ScheduledActionSendBeginMainFrame() {
scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state(
new BeginMainFrameAndCommitState);
begin_main_frame_state->monotonic_frame_begin_time =
- impl().layer_tree_host_impl->CurrentPhysicalTimeTicks();
+ impl().layer_tree_host_impl->CurrentFrameTimeTicks();
begin_main_frame_state->scroll_info =
impl().layer_tree_host_impl->ProcessScrollDeltas();
@@ -1629,7 +1629,7 @@ void ThreadProxy::RenewTreePriority() {
impl().layer_tree_host_impl->IsCurrentlyScrolling() ||
impl().layer_tree_host_impl->page_scale_animation_active();
- base::TimeTicks now = impl().layer_tree_host_impl->CurrentPhysicalTimeTicks();
+ base::TimeTicks now = impl().layer_tree_host_impl->CurrentFrameTimeTicks();
// Update expiration time if smoothness currently takes priority.
if (smoothness_takes_priority) {
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698