| 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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 int id() const { return id_; } | 275 int id() const { return id_; } |
| 276 bool CanDraw() const; | 276 bool CanDraw() const; |
| 277 OutputSurface* output_surface() const { return output_surface_.get(); } | 277 OutputSurface* output_surface() const { return output_surface_.get(); } |
| 278 | 278 |
| 279 std::string LayerTreeAsJson() const; | 279 std::string LayerTreeAsJson() const; |
| 280 | 280 |
| 281 void FinishAllRendering(); | 281 void FinishAllRendering(); |
| 282 int SourceAnimationFrameNumber() const; | 282 int SourceAnimationFrameNumber() const; |
| 283 | 283 |
| 284 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); | 284 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); |
| 285 bool IsContextLost(); | |
| 286 TileManager* tile_manager() { return tile_manager_.get(); } | 285 TileManager* tile_manager() { return tile_manager_.get(); } |
| 287 void SetUseGpuRasterization(bool use_gpu); | 286 void SetUseGpuRasterization(bool use_gpu); |
| 288 bool use_gpu_rasterization() const { return use_gpu_rasterization_; } | 287 bool use_gpu_rasterization() const { return use_gpu_rasterization_; } |
| 289 bool create_low_res_tiling() const { | 288 bool create_low_res_tiling() const { |
| 290 return settings_.create_low_res_tiling && !use_gpu_rasterization_; | 289 return settings_.create_low_res_tiling && !use_gpu_rasterization_; |
| 291 } | 290 } |
| 292 ResourcePool* resource_pool() { return resource_pool_.get(); } | 291 ResourcePool* resource_pool() { return resource_pool_.get(); } |
| 293 Renderer* renderer() { return renderer_.get(); } | 292 Renderer* renderer() { return renderer_.get(); } |
| 294 const RendererCapabilitiesImpl& GetRendererCapabilities() const; | 293 const RendererCapabilitiesImpl& GetRendererCapabilities() const; |
| 295 | 294 |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 | 686 |
| 688 // Expected time between two begin impl frame calls. | 687 // Expected time between two begin impl frame calls. |
| 689 base::TimeDelta begin_impl_frame_interval_; | 688 base::TimeDelta begin_impl_frame_interval_; |
| 690 | 689 |
| 691 scoped_ptr<AnimationRegistrar> animation_registrar_; | 690 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 692 | 691 |
| 693 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 692 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 694 MicroBenchmarkControllerImpl micro_benchmark_controller_; | 693 MicroBenchmarkControllerImpl micro_benchmark_controller_; |
| 695 | 694 |
| 696 bool need_to_update_visible_tiles_before_draw_; | 695 bool need_to_update_visible_tiles_before_draw_; |
| 697 bool have_valid_output_surface_; | |
| 698 | 696 |
| 699 // Optional callback to notify of new tree activations. | 697 // Optional callback to notify of new tree activations. |
| 700 base::Closure tree_activation_callback_; | 698 base::Closure tree_activation_callback_; |
| 701 | 699 |
| 702 SharedBitmapManager* shared_bitmap_manager_; | 700 SharedBitmapManager* shared_bitmap_manager_; |
| 703 int id_; | 701 int id_; |
| 704 | 702 |
| 705 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 703 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 706 | 704 |
| 707 size_t transfer_buffer_memory_limit_; | 705 size_t transfer_buffer_memory_limit_; |
| 708 | 706 |
| 709 std::vector<PictureLayerImpl*> picture_layers_; | 707 std::vector<PictureLayerImpl*> picture_layers_; |
| 710 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 708 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
| 711 | 709 |
| 712 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 710 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 713 }; | 711 }; |
| 714 | 712 |
| 715 } // namespace cc | 713 } // namespace cc |
| 716 | 714 |
| 717 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 715 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |