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

Unified Diff: cc/test/proxy_main_for_test.h

Issue 1513643010: cc:: Add remote mode to the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed vmpstr's comments. Created 4 years, 11 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
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/test/proxy_main_for_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/proxy_main_for_test.h
diff --git a/cc/test/proxy_main_for_test.h b/cc/test/proxy_main_for_test.h
index 42f8a95c3e243087416e4a1e850c03adc6cd2c48..b3241882315cda52d738f127743372a77dcc403d 100644
--- a/cc/test/proxy_main_for_test.h
+++ b/cc/test/proxy_main_for_test.h
@@ -10,22 +10,33 @@
#include "cc/trees/proxy_main.h"
namespace cc {
+class ThreadedChannelForTest;
// Creates a ProxyMain that notifies the supplied |test_hooks| of various
// actions.
class ProxyMainForTest : public ProxyMain {
public:
- static scoped_ptr<ProxyMain> CreateThreaded(
+ static scoped_ptr<ProxyMainForTest> CreateThreaded(
TestHooks* test_hooks,
LayerTreeHost* host,
TaskRunnerProvider* task_runner_provider);
+ static scoped_ptr<ProxyMainForTest> CreateRemote(
+ TestHooks* test_hooks,
+ RemoteProtoChannel* remote_proto_channel,
+ LayerTreeHost* host,
+ TaskRunnerProvider* task_runner_provider);
+
~ProxyMainForTest() override;
ProxyMainForTest(TestHooks* test_hooks,
LayerTreeHost* host,
TaskRunnerProvider* task_runner_provider);
+ ThreadedChannelForTest* threaded_channel_for_test() const {
+ return threaded_channel_for_test_;
+ }
+
void SetNeedsUpdateLayers() override;
void DidCompleteSwapBuffers() override;
void SetRendererCapabilities(
@@ -47,6 +58,7 @@ class ProxyMainForTest : public ProxyMain {
scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) override;
TestHooks* test_hooks_;
+ ThreadedChannelForTest* threaded_channel_for_test_;
};
} // namespace cc
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/test/proxy_main_for_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698