| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "cc/layers/layer_lists.h" | 26 #include "cc/layers/layer_lists.h" |
| 27 #include "cc/layers/render_pass_sink.h" | 27 #include "cc/layers/render_pass_sink.h" |
| 28 #include "cc/output/begin_frame_args.h" | 28 #include "cc/output/begin_frame_args.h" |
| 29 #include "cc/output/managed_memory_policy.h" | 29 #include "cc/output/managed_memory_policy.h" |
| 30 #include "cc/output/output_surface_client.h" | 30 #include "cc/output/output_surface_client.h" |
| 31 #include "cc/output/renderer.h" | 31 #include "cc/output/renderer.h" |
| 32 #include "cc/quads/render_pass.h" | 32 #include "cc/quads/render_pass.h" |
| 33 #include "cc/resources/rasterizer.h" | 33 #include "cc/resources/rasterizer.h" |
| 34 #include "cc/resources/resource_provider.h" | 34 #include "cc/resources/resource_provider.h" |
| 35 #include "cc/resources/tile_manager.h" | 35 #include "cc/resources/tile_manager.h" |
| 36 #include "cc/resources/ui_resource_client.h" |
| 36 #include "cc/scheduler/commit_earlyout_reason.h" | 37 #include "cc/scheduler/commit_earlyout_reason.h" |
| 37 #include "cc/scheduler/draw_result.h" | 38 #include "cc/scheduler/draw_result.h" |
| 39 #include "cc/trees/layer_tree_settings.h" |
| 40 #include "cc/trees/proxy.h" |
| 38 #include "skia/ext/refptr.h" | 41 #include "skia/ext/refptr.h" |
| 39 #include "third_party/skia/include/core/SkColor.h" | 42 #include "third_party/skia/include/core/SkColor.h" |
| 40 #include "ui/gfx/geometry/rect.h" | 43 #include "ui/gfx/geometry/rect.h" |
| 41 | 44 |
| 45 namespace gfx { |
| 46 class ScrollOffset; |
| 47 } |
| 48 |
| 42 namespace cc { | 49 namespace cc { |
| 43 | 50 |
| 44 class CompletionEvent; | 51 class CompletionEvent; |
| 45 class CompositorFrameMetadata; | 52 class CompositorFrameMetadata; |
| 46 class DebugRectHistory; | 53 class DebugRectHistory; |
| 47 class EvictionTilePriorityQueue; | 54 class EvictionTilePriorityQueue; |
| 48 class FrameRateCounter; | 55 class FrameRateCounter; |
| 49 class LayerImpl; | 56 class LayerImpl; |
| 50 class LayerTreeImpl; | 57 class LayerTreeImpl; |
| 51 class MemoryHistory; | 58 class MemoryHistory; |
| 52 class PageScaleAnimation; | 59 class PageScaleAnimation; |
| 53 class PaintTimeCounter; | 60 class PaintTimeCounter; |
| 54 class PictureLayerImpl; | 61 class PictureLayerImpl; |
| 55 class RasterTilePriorityQueue; | 62 class RasterTilePriorityQueue; |
| 56 class TileTaskWorkerPool; | 63 class TileTaskWorkerPool; |
| 57 class RenderPassDrawQuad; | 64 class RenderPassDrawQuad; |
| 58 class RenderingStatsInstrumentation; | 65 class RenderingStatsInstrumentation; |
| 59 class ResourcePool; | 66 class ResourcePool; |
| 60 class ScrollElasticityHelper; | 67 class ScrollElasticityHelper; |
| 61 class ScrollbarLayerImplBase; | 68 class ScrollbarLayerImplBase; |
| 69 class SwapPromise; |
| 70 class SwapPromiseMonitor; |
| 62 class TextureMailboxDeleter; | 71 class TextureMailboxDeleter; |
| 63 class TopControlsManager; | 72 class TopControlsManager; |
| 64 class UIResourceBitmap; | 73 class UIResourceBitmap; |
| 65 class UIResourceRequest; | 74 class UIResourceRequest; |
| 66 struct RendererCapabilitiesImpl; | 75 struct ScrollAndScaleSet; |
| 67 | 76 |
| 68 enum class GpuRasterizationStatus { | 77 enum class GpuRasterizationStatus { |
| 69 ON, | 78 ON, |
| 70 ON_FORCED, | 79 ON_FORCED, |
| 71 OFF_DEVICE, | 80 OFF_DEVICE, |
| 72 OFF_VIEWPORT, | 81 OFF_VIEWPORT, |
| 73 OFF_CONTENT | 82 OFF_CONTENT |
| 74 }; | 83 }; |
| 75 | 84 |
| 76 // LayerTreeHost->Proxy callback interface. | 85 // LayerTreeHost->Proxy callback interface. |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 void StartScrollbarFadeRecursive(LayerImpl* layer); | 595 void StartScrollbarFadeRecursive(LayerImpl* layer); |
| 587 void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy, | 596 void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy, |
| 588 bool zero_budget); | 597 bool zero_budget); |
| 589 void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy); | 598 void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy); |
| 590 | 599 |
| 591 void MarkUIResourceNotEvicted(UIResourceId uid); | 600 void MarkUIResourceNotEvicted(UIResourceId uid); |
| 592 | 601 |
| 593 void NotifySwapPromiseMonitorsOfSetNeedsRedraw(); | 602 void NotifySwapPromiseMonitorsOfSetNeedsRedraw(); |
| 594 void NotifySwapPromiseMonitorsOfForwardingToMainThread(); | 603 void NotifySwapPromiseMonitorsOfForwardingToMainThread(); |
| 595 | 604 |
| 605 void ScrollAnimationCreate(LayerImpl* layer_impl, |
| 606 const gfx::ScrollOffset& target_offset, |
| 607 const gfx::ScrollOffset& current_offset); |
| 608 bool ScrollAnimationUpdateTarget(LayerImpl* layer_impl, |
| 609 const gfx::Vector2dF& scroll_delta); |
| 610 |
| 596 typedef base::hash_map<UIResourceId, UIResourceData> | 611 typedef base::hash_map<UIResourceId, UIResourceData> |
| 597 UIResourceMap; | 612 UIResourceMap; |
| 598 UIResourceMap ui_resource_map_; | 613 UIResourceMap ui_resource_map_; |
| 599 | 614 |
| 600 // Resources that were evicted by EvictAllUIResources. Resources are removed | 615 // Resources that were evicted by EvictAllUIResources. Resources are removed |
| 601 // from this when they are touched by a create or destroy from the UI resource | 616 // from this when they are touched by a create or destroy from the UI resource |
| 602 // request queue. | 617 // request queue. |
| 603 std::set<UIResourceId> evicted_ui_resources_; | 618 std::set<UIResourceId> evicted_ui_resources_; |
| 604 | 619 |
| 605 scoped_ptr<OutputSurface> output_surface_; | 620 scoped_ptr<OutputSurface> output_surface_; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 bool is_likely_to_require_a_draw_; | 740 bool is_likely_to_require_a_draw_; |
| 726 | 741 |
| 727 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 742 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
| 728 | 743 |
| 729 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 744 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 730 }; | 745 }; |
| 731 | 746 |
| 732 } // namespace cc | 747 } // namespace cc |
| 733 | 748 |
| 734 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 749 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |