OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_TREES_COMPOSITOR_MODE_H_ |
| 6 #define CC_TREES_COMPOSITOR_MODE_H_ |
| 7 |
| 8 namespace cc { |
| 9 |
| 10 // The LayerTreeHost uses the CompositorMode to determine the current mode of |
| 11 // operation, which is needed to: |
| 12 // 1) Safely cast Proxy to SingleThreadProxy to allow operations only supported |
| 13 // in SingleThreaded mode. |
| 14 // 2) Make decisions restricted to either browser(SingleThreaded) or renderer |
| 15 // compositors(Threaded). |
| 16 enum CompositorMode { |
| 17 SingleThreaded, |
| 18 Threaded, |
| 19 }; |
| 20 |
| 21 } // namespace cc |
| 22 |
| 23 #endif // CC_TREES_COMPOSITOR_MODE_H_ |
OLD | NEW |