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

Unified Diff: cc/trees/channel_main.h

Issue 1357373002: Add basic framework for splitting thread proxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor clean-up. Created 5 years, 3 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
Index: cc/trees/channel_main.h
diff --git a/cc/trees/channel_main.h b/cc/trees/channel_main.h
new file mode 100644
index 0000000000000000000000000000000000000000..54e4df2aad427944c579238f2192834ec9829653
--- /dev/null
+++ b/cc/trees/channel_main.h
@@ -0,0 +1,39 @@
+// 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_CHANNEL_MAIN_H_
+#define CC_TREES_CHANNEL_MAIN_H_
+
+#include "cc/base/cc_export.h"
+
+namespace cc {
+class ThreadProxy;
David Trainor- moved to gerrit 2015/09/23 17:54:11 Remove?
Khushal 2015/09/23 20:50:28 Done.
+
+// ChannelMain and ChannelImpl provide an abstract communication layer for
+// the main and impl side of the compositor.
+//
+// The communication sequence between the 2 sides is:
+//
+// LayerTreeHost --> ProxyMain --> ChannelMain
David Trainor- moved to gerrit 2015/09/23 17:54:11 Odd formatting request, but can we line these two
Khushal 2015/09/23 20:50:28 Done. Added ChannelImpl in the communication seque
+// |
+// |
+// ProxyImpl --> LayerTreeHostImpl
+//
+// LayerTreeHostImpl --> ProxyImpl --> ChannelImpl
+// |
+// |
+// ProxyMain --> LayerTreeHost
+
+class CC_EXPORT ChannelMain {
+ public:
+ // Interface for commands sent to the ProxyImpl
+ virtual void SetThrottleFrameProductionOnImpl(bool throttle) = 0;
+ virtual void SetLayerTreeHostClientReadyOnImpl() = 0;
+
+ virtual ~ChannelMain() {}
+};
+
+} // namespace cc
+
+#endif // CC_TREES_CHANNEL_MAIN_H_
« no previous file with comments | « cc/trees/channel_impl.h ('k') | cc/trees/proxy_impl.h » ('j') | cc/trees/thread_proxy.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698