| 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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 // When a SwapPromiseMonitor is created on the impl thread, it calls | 455 // When a SwapPromiseMonitor is created on the impl thread, it calls |
| 456 // InsertSwapPromiseMonitor() to register itself with LayerTreeHostImpl. | 456 // InsertSwapPromiseMonitor() to register itself with LayerTreeHostImpl. |
| 457 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor() | 457 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor() |
| 458 // to unregister itself. | 458 // to unregister itself. |
| 459 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); | 459 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); |
| 460 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); | 460 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); |
| 461 | 461 |
| 462 void RegisterPictureLayerImpl(PictureLayerImpl* layer); | 462 void RegisterPictureLayerImpl(PictureLayerImpl* layer); |
| 463 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); | 463 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); |
| 464 | 464 |
| 465 RenderingStatsInstrumentation* rendering_stats_instrumentation() const { |
| 466 return rendering_stats_instrumentation_; |
| 467 } |
| 468 |
| 465 protected: | 469 protected: |
| 466 LayerTreeHostImpl( | 470 LayerTreeHostImpl( |
| 467 const LayerTreeSettings& settings, | 471 const LayerTreeSettings& settings, |
| 468 LayerTreeHostImplClient* client, | 472 LayerTreeHostImplClient* client, |
| 469 Proxy* proxy, | 473 Proxy* proxy, |
| 470 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 474 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
| 471 SharedBitmapManager* manager, | 475 SharedBitmapManager* manager, |
| 472 int id); | 476 int id); |
| 473 | 477 |
| 474 gfx::SizeF ComputeInnerViewportContainerSize() const; | 478 gfx::SizeF ComputeInnerViewportContainerSize() const; |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 size_t transfer_buffer_memory_limit_; | 693 size_t transfer_buffer_memory_limit_; |
| 690 | 694 |
| 691 std::vector<PictureLayerImpl*> picture_layers_; | 695 std::vector<PictureLayerImpl*> picture_layers_; |
| 692 | 696 |
| 693 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 697 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 694 }; | 698 }; |
| 695 | 699 |
| 696 } // namespace cc | 700 } // namespace cc |
| 697 | 701 |
| 698 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 702 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |