| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 SwapPromiseManager* GetSwapPromiseManager() override; | 138 SwapPromiseManager* GetSwapPromiseManager() override; |
| 139 void SetHasGpuRasterizationTrigger(bool has_trigger) override; | 139 void SetHasGpuRasterizationTrigger(bool has_trigger) override; |
| 140 void SetVisible(bool visible) override; | 140 void SetVisible(bool visible) override; |
| 141 bool IsVisible() const override; | 141 bool IsVisible() const override; |
| 142 void SetCompositorFrameSink( | 142 void SetCompositorFrameSink( |
| 143 std::unique_ptr<CompositorFrameSink> compositor_frame_sink) override; | 143 std::unique_ptr<CompositorFrameSink> compositor_frame_sink) override; |
| 144 std::unique_ptr<CompositorFrameSink> ReleaseCompositorFrameSink() override; | 144 std::unique_ptr<CompositorFrameSink> ReleaseCompositorFrameSink() override; |
| 145 void SetNeedsAnimate() override; | 145 void SetNeedsAnimate() override; |
| 146 void SetNeedsUpdateLayers() override; | 146 void SetNeedsUpdateLayers() override; |
| 147 void SetNeedsCommit() override; | 147 void SetNeedsCommit() override; |
| 148 void SetNeedsRecalculateRasterScales() override; |
| 148 bool BeginMainFrameRequested() const override; | 149 bool BeginMainFrameRequested() const override; |
| 149 bool CommitRequested() const override; | 150 bool CommitRequested() const override; |
| 150 void SetDeferCommits(bool defer_commits) override; | 151 void SetDeferCommits(bool defer_commits) override; |
| 151 void LayoutAndUpdateLayers() override; | 152 void LayoutAndUpdateLayers() override; |
| 152 void Composite(base::TimeTicks frame_begin_time) override; | 153 void Composite(base::TimeTicks frame_begin_time) override; |
| 153 void SetNeedsRedraw() override; | 154 void SetNeedsRedraw() override; |
| 154 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override; | 155 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override; |
| 155 void SetNextCommitForcesRedraw() override; | 156 void SetNextCommitForcesRedraw() override; |
| 156 void NotifyInputThrottledUntilCommit() override; | 157 void NotifyInputThrottledUntilCommit() override; |
| 157 void UpdateTopControlsState(TopControlsState constraints, | 158 void UpdateTopControlsState(TopControlsState constraints, |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 | 345 |
| 345 bool has_gpu_rasterization_trigger_; | 346 bool has_gpu_rasterization_trigger_; |
| 346 bool content_is_suitable_for_gpu_rasterization_; | 347 bool content_is_suitable_for_gpu_rasterization_; |
| 347 bool gpu_rasterization_histogram_recorded_; | 348 bool gpu_rasterization_histogram_recorded_; |
| 348 | 349 |
| 349 // If set, then page scale animation has completed, but the client hasn't been | 350 // If set, then page scale animation has completed, but the client hasn't been |
| 350 // notified about it yet. | 351 // notified about it yet. |
| 351 bool did_complete_scale_animation_; | 352 bool did_complete_scale_animation_; |
| 352 | 353 |
| 353 int id_; | 354 int id_; |
| 354 bool next_commit_forces_redraw_; | 355 bool next_commit_forces_redraw_ = false; |
| 356 bool next_commit_forces_recalculate_raster_scales_ = false; |
| 355 | 357 |
| 356 SharedBitmapManager* shared_bitmap_manager_; | 358 SharedBitmapManager* shared_bitmap_manager_; |
| 357 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; | 359 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; |
| 358 TaskGraphRunner* task_graph_runner_; | 360 TaskGraphRunner* task_graph_runner_; |
| 359 | 361 |
| 360 ImageSerializationProcessor* image_serialization_processor_; | 362 ImageSerializationProcessor* image_serialization_processor_; |
| 361 std::unique_ptr<EnginePictureCache> engine_picture_cache_; | 363 std::unique_ptr<EnginePictureCache> engine_picture_cache_; |
| 362 std::unique_ptr<ClientPictureCache> client_picture_cache_; | 364 std::unique_ptr<ClientPictureCache> client_picture_cache_; |
| 363 | 365 |
| 364 SurfaceSequenceGenerator surface_sequence_generator_; | 366 SurfaceSequenceGenerator surface_sequence_generator_; |
| 365 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; | 367 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; |
| 366 | 368 |
| 367 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostInProcess); | 369 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostInProcess); |
| 368 }; | 370 }; |
| 369 | 371 |
| 370 } // namespace cc | 372 } // namespace cc |
| 371 | 373 |
| 372 #endif // CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ | 374 #endif // CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ |
| OLD | NEW |