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

Unified Diff: cc/test/proxy_main_for_test.cc

Issue 1513643010: cc:: Add remote mode to the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/test/proxy_main_for_test.cc
diff --git a/cc/test/proxy_main_for_test.cc b/cc/test/proxy_main_for_test.cc
index 4588422e09abaa642ce81edf087c8c0166170e01..f7ac6e46c15b4e6e35fee25fee98c808cce79f24 100644
--- a/cc/test/proxy_main_for_test.cc
+++ b/cc/test/proxy_main_for_test.cc
@@ -5,6 +5,7 @@
#include "cc/test/proxy_main_for_test.h"
#include "cc/test/threaded_channel_for_test.h"
+#include "cc/trees/remote_channel_main.h"
namespace cc {
@@ -21,6 +22,18 @@ scoped_ptr<ProxyMain> ProxyMainForTest::CreateThreaded(
return proxy_main;
}
+scoped_ptr<ProxyMain> ProxyMainForTest::CreateRemote(
+ TestHooks* test_hooks,
+ RemoteProtoChannel* remote_proto_channel,
+ LayerTreeHost* host,
+ TaskRunnerProvider* task_runner_provider) {
+ scoped_ptr<ProxyMain> proxy_main(
+ new ProxyMainForTest(test_hooks, host, task_runner_provider, nullptr));
+ proxy_main->SetChannel(RemoteChannelMain::Create(
+ remote_proto_channel, proxy_main.get(), task_runner_provider));
+ return proxy_main;
+}
+
ProxyMainForTest::~ProxyMainForTest() {}
ProxyMainForTest::ProxyMainForTest(

Powered by Google App Engine
This is Rietveld 408576698