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 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 ElementId element_id() const { return element_id_; } | 183 ElementId element_id() const { return element_id_; } |
184 | 184 |
185 void SetMutableProperties(uint32_t properties); | 185 void SetMutableProperties(uint32_t properties); |
186 uint32_t mutable_properties() const { return mutable_properties_; } | 186 uint32_t mutable_properties() const { return mutable_properties_; } |
187 | 187 |
188 void SetPosition(const gfx::PointF& position); | 188 void SetPosition(const gfx::PointF& position); |
189 gfx::PointF position() const { return position_; } | 189 gfx::PointF position() const { return position_; } |
190 | 190 |
191 bool IsAffectedByPageScale() const; | 191 bool IsAffectedByPageScale() const; |
192 | 192 |
193 gfx::Vector2dF FixedContainerSizeDelta() const; | |
194 | |
195 bool Is3dSorted() const { return GetSortingContextId() != 0; } | 193 bool Is3dSorted() const { return GetSortingContextId() != 0; } |
196 | 194 |
197 void SetUseParentBackfaceVisibility(bool use) { | 195 void SetUseParentBackfaceVisibility(bool use) { |
198 use_parent_backface_visibility_ = use; | 196 use_parent_backface_visibility_ = use; |
199 } | 197 } |
200 bool use_parent_backface_visibility() const { | 198 bool use_parent_backface_visibility() const { |
201 return use_parent_backface_visibility_; | 199 return use_parent_backface_visibility_; |
202 } | 200 } |
203 | 201 |
204 void SetUseLocalTransformForBackfaceVisibility(bool use_local) { | 202 void SetUseLocalTransformForBackfaceVisibility(bool use_local) { |
(...skipping 350 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 | 553 // the overlay scrollbars. It's set on the scroll layer (not the scrollbar |
556 // layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation. | 554 // layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation. |
557 bool needs_show_scrollbars_ : 1; | 555 bool needs_show_scrollbars_ : 1; |
558 | 556 |
559 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 557 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
560 }; | 558 }; |
561 | 559 |
562 } // namespace cc | 560 } // namespace cc |
563 | 561 |
564 #endif // CC_LAYERS_LAYER_IMPL_H_ | 562 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |