OLD | NEW |
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_LAYER_TREE_HOST_REMOTE_H_ | 5 #ifndef CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_ |
6 #define CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_ | 6 #define CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 void MainFrameRequested(FramePipelineStage requested_pipeline_stage); | 119 void MainFrameRequested(FramePipelineStage requested_pipeline_stage); |
120 void ScheduleMainFrameIfNecessary(); | 120 void ScheduleMainFrameIfNecessary(); |
121 void MainFrameComplete(); | 121 void MainFrameComplete(); |
122 void SerializeCurrentState(proto::LayerTreeHost* layer_tree_host_proto); | 122 void SerializeCurrentState(proto::LayerTreeHost* layer_tree_host_proto); |
123 | 123 |
124 const int id_; | 124 const int id_; |
125 int source_frame_number_ = 0; | 125 int source_frame_number_ = 0; |
126 bool visible_ = false; | 126 bool visible_ = false; |
127 bool defer_commits_ = false; | 127 bool defer_commits_ = false; |
| 128 uint64_t begin_frame_number_ = 1; |
128 | 129 |
129 // In threaded/single-threaded mode, the LayerTree and Layers expect scroll/ | 130 // In threaded/single-threaded mode, the LayerTree and Layers expect scroll/ |
130 // scale updates to come from the impl thread only during the main frame. | 131 // scale updates to come from the impl thread only during the main frame. |
131 // Since we synchronize state outside of that, this is set so we can | 132 // Since we synchronize state outside of that, this is set so we can |
132 // temporarily report that a commit is in progress. | 133 // temporarily report that a commit is in progress. |
133 bool synchronizing_client_updates_ = false; | 134 bool synchronizing_client_updates_ = false; |
134 | 135 |
135 // Set to true if a main frame request is pending on the | 136 // Set to true if a main frame request is pending on the |
136 // RemoteCompositorBridge. | 137 // RemoteCompositorBridge. |
137 bool main_frame_requested_from_bridge_ = false; | 138 bool main_frame_requested_from_bridge_ = false; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 SurfaceSequenceGenerator surface_sequence_generator_; | 171 SurfaceSequenceGenerator surface_sequence_generator_; |
171 | 172 |
172 base::WeakPtr<InputHandler> input_handler_weak_ptr_; | 173 base::WeakPtr<InputHandler> input_handler_weak_ptr_; |
173 | 174 |
174 base::WeakPtrFactory<LayerTreeHostRemote> weak_factory_; | 175 base::WeakPtrFactory<LayerTreeHostRemote> weak_factory_; |
175 }; | 176 }; |
176 | 177 |
177 } // namespace cc | 178 } // namespace cc |
178 | 179 |
179 #endif // CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_ | 180 #endif // CC_BLIMP_LAYER_TREE_HOST_REMOTE_H_ |
OLD | NEW |