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> |
| 11 #include <utility> |
11 #include <vector> | 12 #include <vector> |
12 | 13 |
13 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
14 #include "base/containers/hash_tables.h" | 15 #include "base/containers/hash_tables.h" |
15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
16 #include "base/time/time.h" | 17 #include "base/time/time.h" |
17 #include "cc/animation/animation_events.h" | 18 #include "cc/animation/animation_events.h" |
18 #include "cc/animation/animation_registrar.h" | 19 #include "cc/animation/animation_registrar.h" |
19 #include "cc/animation/scrollbar_animation_controller.h" | 20 #include "cc/animation/scrollbar_animation_controller.h" |
20 #include "cc/base/cc_export.h" | 21 #include "cc/base/cc_export.h" |
(...skipping 28 matching lines...) Expand all Loading... |
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; |
58 class ScrollbarLayerImplBase; | 59 class ScrollbarLayerImplBase; |
| 60 class SmoothnessTimingTracker; |
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: |
68 virtual void UpdateRendererCapabilitiesOnImplThread() = 0; | 70 virtual void UpdateRendererCapabilitiesOnImplThread() = 0; |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 return !animation_registrar_->active_animation_controllers().empty(); | 361 return !animation_registrar_->active_animation_controllers().empty(); |
360 } | 362 } |
361 | 363 |
362 void set_max_memory_needed_bytes(size_t bytes) { | 364 void set_max_memory_needed_bytes(size_t bytes) { |
363 max_memory_needed_bytes_ = bytes; | 365 max_memory_needed_bytes_ = bytes; |
364 } | 366 } |
365 | 367 |
366 FrameRateCounter* fps_counter() { | 368 FrameRateCounter* fps_counter() { |
367 return fps_counter_.get(); | 369 return fps_counter_.get(); |
368 } | 370 } |
| 371 SmoothnessTimingTracker* smoothness_tracker() { |
| 372 return smoothness_tracker_.get(); |
| 373 } |
369 PaintTimeCounter* paint_time_counter() { | 374 PaintTimeCounter* paint_time_counter() { |
370 return paint_time_counter_.get(); | 375 return paint_time_counter_.get(); |
371 } | 376 } |
372 MemoryHistory* memory_history() { | 377 MemoryHistory* memory_history() { |
373 return memory_history_.get(); | 378 return memory_history_.get(); |
374 } | 379 } |
375 DebugRectHistory* debug_rect_history() { | 380 DebugRectHistory* debug_rect_history() { |
376 return debug_rect_history_.get(); | 381 return debug_rect_history_.get(); |
377 } | 382 } |
378 ResourceProvider* resource_provider() { | 383 ResourceProvider* resource_provider() { |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 gfx::Point previous_pinch_anchor_; | 635 gfx::Point previous_pinch_anchor_; |
631 | 636 |
632 scoped_ptr<TopControlsManager> top_controls_manager_; | 637 scoped_ptr<TopControlsManager> top_controls_manager_; |
633 | 638 |
634 scoped_ptr<PageScaleAnimation> page_scale_animation_; | 639 scoped_ptr<PageScaleAnimation> page_scale_animation_; |
635 | 640 |
636 // This is used for ticking animations slowly when hidden. | 641 // This is used for ticking animations slowly when hidden. |
637 scoped_ptr<LayerTreeHostImplTimeSourceAdapter> time_source_client_adapter_; | 642 scoped_ptr<LayerTreeHostImplTimeSourceAdapter> time_source_client_adapter_; |
638 | 643 |
639 scoped_ptr<FrameRateCounter> fps_counter_; | 644 scoped_ptr<FrameRateCounter> fps_counter_; |
| 645 scoped_ptr<SmoothnessTimingTracker> smoothness_tracker_; |
640 scoped_ptr<PaintTimeCounter> paint_time_counter_; | 646 scoped_ptr<PaintTimeCounter> paint_time_counter_; |
641 scoped_ptr<MemoryHistory> memory_history_; | 647 scoped_ptr<MemoryHistory> memory_history_; |
642 scoped_ptr<DebugRectHistory> debug_rect_history_; | 648 scoped_ptr<DebugRectHistory> debug_rect_history_; |
643 | 649 |
| 650 std::vector<std::pair<int, int64_t> > uncommitted_composite_ids_; |
| 651 |
644 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; | 652 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; |
645 | 653 |
646 // The maximum memory that would be used by the prioritized resource | 654 // The maximum memory that would be used by the prioritized resource |
647 // manager, if there were no limit on memory usage. | 655 // manager, if there were no limit on memory usage. |
648 size_t max_memory_needed_bytes_; | 656 size_t max_memory_needed_bytes_; |
649 | 657 |
650 bool zero_budget_; | 658 bool zero_budget_; |
651 | 659 |
652 // Viewport size passed in from the main thread, in physical pixels. This | 660 // Viewport size passed in from the main thread, in physical pixels. This |
653 // value is the default size for all concepts of physical viewport (draw | 661 // value is the default size for all concepts of physical viewport (draw |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 | 710 |
703 std::vector<PictureLayerImpl*> picture_layers_; | 711 std::vector<PictureLayerImpl*> picture_layers_; |
704 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 712 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
705 | 713 |
706 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 714 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
707 }; | 715 }; |
708 | 716 |
709 } // namespace cc | 717 } // namespace cc |
710 | 718 |
711 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 719 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |