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

Unified Diff: cc/trees/single_thread_proxy.cc

Issue 178103004: Removing the use of base::Time inside the LayerTreeHost system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing to a common ToWebKitTime function. Created 6 years, 10 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/single_thread_proxy.cc
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc
index dcd4cf679b74500ee3ad7fa901d675f6700de710..b57e766de7018c2829679d4c29c89d79eacd3682 100644
--- a/cc/trees/single_thread_proxy.cc
+++ b/cc/trees/single_thread_proxy.cc
@@ -328,12 +328,12 @@ void SingleThreadProxy::SetNeedsCommitOnImplThread() {
void SingleThreadProxy::PostAnimationEventsToMainThreadOnImplThread(
scoped_ptr<AnimationEventsVector> events,
- base::Time wall_clock_time) {
+ base::TimeTicks clock_time) {
TRACE_EVENT0(
"cc", "SingleThreadProxy::PostAnimationEventsToMainThreadOnImplThread");
DCHECK(Proxy::IsImplThread());
DebugScopedSetMainThread main(this);
- layer_tree_host_->SetAnimationEvents(events.Pass(), wall_clock_time);
+ layer_tree_host_->SetAnimationEvents(events.Pass(), clock_time);
}
bool SingleThreadProxy::ReduceContentsTextureMemoryOnImplThread(
@@ -532,8 +532,7 @@ bool SingleThreadProxy::DoComposite(
}
layer_tree_host_impl_->Animate(
- layer_tree_host_impl_->CurrentFrameTimeTicks(),
- layer_tree_host_impl_->CurrentFrameTime());
+ layer_tree_host_impl_->CurrentFrameTimeTicks());
UpdateBackgroundAnimateTicking();
if (!layer_tree_host_impl_->IsContextLost()) {

Powered by Google App Engine
This is Rietveld 408576698