| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 208 |
| 209 void SetShouldCheckBackfaceVisibility(bool should_check_backface_visibility) { | 209 void SetShouldCheckBackfaceVisibility(bool should_check_backface_visibility) { |
| 210 should_check_backface_visibility_ = should_check_backface_visibility; | 210 should_check_backface_visibility_ = should_check_backface_visibility; |
| 211 } | 211 } |
| 212 bool should_check_backface_visibility() const { | 212 bool should_check_backface_visibility() const { |
| 213 return should_check_backface_visibility_; | 213 return should_check_backface_visibility_; |
| 214 } | 214 } |
| 215 | 215 |
| 216 bool ShowDebugBorders(DebugBorderType type) const; | 216 bool ShowDebugBorders(DebugBorderType type) const; |
| 217 | 217 |
| 218 // TODO(http://crbug.com/557160): Currently SPv2 creates dummy layers for the | |
| 219 // sole purpose of representing a render surface. Once that dependency is | |
| 220 // removed, also remove dummy layers from PaintArtifactCompositor. | |
| 221 RenderSurfaceImpl* GetRenderSurface() const; | |
| 222 | |
| 223 // The render surface which this layer draws into. This can be either owned by | 218 // The render surface which this layer draws into. This can be either owned by |
| 224 // the same layer or an ancestor of this layer. | 219 // the same layer or an ancestor of this layer. |
| 225 RenderSurfaceImpl* render_target(); | 220 RenderSurfaceImpl* render_target(); |
| 226 const RenderSurfaceImpl* render_target() const; | 221 const RenderSurfaceImpl* render_target() const; |
| 227 | 222 |
| 228 DrawProperties& draw_properties() { return draw_properties_; } | 223 DrawProperties& draw_properties() { return draw_properties_; } |
| 229 const DrawProperties& draw_properties() const { return draw_properties_; } | 224 const DrawProperties& draw_properties() const { return draw_properties_; } |
| 230 | 225 |
| 231 gfx::Transform DrawTransform() const; | 226 gfx::Transform DrawTransform() const; |
| 232 gfx::Transform ScreenSpaceTransform() const; | 227 gfx::Transform ScreenSpaceTransform() const; |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 bool needs_show_scrollbars_ : 1; | 557 bool needs_show_scrollbars_ : 1; |
| 563 | 558 |
| 564 bool raster_even_if_not_in_rsll_ : 1; | 559 bool raster_even_if_not_in_rsll_ : 1; |
| 565 | 560 |
| 566 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 561 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 567 }; | 562 }; |
| 568 | 563 |
| 569 } // namespace cc | 564 } // namespace cc |
| 570 | 565 |
| 571 #endif // CC_LAYERS_LAYER_IMPL_H_ | 566 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |