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 22 matching lines...) Expand all Loading... |
33 #include "cc/scheduler/draw_swap_readback_result.h" | 33 #include "cc/scheduler/draw_swap_readback_result.h" |
34 #include "skia/ext/refptr.h" | 34 #include "skia/ext/refptr.h" |
35 #include "third_party/skia/include/core/SkColor.h" | 35 #include "third_party/skia/include/core/SkColor.h" |
36 #include "ui/gfx/rect.h" | 36 #include "ui/gfx/rect.h" |
37 | 37 |
38 namespace cc { | 38 namespace cc { |
39 | 39 |
40 class CompletionEvent; | 40 class CompletionEvent; |
41 class CompositorFrameMetadata; | 41 class CompositorFrameMetadata; |
42 class DebugRectHistory; | 42 class DebugRectHistory; |
43 class DirectRasterWorkerPool; | |
44 class FrameRateCounter; | 43 class FrameRateCounter; |
45 class ImageRasterWorkerPool; | |
46 class LayerImpl; | 44 class LayerImpl; |
47 class LayerTreeHostImplTimeSourceAdapter; | 45 class LayerTreeHostImplTimeSourceAdapter; |
48 class LayerTreeImpl; | 46 class LayerTreeImpl; |
49 class MemoryHistory; | 47 class MemoryHistory; |
50 class PageScaleAnimation; | 48 class PageScaleAnimation; |
51 class PaintTimeCounter; | 49 class PaintTimeCounter; |
52 class PixelBufferRasterWorkerPool; | 50 class RasterWorkerPool; |
53 class RenderPassDrawQuad; | 51 class RenderPassDrawQuad; |
54 class RenderingStatsInstrumentation; | 52 class RenderingStatsInstrumentation; |
55 class ScrollbarLayerImplBase; | 53 class ScrollbarLayerImplBase; |
56 class TextureMailboxDeleter; | 54 class TextureMailboxDeleter; |
57 class TopControlsManager; | 55 class TopControlsManager; |
58 class UIResourceBitmap; | 56 class UIResourceBitmap; |
59 class UIResourceRequest; | 57 class UIResourceRequest; |
60 struct RendererCapabilitiesImpl; | 58 struct RendererCapabilitiesImpl; |
61 | 59 |
62 // LayerTreeHost->Proxy callback interface. | 60 // LayerTreeHost->Proxy callback interface. |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 // request queue. | 531 // request queue. |
534 std::set<UIResourceId> evicted_ui_resources_; | 532 std::set<UIResourceId> evicted_ui_resources_; |
535 | 533 |
536 scoped_ptr<OutputSurface> output_surface_; | 534 scoped_ptr<OutputSurface> output_surface_; |
537 scoped_refptr<ContextProvider> offscreen_context_provider_; | 535 scoped_refptr<ContextProvider> offscreen_context_provider_; |
538 | 536 |
539 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile- | 537 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile- |
540 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice(). | 538 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice(). |
541 scoped_ptr<ResourceProvider> resource_provider_; | 539 scoped_ptr<ResourceProvider> resource_provider_; |
542 scoped_ptr<TileManager> tile_manager_; | 540 scoped_ptr<TileManager> tile_manager_; |
543 scoped_ptr<ImageRasterWorkerPool> image_raster_worker_pool_; | 541 scoped_ptr<RasterWorkerPool> raster_worker_pool_; |
544 scoped_ptr<PixelBufferRasterWorkerPool> pixel_buffer_raster_worker_pool_; | 542 scoped_ptr<RasterWorkerPool> direct_raster_worker_pool_; |
545 scoped_ptr<DirectRasterWorkerPool> direct_raster_worker_pool_; | |
546 scoped_ptr<Renderer> renderer_; | 543 scoped_ptr<Renderer> renderer_; |
547 | 544 |
548 GlobalStateThatImpactsTilePriority global_tile_state_; | 545 GlobalStateThatImpactsTilePriority global_tile_state_; |
549 | 546 |
550 // Tree currently being drawn. | 547 // Tree currently being drawn. |
551 scoped_ptr<LayerTreeImpl> active_tree_; | 548 scoped_ptr<LayerTreeImpl> active_tree_; |
552 | 549 |
553 // In impl-side painting mode, tree with possibly incomplete rasterized | 550 // In impl-side painting mode, tree with possibly incomplete rasterized |
554 // content. May be promoted to active by ActivatePendingTree(). | 551 // content. May be promoted to active by ActivatePendingTree(). |
555 scoped_ptr<LayerTreeImpl> pending_tree_; | 552 scoped_ptr<LayerTreeImpl> pending_tree_; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 int id_; | 655 int id_; |
659 | 656 |
660 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 657 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
661 | 658 |
662 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 659 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
663 }; | 660 }; |
664 | 661 |
665 } // namespace cc | 662 } // namespace cc |
666 | 663 |
667 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 664 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |