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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 184023002: Change LayerHostImpl to use frame time from BeginFrameArgs rather than ::Now() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing background ticking, trying to fix tests, lots of other small updates. Created 6 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/trees/layer_tree_host_impl_unittest.cc
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
index f47b3d7aee1d9c7791b3395f15b2325a509449eb..76ef956a5e3645ecd810ee0dc3d8dde0e4524e54 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -1170,12 +1170,8 @@ class LayerTreeHostImplOverridePhysicalTime : public LayerTreeHostImpl {
NULL,
0) {}
- virtual base::TimeTicks CurrentPhysicalTimeTicks() const OVERRIDE {
- return fake_current_physical_time_;
- }
-
void SetCurrentPhysicalTimeTicksForTest(base::TimeTicks fake_now) {
- fake_current_physical_time_ = fake_now;
+ OverrideCurrentFrameTime(fake_now);
danakj 2014/03/11 18:32:36 Just make the tests call this directly?
}
private:

Powered by Google App Engine
This is Rietveld 408576698