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

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: 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
Index: cc/thread_proxy.cc
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc
index 6979a1528265c5a517b49a9d0f9e22005c0dbe15..9824043837e2b028631f55e74ee1fbc99f6618bb 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.

Powered by Google App Engine
This is Rietveld 408576698