| 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 // the overlay scrollbars. It's set on the scroll layer (not the scrollbar | 549 // the overlay scrollbars. It's set on the scroll layer (not the scrollbar |
| 552 // layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation. | 550 // layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation. |
| 553 bool needs_show_scrollbars_ : 1; | 551 bool needs_show_scrollbars_ : 1; |
| 554 | 552 |
| 555 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 553 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 556 }; | 554 }; |
| 557 | 555 |
| 558 } // namespace cc | 556 } // namespace cc |
| 559 | 557 |
| 560 #endif // CC_LAYERS_LAYER_IMPL_H_ | 558 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |