Chromium Code Reviews| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 226 | 226 |
| 227 void SetShouldCheckBackfaceVisibility(bool should_check_backface_visibility) { | 227 void SetShouldCheckBackfaceVisibility(bool should_check_backface_visibility) { |
| 228 should_check_backface_visibility_ = should_check_backface_visibility; | 228 should_check_backface_visibility_ = should_check_backface_visibility; |
| 229 } | 229 } |
| 230 bool should_check_backface_visibility() const { | 230 bool should_check_backface_visibility() const { |
| 231 return should_check_backface_visibility_; | 231 return should_check_backface_visibility_; |
| 232 } | 232 } |
| 233 | 233 |
| 234 bool ShowDebugBorders() const; | 234 bool ShowDebugBorders() const; |
| 235 | 235 |
| 236 // These invalidate the host's render surface layer list. The caller | 236 RenderSurfaceImpl* render_surface() const; |
|
ajuma
2017/02/21 15:16:50
This needs to be renamed since it's no longer a tr
| |
| 237 // is responsible for calling set_needs_update_draw_properties on the tree | |
| 238 // so that its list can be recreated. | |
| 239 void ClearRenderSurfaceLayerList(); | |
| 240 void SetHasRenderSurface(bool has_render_surface); | |
| 241 | |
| 242 RenderSurfaceImpl* render_surface() const { return render_surface_.get(); } | |
| 243 | 237 |
| 244 // The render surface which this layer draws into. This can be either owned by | 238 // The render surface which this layer draws into. This can be either owned by |
| 245 // the same layer or an ancestor of this layer. | 239 // the same layer or an ancestor of this layer. |
| 246 RenderSurfaceImpl* render_target(); | 240 RenderSurfaceImpl* render_target(); |
| 247 const RenderSurfaceImpl* render_target() const; | 241 const RenderSurfaceImpl* render_target() const; |
| 248 | 242 |
| 249 DrawProperties& draw_properties() { return draw_properties_; } | 243 DrawProperties& draw_properties() { return draw_properties_; } |
| 250 const DrawProperties& draw_properties() const { return draw_properties_; } | 244 const DrawProperties& draw_properties() const { return draw_properties_; } |
| 251 | 245 |
| 252 gfx::Transform DrawTransform() const; | 246 gfx::Transform DrawTransform() const; |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 578 bool has_will_change_transform_hint_ : 1; | 572 bool has_will_change_transform_hint_ : 1; |
| 579 bool needs_push_properties_ : 1; | 573 bool needs_push_properties_ : 1; |
| 580 bool scrollbars_hidden_ : 1; | 574 bool scrollbars_hidden_ : 1; |
| 581 | 575 |
| 582 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 576 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 583 }; | 577 }; |
| 584 | 578 |
| 585 } // namespace cc | 579 } // namespace cc |
| 586 | 580 |
| 587 #endif // CC_LAYERS_LAYER_IMPL_H_ | 581 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |