| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 virtual RenderPass::Id NextContributingRenderPassId(RenderPass::Id id) const; | 126 virtual RenderPass::Id NextContributingRenderPassId(RenderPass::Id id) const; |
| 127 | 127 |
| 128 virtual void UpdateTilePriorities() {} | 128 virtual void UpdateTilePriorities() {} |
| 129 | 129 |
| 130 virtual ScrollbarLayerImpl* ToScrollbarLayer(); | 130 virtual ScrollbarLayerImpl* ToScrollbarLayer(); |
| 131 | 131 |
| 132 // Returns true if this layer has content to draw. | 132 // Returns true if this layer has content to draw. |
| 133 void SetDrawsContent(bool draws_content); | 133 void SetDrawsContent(bool draws_content); |
| 134 bool DrawsContent() const { return draws_content_; } | 134 bool DrawsContent() const { return draws_content_; } |
| 135 | 135 |
| 136 void SetHideLayerAndSubtree(bool hide); |
| 137 bool hide_layer_and_subtree() const { return hide_layer_and_subtree_; } |
| 138 |
| 136 bool force_render_surface() const { return force_render_surface_; } | 139 bool force_render_surface() const { return force_render_surface_; } |
| 137 void SetForceRenderSurface(bool force) { force_render_surface_ = force; } | 140 void SetForceRenderSurface(bool force) { force_render_surface_ = force; } |
| 138 | 141 |
| 139 void SetAnchorPoint(gfx::PointF anchor_point); | 142 void SetAnchorPoint(gfx::PointF anchor_point); |
| 140 gfx::PointF anchor_point() const { return anchor_point_; } | 143 gfx::PointF anchor_point() const { return anchor_point_; } |
| 141 | 144 |
| 142 void SetAnchorPointZ(float anchor_point_z); | 145 void SetAnchorPointZ(float anchor_point_z); |
| 143 float anchor_point_z() const { return anchor_point_z_; } | 146 float anchor_point_z() const { return anchor_point_z_; } |
| 144 | 147 |
| 145 void SetBackgroundColor(SkColor background_color); | 148 void SetBackgroundColor(SkColor background_color); |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 bool contents_opaque_; | 514 bool contents_opaque_; |
| 512 float opacity_; | 515 float opacity_; |
| 513 gfx::PointF position_; | 516 gfx::PointF position_; |
| 514 bool preserves_3d_; | 517 bool preserves_3d_; |
| 515 bool use_parent_backface_visibility_; | 518 bool use_parent_backface_visibility_; |
| 516 bool draw_checkerboard_for_missing_tiles_; | 519 bool draw_checkerboard_for_missing_tiles_; |
| 517 gfx::Transform sublayer_transform_; | 520 gfx::Transform sublayer_transform_; |
| 518 gfx::Transform transform_; | 521 gfx::Transform transform_; |
| 519 | 522 |
| 520 bool draws_content_; | 523 bool draws_content_; |
| 524 bool hide_layer_and_subtree_; |
| 521 bool force_render_surface_; | 525 bool force_render_surface_; |
| 522 | 526 |
| 523 // Set for the layer that other layers are fixed to. | 527 // Set for the layer that other layers are fixed to. |
| 524 bool is_container_for_fixed_position_layers_; | 528 bool is_container_for_fixed_position_layers_; |
| 525 // This property is effective when | 529 // This property is effective when |
| 526 // is_container_for_fixed_position_layers_ == true, | 530 // is_container_for_fixed_position_layers_ == true, |
| 527 gfx::Vector2dF fixed_container_size_delta_; | 531 gfx::Vector2dF fixed_container_size_delta_; |
| 528 | 532 |
| 529 LayerPositionConstraint position_constraint_; | 533 LayerPositionConstraint position_constraint_; |
| 530 | 534 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 // Group of properties that need to be computed based on the layer tree | 574 // Group of properties that need to be computed based on the layer tree |
| 571 // hierarchy before layers can be drawn. | 575 // hierarchy before layers can be drawn. |
| 572 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; | 576 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; |
| 573 | 577 |
| 574 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 578 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 575 }; | 579 }; |
| 576 | 580 |
| 577 } // namespace cc | 581 } // namespace cc |
| 578 | 582 |
| 579 #endif // CC_LAYERS_LAYER_IMPL_H_ | 583 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |