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

Unified Diff: cc/trees/remote_channel_host_client.h

Issue 1513643010: cc:: Add remote mode to the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use LayerTreeSettings::ToProtobuf, update comments. 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/trees/remote_channel_host_client.h
diff --git a/cc/trees/remote_channel_host_client.h b/cc/trees/remote_channel_host_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..d922d44c013ad0f9791a4b98030ce73bce5d8a3d
--- /dev/null
+++ b/cc/trees/remote_channel_host_client.h
@@ -0,0 +1,29 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_TREES_REMOTE_CHANNEL_HOST_CLIENT_H_
+#define CC_TREES_REMOTE_CHANNEL_HOST_CLIENT_H_
+
+#include "base/macros.h"
+#include "cc/base/cc_export.h"
+#include "cc/trees/layer_tree_settings.h"
+
+namespace cc {
+
+class RemoteChannelHostClient {
+ public:
+ // Allows the client to override any LayerTreeSettings received from the
+ // main compositor.
+ virtual void OverrideLayerTreeSettings(LayerTreeSettings* settings) {}
+
+ // Informs the client that the RemoteChannelHost has been shutdown. The
+ // RemoteChannelHost can not be used after this method is called.
+ virtual void DidShutdown() = 0;
+
+ virtual ~RemoteChannelHostClient() {}
+};
+
+} // namespace cc
+
+#endif // CC_TREES_REMOTE_CHANNEL_HOST_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698