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

Unified Diff: cc/thread_proxy.cc

Issue 12804006: cc: Save correct frame begin time to FrameRateCounter (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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
Index: cc/thread_proxy.cc
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc
index 139eddcc6c8eea4c38eec9b5f18809ddaffb3353..a88b3de20b014e8a887970bbdde6d2a59d544f92 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -847,7 +847,7 @@ ScheduledActionDrawAndSwapResult ThreadProxy::scheduledActionDrawAndSwapInternal
LayerTreeHostImpl::FrameData frame;
bool drawFrame = m_layerTreeHostImpl->canDraw() && (m_layerTreeHostImpl->prepareToDraw(frame) || forcedDraw);
nduca 2013/03/13 05:53:28 i think we should pass the lastVsynctime to animat
egraether 2013/03/13 22:26:01 I think you are right, but I'm not sure what side
if (drawFrame) {
- m_layerTreeHostImpl->drawLayers(frame);
+ m_layerTreeHostImpl->drawLayers(frame, m_schedulerOnImplThread->lastDrawTime());
result.didDraw = true;
}
m_layerTreeHostImpl->didDrawAllLayers(frame);

Powered by Google App Engine
This is Rietveld 408576698