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 |
11 #include <map> | 11 #include <map> |
12 #include <memory> | 12 #include <memory> |
13 #include <set> | 13 #include <set> |
14 #include <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/memory/ptr_util.h" | 19 #include "base/memory/ptr_util.h" |
20 #include "base/values.h" | 20 #include "base/values.h" |
21 #include "cc/base/region.h" | 21 #include "cc/base/region.h" |
22 #include "cc/base/synced_property.h" | 22 #include "cc/base/synced_property.h" |
23 #include "cc/cc_export.h" | 23 #include "cc/cc_export.h" |
| 24 #include "cc/debug/layer_tree_debug_state.h" |
24 #include "cc/input/input_handler.h" | 25 #include "cc/input/input_handler.h" |
25 #include "cc/layers/draw_properties.h" | 26 #include "cc/layers/draw_properties.h" |
26 #include "cc/layers/layer_collections.h" | 27 #include "cc/layers/layer_collections.h" |
27 #include "cc/layers/layer_impl_test_properties.h" | 28 #include "cc/layers/layer_impl_test_properties.h" |
28 #include "cc/layers/layer_position_constraint.h" | 29 #include "cc/layers/layer_position_constraint.h" |
29 #include "cc/layers/performance_properties.h" | 30 #include "cc/layers/performance_properties.h" |
30 #include "cc/layers/render_surface_impl.h" | 31 #include "cc/layers/render_surface_impl.h" |
31 #include "cc/quads/shared_quad_state.h" | 32 #include "cc/quads/shared_quad_state.h" |
32 #include "cc/resources/resource_provider.h" | 33 #include "cc/resources/resource_provider.h" |
33 #include "cc/tiles/tile_priority.h" | 34 #include "cc/tiles/tile_priority.h" |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 return use_local_transform_for_backface_visibility_; | 211 return use_local_transform_for_backface_visibility_; |
211 } | 212 } |
212 | 213 |
213 void SetShouldCheckBackfaceVisibility(bool should_check_backface_visibility) { | 214 void SetShouldCheckBackfaceVisibility(bool should_check_backface_visibility) { |
214 should_check_backface_visibility_ = should_check_backface_visibility; | 215 should_check_backface_visibility_ = should_check_backface_visibility; |
215 } | 216 } |
216 bool should_check_backface_visibility() const { | 217 bool should_check_backface_visibility() const { |
217 return should_check_backface_visibility_; | 218 return should_check_backface_visibility_; |
218 } | 219 } |
219 | 220 |
220 bool ShowDebugBorders() const; | 221 bool ShowDebugBorders(DebugBorderType type) const; |
221 | 222 |
222 // TODO(http://crbug.com/557160): Currently SPv2 creates dummy layers for the | 223 // TODO(http://crbug.com/557160): Currently SPv2 creates dummy layers for the |
223 // sole purpose of representing a render surface. Once that dependency is | 224 // sole purpose of representing a render surface. Once that dependency is |
224 // removed, also remove dummy layers from PaintArtifactCompositor. | 225 // removed, also remove dummy layers from PaintArtifactCompositor. |
225 RenderSurfaceImpl* GetRenderSurface() const; | 226 RenderSurfaceImpl* GetRenderSurface() const; |
226 | 227 |
227 // The render surface which this layer draws into. This can be either owned by | 228 // The render surface which this layer draws into. This can be either owned by |
228 // the same layer or an ancestor of this layer. | 229 // the same layer or an ancestor of this layer. |
229 RenderSurfaceImpl* render_target(); | 230 RenderSurfaceImpl* render_target(); |
230 const RenderSurfaceImpl* render_target() const; | 231 const RenderSurfaceImpl* render_target() const; |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 // the overlay scrollbars. It's set on the scroll layer (not the scrollbar | 556 // the overlay scrollbars. It's set on the scroll layer (not the scrollbar |
556 // layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation. | 557 // layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation. |
557 bool needs_show_scrollbars_ : 1; | 558 bool needs_show_scrollbars_ : 1; |
558 | 559 |
559 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 560 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
560 }; | 561 }; |
561 | 562 |
562 } // namespace cc | 563 } // namespace cc |
563 | 564 |
564 #endif // CC_LAYERS_LAYER_IMPL_H_ | 565 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |