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

Unified Diff: cc/trees/threaded_channel.cc

Issue 1895873006: compositor-worker: Initialize CW machinery plumbing to compositor and fire CW rAF callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bring up oilpan support during compositor worker creation and oilpan the compositor mutator and pro… Created 4 years, 8 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/threaded_channel.cc
diff --git a/cc/trees/threaded_channel.cc b/cc/trees/threaded_channel.cc
index eacfabbdd821e5a18c08e8528604bcf1497cc6c7..a4da549722cd919f89cd18d1a66f4dd3d3cdce42 100644
--- a/cc/trees/threaded_channel.cc
+++ b/cc/trees/threaded_channel.cc
@@ -9,6 +9,7 @@
#include "base/single_thread_task_runner.h"
#include "base/trace_event/trace_event.h"
#include "cc/animation/animation_events.h"
+#include "cc/animation/layer_tree_mutator.h"
#include "cc/trees/layer_tree_host.h"
namespace cc {
@@ -54,6 +55,14 @@ void ThreadedChannel::InitializeOutputSurfaceOnImpl(
proxy_impl_weak_ptr_, output_surface));
}
+void ThreadedChannel::InitializeMutatorOnImpl(
+ std::unique_ptr<LayerTreeMutator> mutator) {
+ ImplThreadTaskRunner()->PostTask(
+ FROM_HERE,
+ base::Bind(&ProxyImpl::InitializeMutatorOnImpl, proxy_impl_weak_ptr_,
+ base::Passed(std::move(mutator))));
+}
+
void ThreadedChannel::MainThreadHasStoppedFlingingOnImpl() {
DCHECK(IsMainThread());
ImplThreadTaskRunner()->PostTask(

Powered by Google App Engine
This is Rietveld 408576698