OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 class UIResourceRequest; | 49 class UIResourceRequest; |
50 class VideoFrameControllerClient; | 50 class VideoFrameControllerClient; |
51 struct PendingPageScaleAnimation; | 51 struct PendingPageScaleAnimation; |
52 | 52 |
53 typedef std::vector<UIResourceRequest> UIResourceRequestQueue; | 53 typedef std::vector<UIResourceRequest> UIResourceRequestQueue; |
54 typedef SyncedProperty<AdditionGroup<float>> SyncedBrowserControls; | 54 typedef SyncedProperty<AdditionGroup<float>> SyncedBrowserControls; |
55 typedef SyncedProperty<AdditionGroup<gfx::Vector2dF>> SyncedElasticOverscroll; | 55 typedef SyncedProperty<AdditionGroup<gfx::Vector2dF>> SyncedElasticOverscroll; |
56 | 56 |
57 class CC_EXPORT LayerTreeImpl { | 57 class CC_EXPORT LayerTreeImpl { |
58 public: | 58 public: |
59 // This is the number of times a fixed point has to be hit contiuously by a | 59 // This is the number of times a fixed point has to be hit continuously by a |
60 // layer to consider it as jittering. | 60 // layer to consider it as jittering. |
61 enum : int { kFixedPointHitsThreshold = 3 }; | 61 enum : int { kFixedPointHitsThreshold = 3 }; |
62 LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl, | 62 LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl, |
63 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, | 63 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, |
64 scoped_refptr<SyncedBrowserControls> top_controls_shown_ratio, | 64 scoped_refptr<SyncedBrowserControls> top_controls_shown_ratio, |
65 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll); | 65 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll); |
66 virtual ~LayerTreeImpl(); | 66 virtual ~LayerTreeImpl(); |
67 | 67 |
68 void Shutdown(); | 68 void Shutdown(); |
69 void ReleaseResources(); | 69 void ReleaseResources(); |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 | 562 |
563 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 563 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
564 | 564 |
565 private: | 565 private: |
566 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 566 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
567 }; | 567 }; |
568 | 568 |
569 } // namespace cc | 569 } // namespace cc |
570 | 570 |
571 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 571 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |