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(); | |
293 TileManager* tile_manager() { return tile_manager_.get(); } | 292 TileManager* tile_manager() { return tile_manager_.get(); } |
294 void SetUseGpuRasterization(bool use_gpu); | 293 void SetUseGpuRasterization(bool use_gpu); |
295 bool use_gpu_rasterization() const { return use_gpu_rasterization_; } | 294 bool use_gpu_rasterization() const { return use_gpu_rasterization_; } |
296 bool create_low_res_tiling() const { | 295 bool create_low_res_tiling() const { |
297 return settings_.create_low_res_tiling && !use_gpu_rasterization_; | 296 return settings_.create_low_res_tiling && !use_gpu_rasterization_; |
298 } | 297 } |
299 ResourcePool* resource_pool() { return resource_pool_.get(); } | 298 ResourcePool* resource_pool() { return resource_pool_.get(); } |
300 Renderer* renderer() { return renderer_.get(); } | 299 Renderer* renderer() { return renderer_.get(); } |
301 const RendererCapabilitiesImpl& GetRendererCapabilities() const; | 300 const RendererCapabilitiesImpl& GetRendererCapabilities() const; |
302 | 301 |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 | 720 |
722 std::vector<PictureLayerImpl*> picture_layers_; | 721 std::vector<PictureLayerImpl*> picture_layers_; |
723 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 722 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
724 | 723 |
725 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 724 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
726 }; | 725 }; |
727 | 726 |
728 } // namespace cc | 727 } // namespace cc |
729 | 728 |
730 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 729 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |