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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1143433005: Remove gfx::FrameTime for a single clock source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 61253372be19003f42f111f0856321cc61acb389..bc29117b2178fe6e81036caf0998c07c0190952c 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -76,7 +76,7 @@
#include "cc/trees/tree_synchronizer.h"
#include "gpu/GLES2/gl2extchromium.h"
#include "gpu/command_buffer/client/gles2_interface.h"
-#include "ui/gfx/frame_time.h"
+
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/gfx/geometry/scroll_offset.h"
#include "ui/gfx/geometry/size_conversions.h"
@@ -1675,7 +1675,7 @@ void LayerTreeHostImpl::WillBeginImplFrame(const BeginFrameArgs& args) {
current_begin_frame_args_ = args;
// TODO(mithro): Stop overriding the frame time once the usage of frame
// timing is unified.
- current_begin_frame_args_.frame_time = gfx::FrameTime::Now();
+ current_begin_frame_args_.frame_time = base::TimeTicks::Now();
// Cache the begin impl frame interval
begin_impl_frame_interval_ = args.interval;
@@ -3154,7 +3154,7 @@ BeginFrameArgs LayerTreeHostImpl::CurrentBeginFrameArgs() const {
if (current_begin_frame_args_.IsValid())
return current_begin_frame_args_;
return BeginFrameArgs::Create(
- BEGINFRAME_FROM_HERE, gfx::FrameTime::Now(), base::TimeTicks(),
+ BEGINFRAME_FROM_HERE, base::TimeTicks::Now(), base::TimeTicks(),
BeginFrameArgs::DefaultInterval(), BeginFrameArgs::NORMAL);
}

Powered by Google App Engine
This is Rietveld 408576698