OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CC_BLIMP_COMPOSITOR_PROTO_STATE_H_ | |
6 #define CC_BLIMP_COMPOSITOR_PROTO_STATE_H_ | |
7 | |
8 #include <memory> | |
9 #include <vector> | |
10 | |
11 #include "base/macros.h" | |
12 #include "cc/base/cc_export.h" | |
13 | |
14 namespace cc { | |
15 namespace proto { | |
16 class CompositorMessage; | |
17 } | |
18 | |
19 class SwapPromise; | |
20 | |
21 class CC_EXPORT CompositorProtoState { | |
22 public: | |
23 CompositorProtoState(); | |
24 ~CompositorProtoState(); | |
25 | |
26 // The SwapPromises associated with this frame update. | |
27 std::vector<std::unique_ptr<SwapPromise>> swap_promises; | |
28 | |
29 // Serialized CompositorState. | |
30 std::unique_ptr<proto::CompositorMessage> compositor_message; | |
31 | |
32 private: | |
33 DISALLOW_COPY_AND_ASSIGN(CompositorProtoState); | |
34 }; | |
35 | |
36 } // namespace cc | |
37 | |
38 #endif // CC_BLIMP_COMPOSITOR_PROTO_STATE_H_ | |
OLD | NEW |