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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 1417053005: cc: Split ThreadProxy into ProxyMain and ProxyImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from #18. Created 5 years, 1 month 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.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 338bb36ee12b0f3215aeb145588c93618ade9c85..87e1e9433492291861fb3afa40ff895cff581833 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -42,8 +42,9 @@
#include "cc/trees/layer_tree_host_common.h"
#include "cc/trees/layer_tree_host_impl.h"
#include "cc/trees/layer_tree_impl.h"
+#include "cc/trees/proxy_main.h"
#include "cc/trees/single_thread_proxy.h"
-#include "cc/trees/thread_proxy.h"
+#include "cc/trees/threaded_channel.h"
#include "cc/trees/tree_synchronizer.h"
#include "ui/gfx/geometry/size_conversions.h"
#include "ui/gfx/geometry/vector2d_conversions.h"
@@ -140,8 +141,12 @@ void LayerTreeHost::InitializeThreaded(
scoped_ptr<BeginFrameSource> external_begin_frame_source) {
task_runner_provider_ =
TaskRunnerProvider::Create(main_task_runner, impl_task_runner);
- InitializeProxy(ThreadProxy::Create(this, task_runner_provider_.get(),
- std::move(external_begin_frame_source)));
+ scoped_ptr<ProxyMain> proxy_main =
+ ProxyMain::Create(this, task_runner_provider_.get(),
+ std::move(external_begin_frame_source));
+ proxy_main->SetChannel(
+ ThreadedChannel::Create(proxy_main.get(), task_runner_provider_.get()));
+ InitializeProxy(std::move(proxy_main));
}
void LayerTreeHost::InitializeSingleThreaded(

Powered by Google App Engine
This is Rietveld 408576698