OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 return use_parent_backface_visibility_; | 261 return use_parent_backface_visibility_; |
262 } | 262 } |
263 | 263 |
264 virtual void SetLayerTreeHost(LayerTreeHost* host); | 264 virtual void SetLayerTreeHost(LayerTreeHost* host); |
265 | 265 |
266 bool HasDelegatedContent() const { return false; } | 266 bool HasDelegatedContent() const { return false; } |
267 bool HasContributingDelegatedRenderPasses() const { return false; } | 267 bool HasContributingDelegatedRenderPasses() const { return false; } |
268 | 268 |
269 void SetIsDrawable(bool is_drawable); | 269 void SetIsDrawable(bool is_drawable); |
270 | 270 |
| 271 void SetHideLayerAndSubtree(bool hide); |
| 272 bool hide_layer_and_subtree() const { return hide_layer_and_subtree_; } |
| 273 |
271 void SetReplicaLayer(Layer* layer); | 274 void SetReplicaLayer(Layer* layer); |
272 Layer* replica_layer() { return replica_layer_.get(); } | 275 Layer* replica_layer() { return replica_layer_.get(); } |
273 const Layer* replica_layer() const { return replica_layer_.get(); } | 276 const Layer* replica_layer() const { return replica_layer_.get(); } |
274 | 277 |
275 bool has_mask() const { return !!mask_layer_.get(); } | 278 bool has_mask() const { return !!mask_layer_.get(); } |
276 bool has_replica() const { return !!replica_layer_.get(); } | 279 bool has_replica() const { return !!replica_layer_.get(); } |
277 bool replica_has_mask() const { | 280 bool replica_has_mask() const { |
278 return replica_layer_.get() && | 281 return replica_layer_.get() && |
279 (mask_layer_.get() || replica_layer_->mask_layer_.get()); | 282 (mask_layer_.get() || replica_layer_->mask_layer_.get()); |
280 } | 283 } |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 std::string debug_name_; | 461 std::string debug_name_; |
459 CompositingReasons compositing_reasons_; | 462 CompositingReasons compositing_reasons_; |
460 float opacity_; | 463 float opacity_; |
461 skia::RefPtr<SkImageFilter> filter_; | 464 skia::RefPtr<SkImageFilter> filter_; |
462 WebKit::WebFilterOperations filters_; | 465 WebKit::WebFilterOperations filters_; |
463 WebKit::WebFilterOperations background_filters_; | 466 WebKit::WebFilterOperations background_filters_; |
464 float anchor_point_z_; | 467 float anchor_point_z_; |
465 bool is_container_for_fixed_position_layers_; | 468 bool is_container_for_fixed_position_layers_; |
466 LayerPositionConstraint position_constraint_; | 469 LayerPositionConstraint position_constraint_; |
467 bool is_drawable_; | 470 bool is_drawable_; |
| 471 bool hide_layer_and_subtree_; |
468 bool masks_to_bounds_; | 472 bool masks_to_bounds_; |
469 bool contents_opaque_; | 473 bool contents_opaque_; |
470 bool double_sided_; | 474 bool double_sided_; |
471 bool preserves_3d_; | 475 bool preserves_3d_; |
472 bool use_parent_backface_visibility_; | 476 bool use_parent_backface_visibility_; |
473 bool draw_checkerboard_for_missing_tiles_; | 477 bool draw_checkerboard_for_missing_tiles_; |
474 bool force_render_surface_; | 478 bool force_render_surface_; |
475 | 479 |
476 gfx::Transform transform_; | 480 gfx::Transform transform_; |
477 gfx::Transform sublayer_transform_; | 481 gfx::Transform sublayer_transform_; |
(...skipping 11 matching lines...) Expand all Loading... |
489 DrawProperties<Layer, RenderSurface> draw_properties_; | 493 DrawProperties<Layer, RenderSurface> draw_properties_; |
490 | 494 |
491 PaintProperties paint_properties_; | 495 PaintProperties paint_properties_; |
492 | 496 |
493 DISALLOW_COPY_AND_ASSIGN(Layer); | 497 DISALLOW_COPY_AND_ASSIGN(Layer); |
494 }; | 498 }; |
495 | 499 |
496 } // namespace cc | 500 } // namespace cc |
497 | 501 |
498 #endif // CC_LAYERS_LAYER_H_ | 502 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |