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

Unified Diff: cc/test/layer_tree_test_common.cc

Issue 12804006: cc: Save correct frame begin time to FrameRateCounter (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to 188402 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
« no previous file with comments | « cc/test/layer_tree_test_common.h ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_test_common.cc
diff --git a/cc/test/layer_tree_test_common.cc b/cc/test/layer_tree_test_common.cc
index f24c6b0809a0ea3755988c72f159386f1091e153..46e30898c2062d19a70440b593ab6e38a3230caa 100644
--- a/cc/test/layer_tree_test_common.cc
+++ b/cc/test/layer_tree_test_common.cc
@@ -92,9 +92,9 @@ bool MockLayerTreeHostImpl::PrepareToDraw(FrameData* frame)
return result;
}
-void MockLayerTreeHostImpl::DrawLayers(FrameData* frame)
+void MockLayerTreeHostImpl::DrawLayers(FrameData* frame, base::TimeTicks frameBeginTime)
{
- LayerTreeHostImpl::DrawLayers(frame);
+ LayerTreeHostImpl::DrawLayers(frame, frameBeginTime);
m_testHooks->drawLayersOnThread(this);
}
@@ -494,7 +494,7 @@ void ThreadedTest::dispatchComposite()
}
m_scheduleWhenSetVisibleTrue = false;
- m_layerTreeHost->Composite();
+ m_layerTreeHost->Composite(base::TimeTicks::Now());
}
void ThreadedTest::runTest(bool threaded)
« no previous file with comments | « cc/test/layer_tree_test_common.h ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698