Chromium Code Reviews| 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 28 matching lines...) Expand all Loading... | |
| 39 | 39 |
| 40 namespace cc { | 40 namespace cc { |
| 41 | 41 |
| 42 class CompletionEvent; | 42 class CompletionEvent; |
| 43 class CompositorFrameMetadata; | 43 class CompositorFrameMetadata; |
| 44 class DebugRectHistory; | 44 class DebugRectHistory; |
| 45 class EvictionTilePriorityQueue; | 45 class EvictionTilePriorityQueue; |
| 46 class FrameRateCounter; | 46 class FrameRateCounter; |
| 47 class LayerImpl; | 47 class LayerImpl; |
| 48 class LayerTreeImpl; | 48 class LayerTreeImpl; |
| 49 class LayerTreeScrollElasticityClient; | |
|
aelias_OOO_until_Jul13
2014/11/13 02:11:03
obsolete
ccameron
2014/11/13 02:45:57
Done.
| |
| 49 class MemoryHistory; | 50 class MemoryHistory; |
| 50 class PageScaleAnimation; | 51 class PageScaleAnimation; |
| 51 class PaintTimeCounter; | 52 class PaintTimeCounter; |
| 52 class PictureLayerImpl; | 53 class PictureLayerImpl; |
| 53 class RasterTilePriorityQueue; | 54 class RasterTilePriorityQueue; |
| 54 class RasterWorkerPool; | 55 class RasterWorkerPool; |
| 55 class RenderPassDrawQuad; | 56 class RenderPassDrawQuad; |
| 56 class RenderingStatsInstrumentation; | 57 class RenderingStatsInstrumentation; |
| 57 class ResourcePool; | 58 class ResourcePool; |
| 59 class ScrollElasticityHelper; | |
| 58 class ScrollbarLayerImplBase; | 60 class ScrollbarLayerImplBase; |
| 59 class TextureMailboxDeleter; | 61 class TextureMailboxDeleter; |
| 60 class TopControlsManager; | 62 class TopControlsManager; |
| 61 class UIResourceBitmap; | 63 class UIResourceBitmap; |
| 62 class UIResourceRequest; | 64 class UIResourceRequest; |
| 63 struct RendererCapabilitiesImpl; | 65 struct RendererCapabilitiesImpl; |
| 64 | 66 |
| 65 // LayerTreeHost->Proxy callback interface. | 67 // LayerTreeHost->Proxy callback interface. |
| 66 class LayerTreeHostImplClient { | 68 class LayerTreeHostImplClient { |
| 67 public: | 69 public: |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 149 void PinchGestureBegin() override; | 151 void PinchGestureBegin() override; |
| 150 void PinchGestureUpdate(float magnify_delta, | 152 void PinchGestureUpdate(float magnify_delta, |
| 151 const gfx::Point& anchor) override; | 153 const gfx::Point& anchor) override; |
| 152 void PinchGestureEnd() override; | 154 void PinchGestureEnd() override; |
| 153 void SetNeedsAnimate() override; | 155 void SetNeedsAnimate() override; |
| 154 bool IsCurrentlyScrollingLayerAt(const gfx::Point& viewport_point, | 156 bool IsCurrentlyScrollingLayerAt(const gfx::Point& viewport_point, |
| 155 InputHandler::ScrollInputType type) override; | 157 InputHandler::ScrollInputType type) override; |
| 156 bool HaveTouchEventHandlersAt(const gfx::Point& viewport_port) override; | 158 bool HaveTouchEventHandlersAt(const gfx::Point& viewport_port) override; |
| 157 scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( | 159 scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( |
| 158 ui::LatencyInfo* latency) override; | 160 ui::LatencyInfo* latency) override; |
| 161 ScrollElasticityHelper* GetScrollElasticityHelper() override; | |
| 159 | 162 |
| 160 // TopControlsManagerClient implementation. | 163 // TopControlsManagerClient implementation. |
| 161 void SetControlsTopOffset(float offset) override; | 164 void SetControlsTopOffset(float offset) override; |
| 162 float ControlsTopOffset() const override; | 165 float ControlsTopOffset() const override; |
| 163 void DidChangeTopControlsPosition() override; | 166 void DidChangeTopControlsPosition() override; |
| 164 bool HaveRootScrollLayer() const override; | 167 bool HaveRootScrollLayer() const override; |
| 165 | 168 |
| 166 struct CC_EXPORT FrameData : public RenderPassSink { | 169 struct CC_EXPORT FrameData : public RenderPassSink { |
| 167 FrameData(); | 170 FrameData(); |
| 168 ~FrameData() override; | 171 ~FrameData() override; |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 619 scoped_ptr<LayerTreeImpl> recycle_tree_; | 622 scoped_ptr<LayerTreeImpl> recycle_tree_; |
| 620 | 623 |
| 621 InputHandlerClient* input_handler_client_; | 624 InputHandlerClient* input_handler_client_; |
| 622 bool did_lock_scrolling_layer_; | 625 bool did_lock_scrolling_layer_; |
| 623 bool should_bubble_scrolls_; | 626 bool should_bubble_scrolls_; |
| 624 bool wheel_scrolling_; | 627 bool wheel_scrolling_; |
| 625 bool scroll_affects_scroll_handler_; | 628 bool scroll_affects_scroll_handler_; |
| 626 int scroll_layer_id_when_mouse_over_scrollbar_; | 629 int scroll_layer_id_when_mouse_over_scrollbar_; |
| 627 ScopedPtrVector<SwapPromise> swap_promises_for_main_thread_scroll_update_; | 630 ScopedPtrVector<SwapPromise> swap_promises_for_main_thread_scroll_update_; |
| 628 | 631 |
| 632 // An object to implement the ScrollElasticityHelper interface and | |
| 633 // hold all state related to elasticity. May be NULL if never requested. | |
| 634 scoped_ptr<ScrollElasticityHelper> scroll_elasticity_helper_; | |
| 635 | |
| 629 bool tile_priorities_dirty_; | 636 bool tile_priorities_dirty_; |
| 630 | 637 |
| 631 // The optional delegate for the root layer scroll offset. | 638 // The optional delegate for the root layer scroll offset. |
| 632 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; | 639 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; |
| 633 LayerTreeSettings settings_; | 640 LayerTreeSettings settings_; |
| 634 LayerTreeDebugState debug_state_; | 641 LayerTreeDebugState debug_state_; |
| 635 bool visible_; | 642 bool visible_; |
| 636 ManagedMemoryPolicy cached_managed_memory_policy_; | 643 ManagedMemoryPolicy cached_managed_memory_policy_; |
| 637 | 644 |
| 638 gfx::Vector2dF accumulated_root_overscroll_; | 645 gfx::Vector2dF accumulated_root_overscroll_; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 713 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 720 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
| 714 | 721 |
| 715 bool requires_high_res_to_draw_; | 722 bool requires_high_res_to_draw_; |
| 716 | 723 |
| 717 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 724 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 718 }; | 725 }; |
| 719 | 726 |
| 720 } // namespace cc | 727 } // namespace cc |
| 721 | 728 |
| 722 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 729 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |