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

Unified Diff: cc/trees/thread_proxy.cc

Issue 1014993002: [exp] cc: Introduce cc::CompositorMutator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/thread_proxy.cc
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
index 6e1a0d9a9d6c15afe87bcff657bd44a397fcc561..54a0c83d66de96241cf23eb3c6a098888c9462ff 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -952,9 +952,9 @@ void ThreadProxy::ScheduledActionAnimate() {
return;
}
- impl().animation_time =
+ base::TimeTicks animation_time =
impl().layer_tree_host_impl->CurrentBeginFrameArgs().frame_time;
- impl().layer_tree_host_impl->Animate(impl().animation_time);
+ impl().layer_tree_host_impl->Animate(animation_time);
// If animations are not visible, update the state now as
// ScheduledActionDrawAndSwapIfPossible will never be called.
@@ -963,6 +963,14 @@ void ThreadProxy::ScheduledActionAnimate() {
}
}
+void ThreadProxy::ScheduledActionCustomMutate() {
+ // ...
+ base::TimeTicks frame_time =
+ impl().layer_tree_host_impl->CurrentBeginFrameArgs().frame_time;
+ impl().layer_tree_host_impl->ApplyCustomMutations(frame_time);
+ // ...
+}
+
void ThreadProxy::ScheduledActionCommit() {
TRACE_EVENT0("cc", "ThreadProxy::ScheduledActionCommit");
DCHECK(IsImplThread());

Powered by Google App Engine
This is Rietveld 408576698