| 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_LAYER_TREE_IMPL_H_ | 5 #ifndef CC_LAYER_TREE_IMPL_H_ |
| 6 #define CC_LAYER_TREE_IMPL_H_ | 6 #define CC_LAYER_TREE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
| 9 #include "cc/layer_impl.h" | 9 #include "cc/layer_impl.h" |
| 10 | 10 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 LayerImpl* RootScrollLayer(); | 95 LayerImpl* RootScrollLayer(); |
| 96 LayerImpl* CurrentlyScrollingLayer(); | 96 LayerImpl* CurrentlyScrollingLayer(); |
| 97 void set_currently_scrolling_layer(LayerImpl* layer) { | 97 void set_currently_scrolling_layer(LayerImpl* layer) { |
| 98 currently_scrolling_layer_ = layer; | 98 currently_scrolling_layer_ = layer; |
| 99 } | 99 } |
| 100 | 100 |
| 101 void ClearCurrentlyScrollingLayer(); | 101 void ClearCurrentlyScrollingLayer(); |
| 102 | 102 |
| 103 void FindRootScrollLayer(); | 103 void FindRootScrollLayer(); |
| 104 void UpdateMaxScrollOffset(); | 104 void UpdateMaxScrollOffset(); |
| 105 void UpdateFixedPositionViewport(); |
| 105 | 106 |
| 106 SkColor background_color() const { return background_color_; } | 107 SkColor background_color() const { return background_color_; } |
| 107 void set_background_color(SkColor color) { background_color_ = color; } | 108 void set_background_color(SkColor color) { background_color_ = color; } |
| 108 | 109 |
| 109 bool has_transparent_background() const { | 110 bool has_transparent_background() const { |
| 110 return has_transparent_background_; | 111 return has_transparent_background_; |
| 111 } | 112 } |
| 112 void set_has_transparent_background(bool transparent) { | 113 void set_has_transparent_background(bool transparent) { |
| 113 has_transparent_background_ = transparent; | 114 has_transparent_background_ = transparent; |
| 114 } | 115 } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 LayerList render_surface_layer_list_; | 167 LayerList render_surface_layer_list_; |
| 167 | 168 |
| 168 bool contents_textures_purged_; | 169 bool contents_textures_purged_; |
| 169 | 170 |
| 170 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 171 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 171 }; | 172 }; |
| 172 | 173 |
| 173 } | 174 } |
| 174 | 175 |
| 175 #endif // CC_LAYER_TREE_IMPL_H_ | 176 #endif // CC_LAYER_TREE_IMPL_H_ |
| OLD | NEW |