| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <bitset> | 10 #include <bitset> |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 void OnCanDrawStateChangedForTree(); | 391 void OnCanDrawStateChangedForTree(); |
| 392 | 392 |
| 393 // Implementation. | 393 // Implementation. |
| 394 int id() const { return id_; } | 394 int id() const { return id_; } |
| 395 bool CanDraw() const; | 395 bool CanDraw() const; |
| 396 OutputSurface* output_surface() const { return output_surface_; } | 396 OutputSurface* output_surface() const { return output_surface_; } |
| 397 void ReleaseOutputSurface(); | 397 void ReleaseOutputSurface(); |
| 398 | 398 |
| 399 std::string LayerTreeAsJson() const; | 399 std::string LayerTreeAsJson() const; |
| 400 | 400 |
| 401 void FinishAllRendering(); | |
| 402 int RequestedMSAASampleCount() const; | 401 int RequestedMSAASampleCount() const; |
| 403 | 402 |
| 404 virtual bool InitializeRenderer(OutputSurface* output_surface); | 403 virtual bool InitializeRenderer(OutputSurface* output_surface); |
| 405 TileManager* tile_manager() { return &tile_manager_; } | 404 TileManager* tile_manager() { return &tile_manager_; } |
| 406 | 405 |
| 407 void SetHasGpuRasterizationTrigger(bool flag) { | 406 void SetHasGpuRasterizationTrigger(bool flag) { |
| 408 has_gpu_rasterization_trigger_ = flag; | 407 has_gpu_rasterization_trigger_ = flag; |
| 409 UpdateGpuRasterizationStatus(); | 408 UpdateGpuRasterizationStatus(); |
| 410 } | 409 } |
| 411 void SetContentIsSuitableForGpuRasterization(bool flag) { | 410 void SetContentIsSuitableForGpuRasterization(bool flag) { |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 | 844 |
| 846 std::unique_ptr<PendingTreeDurationHistogramTimer> | 845 std::unique_ptr<PendingTreeDurationHistogramTimer> |
| 847 pending_tree_duration_timer_; | 846 pending_tree_duration_timer_; |
| 848 | 847 |
| 849 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 848 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 850 }; | 849 }; |
| 851 | 850 |
| 852 } // namespace cc | 851 } // namespace cc |
| 853 | 852 |
| 854 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 853 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |