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

Side by Side Diff: cc/trees/proxy_common.h

Issue 2493853002: cc/blimp: Proto Cleanup. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/trees/property_tree_unittest.cc ('k') | cc/trees/proxy_common.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 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_PROXY_COMMON_H_ 5 #ifndef CC_TREES_PROXY_COMMON_H_
6 #define CC_TREES_PROXY_COMMON_H_ 6 #define CC_TREES_PROXY_COMMON_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
12 #include "cc/output/begin_frame_args.h" 12 #include "cc/output/begin_frame_args.h"
13 #include "cc/trees/layer_tree_host_common.h" 13 #include "cc/trees/layer_tree_host_common.h"
14 14
15 namespace cc { 15 namespace cc {
16 16
17 namespace proto {
18 class BeginMainFrameAndCommitState;
19 }
20
21 class LayerTreeHost; 17 class LayerTreeHost;
22 18
23 using BeginFrameCallbackList = std::vector<base::Closure>; 19 using BeginFrameCallbackList = std::vector<base::Closure>;
24 20
25 struct CC_EXPORT BeginMainFrameAndCommitState { 21 struct CC_EXPORT BeginMainFrameAndCommitState {
26 BeginMainFrameAndCommitState(); 22 BeginMainFrameAndCommitState();
27 ~BeginMainFrameAndCommitState(); 23 ~BeginMainFrameAndCommitState();
28 24
29 unsigned int begin_frame_id = 0; 25 unsigned int begin_frame_id = 0;
30 BeginFrameArgs begin_frame_args; 26 BeginFrameArgs begin_frame_args;
31 std::unique_ptr<BeginFrameCallbackList> begin_frame_callbacks; 27 std::unique_ptr<BeginFrameCallbackList> begin_frame_callbacks;
32 std::unique_ptr<ScrollAndScaleSet> scroll_info; 28 std::unique_ptr<ScrollAndScaleSet> scroll_info;
33 size_t memory_allocation_limit_bytes = 0; 29 size_t memory_allocation_limit_bytes = 0;
34 bool evicted_ui_resources = false; 30 bool evicted_ui_resources = false;
35
36 void ToProtobuf(proto::BeginMainFrameAndCommitState* proto) const;
37 void FromProtobuf(const proto::BeginMainFrameAndCommitState& proto);
38 }; 31 };
39 32
40 } // namespace cc 33 } // namespace cc
41 34
42 #endif // CC_TREES_PROXY_COMMON_H_ 35 #endif // CC_TREES_PROXY_COMMON_H_
OLDNEW
« no previous file with comments | « cc/trees/property_tree_unittest.cc ('k') | cc/trees/proxy_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698