| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 void SetMasksToBounds(bool masks_to_bounds); | 176 void SetMasksToBounds(bool masks_to_bounds); |
| 177 bool masks_to_bounds() const { return masks_to_bounds_; } | 177 bool masks_to_bounds() const { return masks_to_bounds_; } |
| 178 | 178 |
| 179 void SetContentsOpaque(bool opaque); | 179 void SetContentsOpaque(bool opaque); |
| 180 bool contents_opaque() const { return contents_opaque_; } | 180 bool contents_opaque() const { return contents_opaque_; } |
| 181 | 181 |
| 182 float Opacity() const; | 182 float Opacity() const; |
| 183 const gfx::Transform& Transform() const; | 183 const gfx::Transform& Transform() const; |
| 184 | 184 |
| 185 // Stable identifier for clients. See comment in cc/trees/element_id.h. |
| 185 void SetElementId(ElementId element_id); | 186 void SetElementId(ElementId element_id); |
| 186 ElementId element_id() const { return element_id_; } | 187 ElementId element_id() const { return element_id_; } |
| 187 | 188 |
| 188 void SetMutableProperties(uint32_t properties); | 189 void SetMutableProperties(uint32_t properties); |
| 189 uint32_t mutable_properties() const { return mutable_properties_; } | 190 uint32_t mutable_properties() const { return mutable_properties_; } |
| 190 | 191 |
| 191 void SetPosition(const gfx::PointF& position); | 192 void SetPosition(const gfx::PointF& position); |
| 192 gfx::PointF position() const { return position_; } | 193 gfx::PointF position() const { return position_; } |
| 193 | 194 |
| 194 bool IsAffectedByPageScale() const; | 195 bool IsAffectedByPageScale() const; |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 // the overlay scrollbars. It's set on the scroll layer (not the scrollbar | 557 // the overlay scrollbars. It's set on the scroll layer (not the scrollbar |
| 557 // layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation. | 558 // layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation. |
| 558 bool needs_show_scrollbars_ : 1; | 559 bool needs_show_scrollbars_ : 1; |
| 559 | 560 |
| 560 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 561 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 561 }; | 562 }; |
| 562 | 563 |
| 563 } // namespace cc | 564 } // namespace cc |
| 564 | 565 |
| 565 #endif // CC_LAYERS_LAYER_IMPL_H_ | 566 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |