OLD | NEW |
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> |
| 9 |
8 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
9 #include "cc/output/begin_frame_args.h" | 11 #include "cc/output/begin_frame_args.h" |
10 #include "cc/trees/layer_tree_host_common.h" | 12 #include "cc/trees/layer_tree_host_common.h" |
11 | 13 |
12 namespace cc { | 14 namespace cc { |
13 class LayerTreeHost; | 15 class LayerTreeHost; |
14 | 16 |
15 struct CC_EXPORT BeginMainFrameAndCommitState { | 17 struct CC_EXPORT BeginMainFrameAndCommitState { |
16 BeginMainFrameAndCommitState(); | 18 BeginMainFrameAndCommitState(); |
17 ~BeginMainFrameAndCommitState(); | 19 ~BeginMainFrameAndCommitState(); |
18 | 20 |
19 unsigned int begin_frame_id; | 21 unsigned int begin_frame_id; |
20 BeginFrameArgs begin_frame_args; | 22 BeginFrameArgs begin_frame_args; |
21 scoped_ptr<ScrollAndScaleSet> scroll_info; | 23 scoped_ptr<ScrollAndScaleSet> scroll_info; |
22 size_t memory_allocation_limit_bytes; | 24 size_t memory_allocation_limit_bytes; |
23 bool evicted_ui_resources; | 25 bool evicted_ui_resources; |
24 }; | 26 }; |
25 | 27 |
26 } // namespace cc | 28 } // namespace cc |
27 | 29 |
28 #endif // CC_TREES_PROXY_COMMON_H_ | 30 #endif // CC_TREES_PROXY_COMMON_H_ |
OLD | NEW |