Chromium Code Reviews| 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 282 int id() const { return id_; } | 282 int id() const { return id_; } |
| 283 bool CanDraw() const; | 283 bool CanDraw() const; |
| 284 OutputSurface* output_surface() const { return output_surface_.get(); } | 284 OutputSurface* output_surface() const { return output_surface_.get(); } |
| 285 | 285 |
| 286 std::string LayerTreeAsJson() const; | 286 std::string LayerTreeAsJson() const; |
| 287 | 287 |
| 288 void FinishAllRendering(); | 288 void FinishAllRendering(); |
| 289 int SourceAnimationFrameNumber() const; | 289 int SourceAnimationFrameNumber() const; |
| 290 | 290 |
| 291 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); | 291 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); |
| 292 bool IsContextLost(); | 292 bool IsContextLost(); |
|
danakj
2014/08/06 18:56:44
do you think we can get rid of this method too? Th
dneto
2014/08/06 20:31:22
Ah, and if we've told the proxy about the loss via
| |
| 293 TileManager* tile_manager() { return tile_manager_.get(); } | 293 TileManager* tile_manager() { return tile_manager_.get(); } |
| 294 void SetUseGpuRasterization(bool use_gpu); | 294 void SetUseGpuRasterization(bool use_gpu); |
| 295 bool use_gpu_rasterization() const { return use_gpu_rasterization_; } | 295 bool use_gpu_rasterization() const { return use_gpu_rasterization_; } |
| 296 bool create_low_res_tiling() const { | 296 bool create_low_res_tiling() const { |
| 297 return settings_.create_low_res_tiling && !use_gpu_rasterization_; | 297 return settings_.create_low_res_tiling && !use_gpu_rasterization_; |
| 298 } | 298 } |
| 299 ResourcePool* resource_pool() { return resource_pool_.get(); } | 299 ResourcePool* resource_pool() { return resource_pool_.get(); } |
| 300 Renderer* renderer() { return renderer_.get(); } | 300 Renderer* renderer() { return renderer_.get(); } |
| 301 const RendererCapabilitiesImpl& GetRendererCapabilities() const; | 301 const RendererCapabilitiesImpl& GetRendererCapabilities() const; |
| 302 | 302 |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 696 | 696 |
| 697 // Expected time between two begin impl frame calls. | 697 // Expected time between two begin impl frame calls. |
| 698 base::TimeDelta begin_impl_frame_interval_; | 698 base::TimeDelta begin_impl_frame_interval_; |
| 699 | 699 |
| 700 scoped_ptr<AnimationRegistrar> animation_registrar_; | 700 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 701 | 701 |
| 702 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 702 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 703 MicroBenchmarkControllerImpl micro_benchmark_controller_; | 703 MicroBenchmarkControllerImpl micro_benchmark_controller_; |
| 704 | 704 |
| 705 bool need_to_update_visible_tiles_before_draw_; | 705 bool need_to_update_visible_tiles_before_draw_; |
| 706 #if DCHECK_IS_ON | 706 bool have_output_surface_; |
| 707 bool did_lose_called_; | |
| 708 #endif | |
| 709 | 707 |
| 710 // Optional callback to notify of new tree activations. | 708 // Optional callback to notify of new tree activations. |
| 711 base::Closure tree_activation_callback_; | 709 base::Closure tree_activation_callback_; |
| 712 | 710 |
| 713 SharedBitmapManager* shared_bitmap_manager_; | 711 SharedBitmapManager* shared_bitmap_manager_; |
| 714 int id_; | 712 int id_; |
| 715 | 713 |
| 716 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 714 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 717 | 715 |
| 718 size_t transfer_buffer_memory_limit_; | 716 size_t transfer_buffer_memory_limit_; |
| 719 | 717 |
| 720 std::vector<PictureLayerImpl*> picture_layers_; | 718 std::vector<PictureLayerImpl*> picture_layers_; |
| 721 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 719 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
| 722 | 720 |
| 723 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 721 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 724 }; | 722 }; |
| 725 | 723 |
| 726 } // namespace cc | 724 } // namespace cc |
| 727 | 725 |
| 728 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 726 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |