| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 class AnimationHost; | 53 class AnimationHost; |
| 54 class CompletionEvent; | 54 class CompletionEvent; |
| 55 class CompositorFrameMetadata; | 55 class CompositorFrameMetadata; |
| 56 class DebugRectHistory; | 56 class DebugRectHistory; |
| 57 class EvictionTilePriorityQueue; | 57 class EvictionTilePriorityQueue; |
| 58 class FrameRateCounter; | 58 class FrameRateCounter; |
| 59 class LayerImpl; | 59 class LayerImpl; |
| 60 class LayerTreeImpl; | 60 class LayerTreeImpl; |
| 61 class MemoryHistory; | 61 class MemoryHistory; |
| 62 class PageScaleAnimation; | 62 class PageScaleAnimation; |
| 63 class PaintTimeCounter; | |
| 64 class PictureLayerImpl; | 63 class PictureLayerImpl; |
| 65 class RasterTilePriorityQueue; | 64 class RasterTilePriorityQueue; |
| 66 class TileTaskWorkerPool; | 65 class TileTaskWorkerPool; |
| 67 class RenderPassDrawQuad; | 66 class RenderPassDrawQuad; |
| 68 class RenderingStatsInstrumentation; | 67 class RenderingStatsInstrumentation; |
| 69 class ResourcePool; | 68 class ResourcePool; |
| 70 class ScrollElasticityHelper; | 69 class ScrollElasticityHelper; |
| 71 class ScrollbarLayerImplBase; | 70 class ScrollbarLayerImplBase; |
| 72 class SwapPromise; | 71 class SwapPromise; |
| 73 class SwapPromiseMonitor; | 72 class SwapPromiseMonitor; |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 | 456 |
| 458 scoped_ptr<ScrollAndScaleSet> ProcessScrollDeltas(); | 457 scoped_ptr<ScrollAndScaleSet> ProcessScrollDeltas(); |
| 459 | 458 |
| 460 void set_max_memory_needed_bytes(size_t bytes) { | 459 void set_max_memory_needed_bytes(size_t bytes) { |
| 461 max_memory_needed_bytes_ = bytes; | 460 max_memory_needed_bytes_ = bytes; |
| 462 } | 461 } |
| 463 | 462 |
| 464 FrameRateCounter* fps_counter() { | 463 FrameRateCounter* fps_counter() { |
| 465 return fps_counter_.get(); | 464 return fps_counter_.get(); |
| 466 } | 465 } |
| 467 PaintTimeCounter* paint_time_counter() { | |
| 468 return paint_time_counter_.get(); | |
| 469 } | |
| 470 MemoryHistory* memory_history() { | 466 MemoryHistory* memory_history() { |
| 471 return memory_history_.get(); | 467 return memory_history_.get(); |
| 472 } | 468 } |
| 473 DebugRectHistory* debug_rect_history() { | 469 DebugRectHistory* debug_rect_history() { |
| 474 return debug_rect_history_.get(); | 470 return debug_rect_history_.get(); |
| 475 } | 471 } |
| 476 ResourceProvider* resource_provider() { | 472 ResourceProvider* resource_provider() { |
| 477 return resource_provider_.get(); | 473 return resource_provider_.get(); |
| 478 } | 474 } |
| 479 TopControlsManager* top_controls_manager() { | 475 TopControlsManager* top_controls_manager() { |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 gfx::Vector2dF accumulated_root_overscroll_; | 752 gfx::Vector2dF accumulated_root_overscroll_; |
| 757 | 753 |
| 758 bool pinch_gesture_active_; | 754 bool pinch_gesture_active_; |
| 759 bool pinch_gesture_end_should_clear_scrolling_layer_; | 755 bool pinch_gesture_end_should_clear_scrolling_layer_; |
| 760 | 756 |
| 761 scoped_ptr<TopControlsManager> top_controls_manager_; | 757 scoped_ptr<TopControlsManager> top_controls_manager_; |
| 762 | 758 |
| 763 scoped_ptr<PageScaleAnimation> page_scale_animation_; | 759 scoped_ptr<PageScaleAnimation> page_scale_animation_; |
| 764 | 760 |
| 765 scoped_ptr<FrameRateCounter> fps_counter_; | 761 scoped_ptr<FrameRateCounter> fps_counter_; |
| 766 scoped_ptr<PaintTimeCounter> paint_time_counter_; | |
| 767 scoped_ptr<MemoryHistory> memory_history_; | 762 scoped_ptr<MemoryHistory> memory_history_; |
| 768 scoped_ptr<DebugRectHistory> debug_rect_history_; | 763 scoped_ptr<DebugRectHistory> debug_rect_history_; |
| 769 | 764 |
| 770 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; | 765 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; |
| 771 | 766 |
| 772 // The maximum memory that would be used by the prioritized resource | 767 // The maximum memory that would be used by the prioritized resource |
| 773 // manager, if there were no limit on memory usage. | 768 // manager, if there were no limit on memory usage. |
| 774 size_t max_memory_needed_bytes_; | 769 size_t max_memory_needed_bytes_; |
| 775 | 770 |
| 776 // Viewport size passed in from the main thread, in physical pixels. This | 771 // Viewport size passed in from the main thread, in physical pixels. This |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 823 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 818 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
| 824 | 819 |
| 825 scoped_ptr<Viewport> viewport_; | 820 scoped_ptr<Viewport> viewport_; |
| 826 | 821 |
| 827 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 822 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 828 }; | 823 }; |
| 829 | 824 |
| 830 } // namespace cc | 825 } // namespace cc |
| 831 | 826 |
| 832 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 827 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |