| 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 30 matching lines...) Expand all Loading... |
| 41 class CompletionEvent; | 41 class CompletionEvent; |
| 42 class CompositorFrameMetadata; | 42 class CompositorFrameMetadata; |
| 43 class DebugRectHistory; | 43 class DebugRectHistory; |
| 44 class FrameRateCounter; | 44 class FrameRateCounter; |
| 45 class LayerImpl; | 45 class LayerImpl; |
| 46 class LayerTreeHostImplTimeSourceAdapter; | 46 class LayerTreeHostImplTimeSourceAdapter; |
| 47 class LayerTreeImpl; | 47 class LayerTreeImpl; |
| 48 class MemoryHistory; | 48 class MemoryHistory; |
| 49 class PageScaleAnimation; | 49 class PageScaleAnimation; |
| 50 class PaintTimeCounter; | 50 class PaintTimeCounter; |
| 51 class PictureLayerImpl; |
| 51 class RasterWorkerPool; | 52 class RasterWorkerPool; |
| 52 class RenderPassDrawQuad; | 53 class RenderPassDrawQuad; |
| 53 class RenderingStatsInstrumentation; | 54 class RenderingStatsInstrumentation; |
| 54 class ResourcePool; | 55 class ResourcePool; |
| 55 class ScrollbarLayerImplBase; | 56 class ScrollbarLayerImplBase; |
| 56 class TextureMailboxDeleter; | 57 class TextureMailboxDeleter; |
| 57 class TopControlsManager; | 58 class TopControlsManager; |
| 58 class UIResourceBitmap; | 59 class UIResourceBitmap; |
| 59 class UIResourceRequest; | 60 class UIResourceRequest; |
| 60 struct RendererCapabilitiesImpl; | 61 struct RendererCapabilitiesImpl; |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // Viewport size for scrolling and fixed-position compensation. This value | 225 // Viewport size for scrolling and fixed-position compensation. This value |
| 225 // excludes the URL bar and non-overlay scrollbars and is in DIP (and | 226 // excludes the URL bar and non-overlay scrollbars and is in DIP (and |
| 226 // invariant relative to page scale). | 227 // invariant relative to page scale). |
| 227 gfx::SizeF UnscaledScrollableViewportSize() const; | 228 gfx::SizeF UnscaledScrollableViewportSize() const; |
| 228 float VerticalAdjust() const; | 229 float VerticalAdjust() const; |
| 229 | 230 |
| 230 // RendererClient implementation. | 231 // RendererClient implementation. |
| 231 virtual void SetFullRootLayerDamage() OVERRIDE; | 232 virtual void SetFullRootLayerDamage() OVERRIDE; |
| 232 | 233 |
| 233 // TileManagerClient implementation. | 234 // TileManagerClient implementation. |
| 235 virtual const std::vector<PictureLayerImpl*>& GetPictureLayers() OVERRIDE; |
| 234 virtual void NotifyReadyToActivate() OVERRIDE; | 236 virtual void NotifyReadyToActivate() OVERRIDE; |
| 235 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE; | 237 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE; |
| 236 | 238 |
| 237 // ScrollbarAnimationControllerClient implementation. | 239 // ScrollbarAnimationControllerClient implementation. |
| 238 virtual void PostDelayedScrollbarFade(const base::Closure& start_fade, | 240 virtual void PostDelayedScrollbarFade(const base::Closure& start_fade, |
| 239 base::TimeDelta delay) OVERRIDE; | 241 base::TimeDelta delay) OVERRIDE; |
| 240 virtual void SetNeedsScrollbarAnimationFrame() OVERRIDE; | 242 virtual void SetNeedsScrollbarAnimationFrame() OVERRIDE; |
| 241 | 243 |
| 242 // OutputSurfaceClient implementation. | 244 // OutputSurfaceClient implementation. |
| 243 virtual void DeferredInitialize() OVERRIDE; | 245 virtual void DeferredInitialize() OVERRIDE; |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 gfx::Rect DeviceViewport() const; | 452 gfx::Rect DeviceViewport() const; |
| 451 gfx::Rect DeviceClip() const; | 453 gfx::Rect DeviceClip() const; |
| 452 | 454 |
| 453 // When a SwapPromiseMonitor is created on the impl thread, it calls | 455 // When a SwapPromiseMonitor is created on the impl thread, it calls |
| 454 // InsertSwapPromiseMonitor() to register itself with LayerTreeHostImpl. | 456 // InsertSwapPromiseMonitor() to register itself with LayerTreeHostImpl. |
| 455 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor() | 457 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor() |
| 456 // to unregister itself. | 458 // to unregister itself. |
| 457 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); | 459 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); |
| 458 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); | 460 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); |
| 459 | 461 |
| 462 void RegisterPictureLayerImpl(PictureLayerImpl* layer); |
| 463 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); |
| 464 |
| 460 protected: | 465 protected: |
| 461 LayerTreeHostImpl( | 466 LayerTreeHostImpl( |
| 462 const LayerTreeSettings& settings, | 467 const LayerTreeSettings& settings, |
| 463 LayerTreeHostImplClient* client, | 468 LayerTreeHostImplClient* client, |
| 464 Proxy* proxy, | 469 Proxy* proxy, |
| 465 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 470 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
| 466 SharedBitmapManager* manager, | 471 SharedBitmapManager* manager, |
| 467 int id); | 472 int id); |
| 468 | 473 |
| 469 gfx::SizeF ComputeInnerViewportContainerSize() const; | 474 gfx::SizeF ComputeInnerViewportContainerSize() const; |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 // Optional callback to notify of new tree activations. | 680 // Optional callback to notify of new tree activations. |
| 676 base::Closure tree_activation_callback_; | 681 base::Closure tree_activation_callback_; |
| 677 | 682 |
| 678 SharedBitmapManager* shared_bitmap_manager_; | 683 SharedBitmapManager* shared_bitmap_manager_; |
| 679 int id_; | 684 int id_; |
| 680 | 685 |
| 681 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 686 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 682 | 687 |
| 683 size_t transfer_buffer_memory_limit_; | 688 size_t transfer_buffer_memory_limit_; |
| 684 | 689 |
| 690 std::vector<PictureLayerImpl*> picture_layers_; |
| 691 |
| 685 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 692 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 686 }; | 693 }; |
| 687 | 694 |
| 688 } // namespace cc | 695 } // namespace cc |
| 689 | 696 |
| 690 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 697 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |