| 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 23 matching lines...) Expand all Loading... |
| 34 #include "cc/scheduler/draw_result.h" | 34 #include "cc/scheduler/draw_result.h" |
| 35 #include "skia/ext/refptr.h" | 35 #include "skia/ext/refptr.h" |
| 36 #include "third_party/skia/include/core/SkColor.h" | 36 #include "third_party/skia/include/core/SkColor.h" |
| 37 #include "ui/gfx/rect.h" | 37 #include "ui/gfx/rect.h" |
| 38 | 38 |
| 39 namespace cc { | 39 namespace cc { |
| 40 | 40 |
| 41 class CompletionEvent; | 41 class CompletionEvent; |
| 42 class CompositorFrameMetadata; | 42 class CompositorFrameMetadata; |
| 43 class DebugRectHistory; | 43 class DebugRectHistory; |
| 44 class EvictionTilePriorityQueue; |
| 44 class FrameRateCounter; | 45 class FrameRateCounter; |
| 45 class LayerImpl; | 46 class LayerImpl; |
| 46 class LayerTreeHostImplTimeSourceAdapter; | 47 class LayerTreeHostImplTimeSourceAdapter; |
| 47 class LayerTreeImpl; | 48 class LayerTreeImpl; |
| 48 class MemoryHistory; | 49 class MemoryHistory; |
| 49 class PageScaleAnimation; | 50 class PageScaleAnimation; |
| 50 class PaintTimeCounter; | 51 class PaintTimeCounter; |
| 51 class PictureLayerImpl; | 52 class PictureLayerImpl; |
| 53 class RasterTilePriorityQueue; |
| 52 class RasterWorkerPool; | 54 class RasterWorkerPool; |
| 53 class RenderPassDrawQuad; | 55 class RenderPassDrawQuad; |
| 54 class RenderingStatsInstrumentation; | 56 class RenderingStatsInstrumentation; |
| 55 class ResourcePool; | 57 class ResourcePool; |
| 56 class ScrollbarLayerImplBase; | 58 class ScrollbarLayerImplBase; |
| 57 class TextureMailboxDeleter; | 59 class TextureMailboxDeleter; |
| 58 class TopControlsManager; | 60 class TopControlsManager; |
| 59 class UIResourceBitmap; | 61 class UIResourceBitmap; |
| 60 class UIResourceRequest; | 62 class UIResourceRequest; |
| 61 struct RendererCapabilitiesImpl; | 63 struct RendererCapabilitiesImpl; |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 // excludes the URL bar and non-overlay scrollbars and is in DIP (and | 228 // excludes the URL bar and non-overlay scrollbars and is in DIP (and |
| 227 // invariant relative to page scale). | 229 // invariant relative to page scale). |
| 228 gfx::SizeF UnscaledScrollableViewportSize() const; | 230 gfx::SizeF UnscaledScrollableViewportSize() const; |
| 229 float VerticalAdjust() const; | 231 float VerticalAdjust() const; |
| 230 | 232 |
| 231 // RendererClient implementation. | 233 // RendererClient implementation. |
| 232 virtual void SetFullRootLayerDamage() OVERRIDE; | 234 virtual void SetFullRootLayerDamage() OVERRIDE; |
| 233 virtual void RunOnDemandRasterTask(Task* on_demand_raster_task) OVERRIDE; | 235 virtual void RunOnDemandRasterTask(Task* on_demand_raster_task) OVERRIDE; |
| 234 | 236 |
| 235 // TileManagerClient implementation. | 237 // TileManagerClient implementation. |
| 236 virtual const std::vector<PictureLayerImpl*>& GetPictureLayers() OVERRIDE; | 238 virtual const std::vector<PictureLayerImpl*>& GetPictureLayers() |
| 239 const OVERRIDE; |
| 237 virtual void NotifyReadyToActivate() OVERRIDE; | 240 virtual void NotifyReadyToActivate() OVERRIDE; |
| 238 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE; | 241 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE; |
| 242 virtual void BuildRasterQueue(RasterTilePriorityQueue* queue, |
| 243 TreePriority tree_priority) OVERRIDE; |
| 244 virtual void BuildEvictionQueue(EvictionTilePriorityQueue* queue, |
| 245 TreePriority tree_priority) OVERRIDE; |
| 239 | 246 |
| 240 // ScrollbarAnimationControllerClient implementation. | 247 // ScrollbarAnimationControllerClient implementation. |
| 241 virtual void PostDelayedScrollbarFade(const base::Closure& start_fade, | 248 virtual void PostDelayedScrollbarFade(const base::Closure& start_fade, |
| 242 base::TimeDelta delay) OVERRIDE; | 249 base::TimeDelta delay) OVERRIDE; |
| 243 virtual void SetNeedsScrollbarAnimationFrame() OVERRIDE; | 250 virtual void SetNeedsScrollbarAnimationFrame() OVERRIDE; |
| 244 | 251 |
| 245 // OutputSurfaceClient implementation. | 252 // OutputSurfaceClient implementation. |
| 246 virtual void DeferredInitialize() OVERRIDE; | 253 virtual void DeferredInitialize() OVERRIDE; |
| 247 virtual void ReleaseGL() OVERRIDE; | 254 virtual void ReleaseGL() OVERRIDE; |
| 248 virtual void CommitVSyncParameters(base::TimeTicks timebase, | 255 virtual void CommitVSyncParameters(base::TimeTicks timebase, |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 // When a SwapPromiseMonitor is created on the impl thread, it calls | 463 // When a SwapPromiseMonitor is created on the impl thread, it calls |
| 457 // InsertSwapPromiseMonitor() to register itself with LayerTreeHostImpl. | 464 // InsertSwapPromiseMonitor() to register itself with LayerTreeHostImpl. |
| 458 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor() | 465 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor() |
| 459 // to unregister itself. | 466 // to unregister itself. |
| 460 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); | 467 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); |
| 461 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); | 468 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); |
| 462 | 469 |
| 463 void RegisterPictureLayerImpl(PictureLayerImpl* layer); | 470 void RegisterPictureLayerImpl(PictureLayerImpl* layer); |
| 464 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); | 471 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); |
| 465 | 472 |
| 473 void GetPairedPictureLayers(std::vector<PairedPictureLayer>* layers) const; |
| 474 |
| 466 protected: | 475 protected: |
| 467 LayerTreeHostImpl( | 476 LayerTreeHostImpl( |
| 468 const LayerTreeSettings& settings, | 477 const LayerTreeSettings& settings, |
| 469 LayerTreeHostImplClient* client, | 478 LayerTreeHostImplClient* client, |
| 470 Proxy* proxy, | 479 Proxy* proxy, |
| 471 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 480 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
| 472 SharedBitmapManager* manager, | 481 SharedBitmapManager* manager, |
| 473 int id); | 482 int id); |
| 474 | 483 |
| 475 gfx::SizeF ComputeInnerViewportContainerSize() const; | 484 gfx::SizeF ComputeInnerViewportContainerSize() const; |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 size_t transfer_buffer_memory_limit_; | 699 size_t transfer_buffer_memory_limit_; |
| 691 | 700 |
| 692 std::vector<PictureLayerImpl*> picture_layers_; | 701 std::vector<PictureLayerImpl*> picture_layers_; |
| 693 | 702 |
| 694 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 703 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 695 }; | 704 }; |
| 696 | 705 |
| 697 } // namespace cc | 706 } // namespace cc |
| 698 | 707 |
| 699 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 708 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |