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 <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 gfx::Rect DeviceViewport() const; | 96 gfx::Rect DeviceViewport() const; |
97 gfx::Size DrawViewportSize() const; | 97 gfx::Size DrawViewportSize() const; |
98 const gfx::Rect ViewportRectForTilePriority() const; | 98 const gfx::Rect ViewportRectForTilePriority() const; |
99 scoped_ptr<ScrollbarAnimationController> CreateScrollbarAnimationController( | 99 scoped_ptr<ScrollbarAnimationController> CreateScrollbarAnimationController( |
100 LayerImpl* scrolling_layer); | 100 LayerImpl* scrolling_layer); |
101 void DidAnimateScrollOffset(); | 101 void DidAnimateScrollOffset(); |
102 void InputScrollAnimationFinished(); | 102 void InputScrollAnimationFinished(); |
103 bool use_gpu_rasterization() const; | 103 bool use_gpu_rasterization() const; |
104 bool create_low_res_tiling() const; | 104 bool create_low_res_tiling() const; |
105 BlockingTaskRunner* BlockingMainThreadTaskRunner() const; | 105 BlockingTaskRunner* BlockingMainThreadTaskRunner() const; |
| 106 bool SmoothnessTakesPriority() const; |
106 | 107 |
107 // Tree specific methods exposed to layer-impl tree. | 108 // Tree specific methods exposed to layer-impl tree. |
108 // --------------------------------------------------------------------------- | 109 // --------------------------------------------------------------------------- |
109 void SetNeedsRedraw(); | 110 void SetNeedsRedraw(); |
110 | 111 |
111 // TODO(nduca): These are implemented in cc files temporarily, but will become | 112 // TODO(nduca): These are implemented in cc files temporarily, but will become |
112 // trivial accessors in a followup patch. | 113 // trivial accessors in a followup patch. |
113 const LayerTreeDebugState& debug_state() const; | 114 const LayerTreeDebugState& debug_state() const; |
114 float device_scale_factor() const; | 115 float device_scale_factor() const; |
115 DebugRectHistory* debug_rect_history() const; | 116 DebugRectHistory* debug_rect_history() const; |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 | 403 |
403 scoped_ptr<PageScaleAnimation> page_scale_animation_; | 404 scoped_ptr<PageScaleAnimation> page_scale_animation_; |
404 | 405 |
405 private: | 406 private: |
406 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 407 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
407 }; | 408 }; |
408 | 409 |
409 } // namespace cc | 410 } // namespace cc |
410 | 411 |
411 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 412 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |