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

Unified Diff: cc/test/layer_tree_test_common.cc

Issue 11191068: Remove WTF::currentTime() / WTF::monotonicallyIncreasingTime() uses from cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 2 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.h » ('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 846e8079602c0a20450c43b6835cba4ef2abeb18..60b3fb40b9cc0388724526d2c85b40a8f253dfdd 100644
--- a/cc/test/layer_tree_test_common.cc
+++ b/cc/test/layer_tree_test_common.cc
@@ -125,7 +125,7 @@ void MockLayerTreeHostImpl::drawLayers(const FrameData& frame)
m_testHooks->drawLayersOnThread(this);
}
-void MockLayerTreeHostImpl::animateLayers(double monotonicTime, double wallClockTime)
+void MockLayerTreeHostImpl::animateLayers(base::TimeTicks monotonicTime, base::Time wallClockTime)
{
m_testHooks->willAnimateLayers(this, monotonicTime);
LayerTreeHostImpl::animateLayers(monotonicTime, wallClockTime);
@@ -216,7 +216,7 @@ public:
virtual void animate(double monotonicTime) OVERRIDE
{
- m_testHooks->animate(monotonicTime);
+ m_testHooks->animate(base::TimeTicks::FromInternalValue(monotonicTime * base::Time::kMicrosecondsPerSecond));
}
virtual void layout() OVERRIDE
« no previous file with comments | « cc/test/layer_tree_test_common.h ('k') | cc/thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698