| 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> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| 11 #include "cc/output/begin_frame_args.h" | 11 #include "cc/output/begin_frame_args.h" |
| 12 #include "cc/trees/layer_tree_host_common.h" | 12 #include "cc/trees/layer_tree_host_common.h" |
| 13 | 13 |
| 14 namespace cc { | 14 namespace cc { |
| 15 | 15 |
| 16 namespace proto { | 16 namespace proto { |
| 17 class BeginMainFrameAndCommitState; | 17 class BeginMainFrameAndCommitState; |
| 18 } | 18 } |
| 19 | 19 |
| 20 class LayerTreeHost; | 20 class LayerTreeHost; |
| 21 | 21 |
| 22 struct CC_EXPORT BeginMainFrameAndCommitState { | 22 struct CC_EXPORT BeginMainFrameAndCommitState { |
| 23 BeginMainFrameAndCommitState(); | 23 BeginMainFrameAndCommitState(); |
| 24 ~BeginMainFrameAndCommitState(); | 24 ~BeginMainFrameAndCommitState(); |
| 25 | 25 |
| 26 unsigned int begin_frame_id; | 26 unsigned int begin_frame_id; |
| 27 BeginFrameArgs begin_frame_args; | 27 BeginFrameArgs begin_frame_args; |
| 28 scoped_ptr<ScrollAndScaleSet> scroll_info; | 28 std::unique_ptr<ScrollAndScaleSet> scroll_info; |
| 29 size_t memory_allocation_limit_bytes; | 29 size_t memory_allocation_limit_bytes; |
| 30 bool evicted_ui_resources; | 30 bool evicted_ui_resources; |
| 31 | 31 |
| 32 void ToProtobuf(proto::BeginMainFrameAndCommitState* proto) const; | 32 void ToProtobuf(proto::BeginMainFrameAndCommitState* proto) const; |
| 33 void FromProtobuf(const proto::BeginMainFrameAndCommitState& proto); | 33 void FromProtobuf(const proto::BeginMainFrameAndCommitState& proto); |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 } // namespace cc | 36 } // namespace cc |
| 37 | 37 |
| 38 #endif // CC_TREES_PROXY_COMMON_H_ | 38 #endif // CC_TREES_PROXY_COMMON_H_ |
| OLD | NEW |