OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_LAYERS_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 return use_parent_backface_visibility_; | 268 return use_parent_backface_visibility_; |
269 } | 269 } |
270 | 270 |
271 bool ShowDebugBorders() const; | 271 bool ShowDebugBorders() const; |
272 | 272 |
273 // These invalidate the host's render surface layer list. The caller | 273 // These invalidate the host's render surface layer list. The caller |
274 // is responsible for calling set_needs_update_draw_properties on the tree | 274 // is responsible for calling set_needs_update_draw_properties on the tree |
275 // so that its list can be recreated. | 275 // so that its list can be recreated. |
276 void CreateRenderSurface(); | 276 void CreateRenderSurface(); |
277 void ClearRenderSurface(); | 277 void ClearRenderSurface(); |
| 278 void ClearRenderSurfaceLayerList(); |
278 | 279 |
279 DrawProperties<LayerImpl>& draw_properties() { | 280 DrawProperties<LayerImpl>& draw_properties() { |
280 return draw_properties_; | 281 return draw_properties_; |
281 } | 282 } |
282 const DrawProperties<LayerImpl>& draw_properties() const { | 283 const DrawProperties<LayerImpl>& draw_properties() const { |
283 return draw_properties_; | 284 return draw_properties_; |
284 } | 285 } |
285 | 286 |
286 // The following are shortcut accessors to get various information from | 287 // The following are shortcut accessors to get various information from |
287 // draw_properties_ | 288 // draw_properties_ |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 DrawProperties<LayerImpl> draw_properties_; | 674 DrawProperties<LayerImpl> draw_properties_; |
674 | 675 |
675 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 676 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
676 | 677 |
677 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 678 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
678 }; | 679 }; |
679 | 680 |
680 } // namespace cc | 681 } // namespace cc |
681 | 682 |
682 #endif // CC_LAYERS_LAYER_IMPL_H_ | 683 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |