| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_LAYER_TREE_HOST_IN_PROCESS_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 void FinishCommitOnImplThread(LayerTreeHostImpl* host_impl); | 182 void FinishCommitOnImplThread(LayerTreeHostImpl* host_impl); |
| 183 void WillCommit(); | 183 void WillCommit(); |
| 184 void CommitComplete(); | 184 void CommitComplete(); |
| 185 void RequestNewCompositorFrameSink(); | 185 void RequestNewCompositorFrameSink(); |
| 186 void DidInitializeCompositorFrameSink(); | 186 void DidInitializeCompositorFrameSink(); |
| 187 void DidFailToInitializeCompositorFrameSink(); | 187 void DidFailToInitializeCompositorFrameSink(); |
| 188 virtual std::unique_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( | 188 virtual std::unique_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( |
| 189 LayerTreeHostImplClient* client); | 189 LayerTreeHostImplClient* client); |
| 190 void DidLoseCompositorFrameSink(); | 190 void DidLoseCompositorFrameSink(); |
| 191 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } | 191 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } |
| 192 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } | 192 void DidReceiveCompositorFrameAck() { |
| 193 client_->DidReceiveCompositorFrameAck(); |
| 194 } |
| 193 bool UpdateLayers(); | 195 bool UpdateLayers(); |
| 194 // Called when the compositor completed page scale animation. | 196 // Called when the compositor completed page scale animation. |
| 195 void DidCompletePageScaleAnimation(); | 197 void DidCompletePageScaleAnimation(); |
| 196 void ApplyScrollAndScale(ScrollAndScaleSet* info); | 198 void ApplyScrollAndScale(ScrollAndScaleSet* info); |
| 197 | 199 |
| 198 LayerTreeHostClient* client() { return client_; } | 200 LayerTreeHostClient* client() { return client_; } |
| 199 | 201 |
| 200 bool gpu_rasterization_histogram_recorded() const { | 202 bool gpu_rasterization_histogram_recorded() const { |
| 201 return gpu_rasterization_histogram_recorded_; | 203 return gpu_rasterization_histogram_recorded_; |
| 202 } | 204 } |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 | 367 |
| 366 SurfaceSequenceGenerator surface_sequence_generator_; | 368 SurfaceSequenceGenerator surface_sequence_generator_; |
| 367 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; | 369 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; |
| 368 | 370 |
| 369 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostInProcess); | 371 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostInProcess); |
| 370 }; | 372 }; |
| 371 | 373 |
| 372 } // namespace cc | 374 } // namespace cc |
| 373 | 375 |
| 374 #endif // CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ | 376 #endif // CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ |
| OLD | NEW |