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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 | 320 |
321 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); | 321 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); |
322 TileManager* tile_manager() { return tile_manager_.get(); } | 322 TileManager* tile_manager() { return tile_manager_.get(); } |
323 | 323 |
324 void set_has_gpu_rasterization_trigger(bool flag) { | 324 void set_has_gpu_rasterization_trigger(bool flag) { |
325 has_gpu_rasterization_trigger_ = flag; | 325 has_gpu_rasterization_trigger_ = flag; |
326 } | 326 } |
327 void set_content_is_suitable_for_gpu_rasterization(bool flag) { | 327 void set_content_is_suitable_for_gpu_rasterization(bool flag) { |
328 content_is_suitable_for_gpu_rasterization_ = flag; | 328 content_is_suitable_for_gpu_rasterization_ = flag; |
329 } | 329 } |
| 330 bool CanUseGpuRasterization(); |
330 void UpdateGpuRasterizationStatus(); | 331 void UpdateGpuRasterizationStatus(); |
331 bool use_gpu_rasterization() const { return use_gpu_rasterization_; } | 332 bool use_gpu_rasterization() const { return use_gpu_rasterization_; } |
332 bool use_msaa() const { return use_msaa_; } | 333 bool use_msaa() const { return use_msaa_; } |
333 | 334 |
334 GpuRasterizationStatus gpu_rasterization_status() const { | 335 GpuRasterizationStatus gpu_rasterization_status() const { |
335 return gpu_rasterization_status_; | 336 return gpu_rasterization_status_; |
336 } | 337 } |
337 | 338 |
338 bool create_low_res_tiling() const { | 339 bool create_low_res_tiling() const { |
339 return settings_.create_low_res_tiling && !use_gpu_rasterization_; | 340 return settings_.create_low_res_tiling && !use_gpu_rasterization_; |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 761 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
761 | 762 |
762 scoped_ptr<Viewport> viewport_; | 763 scoped_ptr<Viewport> viewport_; |
763 | 764 |
764 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 765 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
765 }; | 766 }; |
766 | 767 |
767 } // namespace cc | 768 } // namespace cc |
768 | 769 |
769 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 770 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |