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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 gfx::PointF position() const { return position_; } | 156 gfx::PointF position() const { return position_; } |
157 | 157 |
158 void SetIsContainerForFixedPositionLayers(bool container) { | 158 void SetIsContainerForFixedPositionLayers(bool container) { |
159 is_container_for_fixed_position_layers_ = container; | 159 is_container_for_fixed_position_layers_ = container; |
160 } | 160 } |
161 // This is a non-trivial function in Layer. | 161 // This is a non-trivial function in Layer. |
162 bool IsContainerForFixedPositionLayers() const { | 162 bool IsContainerForFixedPositionLayers() const { |
163 return is_container_for_fixed_position_layers_; | 163 return is_container_for_fixed_position_layers_; |
164 } | 164 } |
165 | 165 |
166 void SetFixedContainerSizeDelta(const gfx::Vector2dF& delta) { | 166 void SetFixedContainerSizeDelta(gfx::Vector2dF delta) { |
167 fixed_container_size_delta_ = delta; | 167 fixed_container_size_delta_ = delta; |
168 } | 168 } |
169 const gfx::Vector2dF& fixed_container_size_delta() const { | 169 gfx::Vector2dF fixed_container_size_delta() const { |
170 return fixed_container_size_delta_; | 170 return fixed_container_size_delta_; |
171 } | 171 } |
172 | 172 |
173 void SetPositionConstraint(const LayerPositionConstraint& constraint) { | 173 void SetPositionConstraint(const LayerPositionConstraint& constraint) { |
174 position_constraint_ = constraint; | 174 position_constraint_ = constraint; |
175 } | 175 } |
176 const LayerPositionConstraint& position_constraint() const { | 176 const LayerPositionConstraint& position_constraint() const { |
177 return position_constraint_; | 177 return position_constraint_; |
178 } | 178 } |
179 | 179 |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 // Group of properties that need to be computed based on the layer tree | 532 // Group of properties that need to be computed based on the layer tree |
533 // hierarchy before layers can be drawn. | 533 // hierarchy before layers can be drawn. |
534 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; | 534 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; |
535 | 535 |
536 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 536 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
537 }; | 537 }; |
538 | 538 |
539 } // namespace cc | 539 } // namespace cc |
540 | 540 |
541 #endif // CC_LAYERS_LAYER_IMPL_H_ | 541 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |