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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 SkColor background_color() const { return background_color_; } | 106 SkColor background_color() const { return background_color_; } |
107 void set_background_color(SkColor color) { background_color_ = color; } | 107 void set_background_color(SkColor color) { background_color_ = color; } |
108 | 108 |
109 bool has_transparent_background() const { | 109 bool has_transparent_background() const { |
110 return has_transparent_background_; | 110 return has_transparent_background_; |
111 } | 111 } |
112 void set_has_transparent_background(bool transparent) { | 112 void set_has_transparent_background(bool transparent) { |
113 has_transparent_background_ = transparent; | 113 has_transparent_background_ = transparent; |
114 } | 114 } |
115 | 115 |
| 116 enum UpdateDrawPropertiesReason { |
| 117 UPDATE_PENDING_TREE, |
| 118 UPDATE_ACTIVE_TREE, |
| 119 UPDATE_ACTIVE_TREE_FOR_DRAW |
| 120 }; |
| 121 |
116 // Updates draw properties and render surface layer list | 122 // Updates draw properties and render surface layer list |
117 void UpdateDrawProperties(); | 123 void UpdateDrawProperties(UpdateDrawPropertiesReason reason); |
118 void set_needs_update_draw_properties() { | 124 void set_needs_update_draw_properties() { |
119 needs_update_draw_properties_ = true; | 125 needs_update_draw_properties_ = true; |
120 } | 126 } |
121 bool needs_update_draw_properties() const { | 127 bool needs_update_draw_properties() const { |
122 return needs_update_draw_properties_; | 128 return needs_update_draw_properties_; |
123 } | 129 } |
124 | 130 |
125 void ClearRenderSurfaces(); | 131 void ClearRenderSurfaces(); |
126 | 132 |
127 bool AreVisibleResourcesReady() const; | 133 bool AreVisibleResourcesReady() const; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 179 |
174 bool contents_textures_purged_; | 180 bool contents_textures_purged_; |
175 bool needs_update_draw_properties_; | 181 bool needs_update_draw_properties_; |
176 | 182 |
177 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 183 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
178 }; | 184 }; |
179 | 185 |
180 } | 186 } |
181 | 187 |
182 #endif // CC_LAYER_TREE_IMPL_H_ | 188 #endif // CC_LAYER_TREE_IMPL_H_ |
OLD | NEW |