OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_BLIMP_COMPOSITOR_PROTO_STATE_H_ | 5 #ifndef CC_BLIMP_COMPOSITOR_PROTO_STATE_H_ |
6 #define CC_BLIMP_COMPOSITOR_PROTO_STATE_H_ | 6 #define CC_BLIMP_COMPOSITOR_PROTO_STATE_H_ |
7 | 7 |
| 8 #include <memory> |
8 #include <vector> | 9 #include <vector> |
9 | 10 |
10 #include "base/macros.h" | 11 #include "base/macros.h" |
11 #include "cc/base/cc_export.h" | 12 #include "cc/base/cc_export.h" |
12 | 13 |
13 namespace cc { | 14 namespace cc { |
| 15 namespace proto { |
| 16 class CompositorMessage; |
| 17 } |
| 18 |
14 class SwapPromise; | 19 class SwapPromise; |
15 | 20 |
16 class CC_EXPORT CompositorProtoState { | 21 class CC_EXPORT CompositorProtoState { |
17 public: | 22 public: |
18 CompositorProtoState(); | 23 CompositorProtoState(); |
19 ~CompositorProtoState(); | 24 ~CompositorProtoState(); |
20 | 25 |
21 // The SwapPromises associated with this frame update. | 26 // The SwapPromises associated with this frame update. |
22 std::vector<SwapPromise> swap_promises; | 27 std::vector<std::unique_ptr<SwapPromise>> swap_promises; |
23 | 28 |
24 // TODO(khushalsagar): Add serialized representation of the layers, layer tree | 29 // Serialized CompositorState. |
25 // and display lists. | 30 std::unique_ptr<proto::CompositorMessage> compositor_message; |
26 | 31 |
27 private: | 32 private: |
28 DISALLOW_COPY_AND_ASSIGN(CompositorProtoState); | 33 DISALLOW_COPY_AND_ASSIGN(CompositorProtoState); |
29 }; | 34 }; |
30 | 35 |
31 } // namespace cc | 36 } // namespace cc |
32 | 37 |
33 #endif // CC_BLIMP_COMPOSITOR_PROTO_STATE_H_ | 38 #endif // CC_BLIMP_COMPOSITOR_PROTO_STATE_H_ |
OLD | NEW |