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