| 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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 // When a SwapPromiseMonitor is created on the impl thread, it calls | 466 // When a SwapPromiseMonitor is created on the impl thread, it calls |
| 467 // InsertSwapPromiseMonitor() to register itself with LayerTreeHostImpl. | 467 // InsertSwapPromiseMonitor() to register itself with LayerTreeHostImpl. |
| 468 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor() | 468 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor() |
| 469 // to unregister itself. | 469 // to unregister itself. |
| 470 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); | 470 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); |
| 471 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); | 471 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); |
| 472 | 472 |
| 473 void RegisterPictureLayerImpl(PictureLayerImpl* layer); | 473 void RegisterPictureLayerImpl(PictureLayerImpl* layer); |
| 474 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); | 474 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); |
| 475 | 475 |
| 476 void GetPictureLayerImplPairs( | 476 void GetPictureLayerImplPairs(std::vector<PictureLayerImpl::Pair>* layers, |
| 477 std::vector<PictureLayerImpl::Pair>* layers) const; | 477 bool need_valid_tile_priorities) const; |
| 478 | 478 |
| 479 void SetTopControlsLayoutHeight(float height); | 479 void SetTopControlsLayoutHeight(float height); |
| 480 | 480 |
| 481 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; } | 481 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; } |
| 482 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } | 482 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } |
| 483 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } | 483 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } |
| 484 | 484 |
| 485 // Only valid for synchronous (non-scheduled) single-threaded case. | 485 // Only valid for synchronous (non-scheduled) single-threaded case. |
| 486 void SynchronouslyInitializeAllTiles(); | 486 void SynchronouslyInitializeAllTiles(); |
| 487 | 487 |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 717 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
| 718 | 718 |
| 719 bool requires_high_res_to_draw_; | 719 bool requires_high_res_to_draw_; |
| 720 | 720 |
| 721 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 721 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 722 }; | 722 }; |
| 723 | 723 |
| 724 } // namespace cc | 724 } // namespace cc |
| 725 | 725 |
| 726 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 726 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |