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_prirority) 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 // When a SwapPromiseMonitor is created on the impl thread, it calls | 465 // When a SwapPromiseMonitor is created on the impl thread, it calls |
459 // InsertSwapPromiseMonitor() to register itself with LayerTreeHostImpl. | 466 // InsertSwapPromiseMonitor() to register itself with LayerTreeHostImpl. |
460 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor() | 467 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor() |
461 // to unregister itself. | 468 // to unregister itself. |
462 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); | 469 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); |
463 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); | 470 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); |
464 | 471 |
465 void RegisterPictureLayerImpl(PictureLayerImpl* layer); | 472 void RegisterPictureLayerImpl(PictureLayerImpl* layer); |
466 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); | 473 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); |
467 | 474 |
| 475 void GetPairedPictureLayers(std::vector<PairedPictureLayer>* layers) const; |
| 476 |
468 protected: | 477 protected: |
469 LayerTreeHostImpl( | 478 LayerTreeHostImpl( |
470 const LayerTreeSettings& settings, | 479 const LayerTreeSettings& settings, |
471 LayerTreeHostImplClient* client, | 480 LayerTreeHostImplClient* client, |
472 Proxy* proxy, | 481 Proxy* proxy, |
473 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 482 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
474 SharedBitmapManager* manager, | 483 SharedBitmapManager* manager, |
475 int id); | 484 int id); |
476 | 485 |
477 gfx::SizeF ComputeInnerViewportContainerSize() const; | 486 gfx::SizeF ComputeInnerViewportContainerSize() const; |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 size_t transfer_buffer_memory_limit_; | 705 size_t transfer_buffer_memory_limit_; |
697 | 706 |
698 std::vector<PictureLayerImpl*> picture_layers_; | 707 std::vector<PictureLayerImpl*> picture_layers_; |
699 | 708 |
700 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 709 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
701 }; | 710 }; |
702 | 711 |
703 } // namespace cc | 712 } // namespace cc |
704 | 713 |
705 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 714 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |