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 <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 LayerImpl* FindActiveTreeLayerById(int id); | 74 LayerImpl* FindActiveTreeLayerById(int id); |
75 LayerImpl* FindPendingTreeLayerById(int id); | 75 LayerImpl* FindPendingTreeLayerById(int id); |
76 int MaxTextureSize() const; | 76 int MaxTextureSize() const; |
77 bool PinchGestureActive() const; | 77 bool PinchGestureActive() const; |
78 base::TimeTicks CurrentFrameTimeTicks() const; | 78 base::TimeTicks CurrentFrameTimeTicks() const; |
79 base::Time CurrentFrameTime() const; | 79 base::Time CurrentFrameTime() const; |
80 base::TimeTicks CurrentPhysicalTimeTicks() const; | 80 base::TimeTicks CurrentPhysicalTimeTicks() const; |
81 void SetNeedsCommit(); | 81 void SetNeedsCommit(); |
82 gfx::Size DrawViewportSize() const; | 82 gfx::Size DrawViewportSize() const; |
83 void StartScrollbarAnimation(); | 83 void StartScrollbarAnimation(); |
| 84 void DidAnimateScrollOffset(); |
84 | 85 |
85 // Tree specific methods exposed to layer-impl tree. | 86 // Tree specific methods exposed to layer-impl tree. |
86 // --------------------------------------------------------------------------- | 87 // --------------------------------------------------------------------------- |
87 void SetNeedsRedraw(); | 88 void SetNeedsRedraw(); |
88 | 89 |
89 // TODO(nduca): These are implemented in cc files temporarily, but will become | 90 // TODO(nduca): These are implemented in cc files temporarily, but will become |
90 // trivial accessors in a followup patch. | 91 // trivial accessors in a followup patch. |
91 const LayerTreeDebugState& debug_state() const; | 92 const LayerTreeDebugState& debug_state() const; |
92 float device_scale_factor() const; | 93 float device_scale_factor() const; |
93 DebugRectHistory* debug_rect_history() const; | 94 DebugRectHistory* debug_rect_history() const; |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 | 280 |
280 UIResourceRequestQueue ui_resource_request_queue_; | 281 UIResourceRequestQueue ui_resource_request_queue_; |
281 | 282 |
282 private: | 283 private: |
283 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 284 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
284 }; | 285 }; |
285 | 286 |
286 } // namespace cc | 287 } // namespace cc |
287 | 288 |
288 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 289 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |