OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_TREES_COMPOSITOR_MODE_H_ | 5 #ifndef CC_TREES_COMPOSITOR_MODE_H_ |
6 #define CC_TREES_COMPOSITOR_MODE_H_ | 6 #define CC_TREES_COMPOSITOR_MODE_H_ |
7 | 7 |
8 namespace cc { | 8 namespace cc { |
9 | 9 |
10 // The LayerTreeHost uses the CompositorMode to determine the current mode of | 10 // The LayerTreeHost uses the CompositorMode to determine the current mode of |
11 // operation, which is needed to: | 11 // operation, which is needed to: |
12 // 1) Safely cast Proxy to SingleThreadProxy to allow operations only supported | 12 // 1) Safely cast Proxy to SingleThreadProxy to allow operations only supported |
13 // in SingleThreaded mode. | 13 // in SingleThreaded mode. |
14 // 2) Make decisions restricted to either browser(SingleThreaded) or renderer | 14 // 2) Make decisions restricted to either browser(SingleThreaded) or renderer |
15 // compositors(Threaded). | 15 // compositors(Threaded/Remote). |
16 enum CompositorMode { | 16 enum CompositorMode { |
17 // The main and impl components will be run on the same thread. | |
17 SingleThreaded, | 18 SingleThreaded, |
19 | |
20 // The main and impl components be run on different threads. | |
18 Threaded, | 21 Threaded, |
22 | |
23 // The main and impl components will be run across the network. | |
24 Remote, | |
25 | |
26 // The commit data from the remote compositor will be deserialized to this | |
27 // LayerTreeHost to be used by the impl components during the commit. | |
28 Deserializable, | |
vmpstr
2016/01/07 19:08:12
This seem a bit awkward to me. We have two LayerTr
Khushal
2016/01/08 21:17:19
Updated the patch to remove the RemoteChannelHost.
| |
19 }; | 29 }; |
20 | 30 |
21 } // namespace cc | 31 } // namespace cc |
22 | 32 |
23 #endif // CC_TREES_COMPOSITOR_MODE_H_ | 33 #endif // CC_TREES_COMPOSITOR_MODE_H_ |
OLD | NEW |