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

Side by Side Diff: cc/blimp/compositor_proto_state.h

Issue 2375363002: cc/blimp: Set up the framework for state serialization. (Closed)
Patch Set: test update Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « cc/BUILD.gn ('k') | cc/blimp/compositor_proto_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « cc/BUILD.gn ('k') | cc/blimp/compositor_proto_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698