| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 } | 102 } |
| 103 | 103 |
| 104 LayerImpl* RootScrollLayer() const; | 104 LayerImpl* RootScrollLayer() const; |
| 105 LayerImpl* RootClipLayer() const; | 105 LayerImpl* RootClipLayer() const; |
| 106 LayerImpl* CurrentlyScrollingLayer() const; | 106 LayerImpl* CurrentlyScrollingLayer() const; |
| 107 void SetCurrentlyScrollingLayer(LayerImpl* layer); | 107 void SetCurrentlyScrollingLayer(LayerImpl* layer); |
| 108 void ClearCurrentlyScrollingLayer(); | 108 void ClearCurrentlyScrollingLayer(); |
| 109 | 109 |
| 110 void FindRootScrollLayer(); | 110 void FindRootScrollLayer(); |
| 111 void UpdateMaxScrollOffset(); | 111 void UpdateMaxScrollOffset(); |
| 112 void ApplySentScrollAndScaleDeltas(); |
| 112 | 113 |
| 113 SkColor background_color() const { return background_color_; } | 114 SkColor background_color() const { return background_color_; } |
| 114 void set_background_color(SkColor color) { background_color_ = color; } | 115 void set_background_color(SkColor color) { background_color_ = color; } |
| 115 | 116 |
| 116 bool has_transparent_background() const { | 117 bool has_transparent_background() const { |
| 117 return has_transparent_background_; | 118 return has_transparent_background_; |
| 118 } | 119 } |
| 119 void set_has_transparent_background(bool transparent) { | 120 void set_has_transparent_background(bool transparent) { |
| 120 has_transparent_background_ = transparent; | 121 has_transparent_background_ = transparent; |
| 121 } | 122 } |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 240 |
| 240 ui::LatencyInfo latency_info_; | 241 ui::LatencyInfo latency_info_; |
| 241 | 242 |
| 242 private: | 243 private: |
| 243 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 244 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 244 }; | 245 }; |
| 245 | 246 |
| 246 } // namespace cc | 247 } // namespace cc |
| 247 | 248 |
| 248 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 249 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |