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

Unified Diff: cc/input/top_controls_manager.cc

Issue 1143433005: Remove gfx::FrameTime for a single clock source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handling patch for mac files Created 5 years, 7 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/input/top_controls_manager.cc
diff --git a/cc/input/top_controls_manager.cc b/cc/input/top_controls_manager.cc
index c8bd5348721ca72c007c38ada13b9dd650b536f8..1a961b50e9393697598bf83738dbe3684c56d1e4 100644
--- a/cc/input/top_controls_manager.cc
+++ b/cc/input/top_controls_manager.cc
@@ -12,7 +12,6 @@
#include "cc/input/top_controls_manager_client.h"
#include "cc/output/begin_frame_args.h"
#include "cc/trees/layer_tree_impl.h"
-#include "ui/gfx/frame_time.h"
#include "ui/gfx/geometry/vector2d_f.h"
#include "ui/gfx/transform.h"
@@ -190,7 +189,7 @@ void TopControlsManager::SetupAnimation(AnimationDirection direction) {
}
top_controls_animation_ = KeyframedFloatAnimationCurve::Create();
- base::TimeDelta start_time = gfx::FrameTime::Now() - base::TimeTicks();
+ base::TimeDelta start_time = base::TimeTicks::Now() - base::TimeTicks();
top_controls_animation_->AddKeyframe(
FloatKeyframe::Create(start_time, TopControlsShownRatio(), nullptr));
float max_ending_ratio = (direction == SHOWING_CONTROLS ? 1 : -1);

Powered by Google App Engine
This is Rietveld 408576698