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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 void SetNeedsCommit(); | 95 void SetNeedsCommit(); |
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 | 106 |
106 // Tree specific methods exposed to layer-impl tree. | 107 // Tree specific methods exposed to layer-impl tree. |
107 // --------------------------------------------------------------------------- | 108 // --------------------------------------------------------------------------- |
108 void SetNeedsRedraw(); | 109 void SetNeedsRedraw(); |
109 | 110 |
110 // TODO(nduca): These are implemented in cc files temporarily, but will become | 111 // TODO(nduca): These are implemented in cc files temporarily, but will become |
111 // trivial accessors in a followup patch. | 112 // trivial accessors in a followup patch. |
112 const LayerTreeDebugState& debug_state() const; | 113 const LayerTreeDebugState& debug_state() const; |
113 float device_scale_factor() const; | 114 float device_scale_factor() const; |
114 DebugRectHistory* debug_rect_history() const; | 115 DebugRectHistory* debug_rect_history() const; |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 | 353 |
353 int render_surface_layer_list_id_; | 354 int render_surface_layer_list_id_; |
354 | 355 |
355 private: | 356 private: |
356 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 357 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
357 }; | 358 }; |
358 | 359 |
359 } // namespace cc | 360 } // namespace cc |
360 | 361 |
361 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 362 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |