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

Unified Diff: cc/thread_proxy.cc

Issue 11783101: Make LayerTreeHost::animateLayers take a wall clock time in addition to a monotonic time (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix nits Created 7 years, 11 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/thread_proxy.h ('k') | webkit/compositor_bindings/web_layer_tree_view_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/thread_proxy.cc
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc
index 2618400e9892c986af41d146b1cbfe0d694235b1..88c3e62eb27ff377c07c9795dd4cf921c3458c94 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -527,6 +527,7 @@ void ThreadProxy::scheduledActionBeginFrame()
TRACE_EVENT0("cc", "ThreadProxy::scheduledActionBeginFrame");
scoped_ptr<BeginFrameAndCommitState> beginFrameState(new BeginFrameAndCommitState);
beginFrameState->monotonicFrameBeginTime = base::TimeTicks::Now();
+ beginFrameState->wallClockFrameBeginTime = base::Time::Now();
beginFrameState->scrollInfo = m_layerTreeHostImpl->processScrollDeltas();
beginFrameState->implTransform = m_layerTreeHostImpl->implTransform();
DCHECK_GT(m_layerTreeHostImpl->memoryAllocationLimitBytes(), 0u);
@@ -586,7 +587,7 @@ void ThreadProxy::beginFrame(scoped_ptr<BeginFrameAndCommitState> beginFrameStat
m_layerTreeHost->willBeginFrame();
if (beginFrameState)
- m_layerTreeHost->updateAnimations(beginFrameState->monotonicFrameBeginTime);
+ m_layerTreeHost->updateAnimations(beginFrameState->monotonicFrameBeginTime, beginFrameState->wallClockFrameBeginTime);
// Unlink any backings that the impl thread has evicted, so that we know to re-paint
// them in updateLayers.
« no previous file with comments | « cc/thread_proxy.h ('k') | webkit/compositor_bindings/web_layer_tree_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698