| 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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); | 474 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); |
| 475 | 475 |
| 476 void RegisterPictureLayerImpl(PictureLayerImpl* layer); | 476 void RegisterPictureLayerImpl(PictureLayerImpl* layer); |
| 477 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); | 477 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); |
| 478 | 478 |
| 479 void GetPictureLayerImplPairs( | 479 void GetPictureLayerImplPairs( |
| 480 std::vector<PictureLayerImpl::Pair>* layers) const; | 480 std::vector<PictureLayerImpl::Pair>* layers) const; |
| 481 | 481 |
| 482 void SetTopControlsLayoutHeight(float height); | 482 void SetTopControlsLayoutHeight(float height); |
| 483 | 483 |
| 484 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; } |
| 485 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } |
| 486 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } |
| 487 |
| 484 protected: | 488 protected: |
| 485 LayerTreeHostImpl( | 489 LayerTreeHostImpl( |
| 486 const LayerTreeSettings& settings, | 490 const LayerTreeSettings& settings, |
| 487 LayerTreeHostImplClient* client, | 491 LayerTreeHostImplClient* client, |
| 488 Proxy* proxy, | 492 Proxy* proxy, |
| 489 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 493 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
| 490 SharedBitmapManager* manager, | 494 SharedBitmapManager* manager, |
| 491 int id); | 495 int id); |
| 492 | 496 |
| 493 void UpdateInnerViewportContainerSize(); | 497 void UpdateInnerViewportContainerSize(); |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 base::Closure tree_activation_callback_; | 700 base::Closure tree_activation_callback_; |
| 697 | 701 |
| 698 SharedBitmapManager* shared_bitmap_manager_; | 702 SharedBitmapManager* shared_bitmap_manager_; |
| 699 int id_; | 703 int id_; |
| 700 | 704 |
| 701 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 705 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 702 | 706 |
| 703 std::vector<PictureLayerImpl*> picture_layers_; | 707 std::vector<PictureLayerImpl*> picture_layers_; |
| 704 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 708 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
| 705 | 709 |
| 710 bool requires_high_res_to_draw_; |
| 711 |
| 706 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 712 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 707 }; | 713 }; |
| 708 | 714 |
| 709 } // namespace cc | 715 } // namespace cc |
| 710 | 716 |
| 711 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 717 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |