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

Unified Diff: ui/compositor/test/layer_animator_test_controller.cc

Issue 27710005: cc: Use HighResNow as timebase if it is fast and reliable (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix DCHECK Created 7 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 | « ui/compositor/layer_animator_unittest.cc ('k') | ui/gfx/animation/animation_container.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/layer_animator_test_controller.cc
diff --git a/ui/compositor/test/layer_animator_test_controller.cc b/ui/compositor/test/layer_animator_test_controller.cc
index 2b686cc6c2bea67d43012a1bf00a59952e250b60..b7b8c4064ced447645ab5dcb6f8ce1ef0cf43c6b 100644
--- a/ui/compositor/test/layer_animator_test_controller.cc
+++ b/ui/compositor/test/layer_animator_test_controller.cc
@@ -5,6 +5,8 @@
#include "cc/animation/animation.h"
#include "ui/compositor/layer_animation_sequence.h"
#include "ui/compositor/test/layer_animator_test_controller.h"
+#include "ui/gfx/frame_time.h"
+#include "ui/gfx/rect.h"
namespace ui {
@@ -52,7 +54,7 @@ void LayerAnimatorTestController::StartThreadedAnimationsIfNeeded() {
0,
element->animation_group_id(),
threaded_properties[i],
- (base::TimeTicks::Now() - base::TimeTicks()).InSecondsF()));
+ (gfx::FrameTime::Now() - base::TimeTicks()).InSecondsF()));
}
}
« no previous file with comments | « ui/compositor/layer_animator_unittest.cc ('k') | ui/gfx/animation/animation_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698