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