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

Unified Diff: cc/test/test_hooks.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/remote_proto_channel_bridge.cc ('k') | cc/test/threaded_channel_for_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_hooks.h
diff --git a/cc/test/test_hooks.h b/cc/test/test_hooks.h
index 8caec7f8f774aea41220233a0e16708ee7385bd5..30ebece07227369e63abdf8792e13857c3b6da9f 100644
--- a/cc/test/test_hooks.h
+++ b/cc/test/test_hooks.h
@@ -12,6 +12,10 @@
namespace cc {
+namespace proto {
+class CompositorMessageToImpl;
+}
+
// Used by test stubs to notify the test when something interesting happens.
class TestHooks : public AnimationDelegate {
public:
@@ -135,6 +139,15 @@ class TestHooks : public AnimationDelegate {
int group) override {}
virtual void RequestNewOutputSurface() = 0;
+
+ // Used to notify the test to create the Remote client LayerTreeHost on
+ // receiving a CompositorMessageToImpl of type INITIALIZE_IMPL.
+ virtual void CreateRemoteClientHost(
+ const proto::CompositorMessageToImpl& proto) {}
+
+ // Used to notify the test to destroy the Remote client LayerTreeHost on
+ // receiving a CompositorMessageToImpl of type CLOSE_IMPL.
+ virtual void DestroyRemoteClientHost() {}
};
} // namespace cc
« no previous file with comments | « cc/test/remote_proto_channel_bridge.cc ('k') | cc/test/threaded_channel_for_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698