| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_LAYER_H_ | 5 #ifndef CC_LAYER_H_ |
| 6 #define CC_LAYER_H_ | 6 #define CC_LAYER_H_ |
| 7 | 7 |
| 8 #include "Region.h" | 8 #include "Region.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "cc/cc_export.h" | 10 #include "cc/cc_export.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 void setChildren(const LayerList&); | 67 void setChildren(const LayerList&); |
| 68 | 68 |
| 69 const LayerList& children() const { return m_children; } | 69 const LayerList& children() const { return m_children; } |
| 70 | 70 |
| 71 void setAnchorPoint(const gfx::PointF&); | 71 void setAnchorPoint(const gfx::PointF&); |
| 72 gfx::PointF anchorPoint() const { return m_anchorPoint; } | 72 gfx::PointF anchorPoint() const { return m_anchorPoint; } |
| 73 | 73 |
| 74 void setAnchorPointZ(float); | 74 void setAnchorPointZ(float); |
| 75 float anchorPointZ() const { return m_anchorPointZ; } | 75 float anchorPointZ() const { return m_anchorPointZ; } |
| 76 | 76 |
| 77 void setBackgroundColor(SkColor); | 77 virtual void setBackgroundColor(SkColor); |
| 78 SkColor backgroundColor() const { return m_backgroundColor; } | 78 SkColor backgroundColor() const { return m_backgroundColor; } |
| 79 | 79 |
| 80 // A layer's bounds are in logical, non-page-scaled pixels (however, the | 80 // A layer's bounds are in logical, non-page-scaled pixels (however, the |
| 81 // root layer's bounds are in physical pixels). | 81 // root layer's bounds are in physical pixels). |
| 82 void setBounds(const gfx::Size&); | 82 void setBounds(const gfx::Size&); |
| 83 const gfx::Size& bounds() const { return m_bounds; } | 83 const gfx::Size& bounds() const { return m_bounds; } |
| 84 virtual gfx::Size contentBounds() const; | 84 virtual gfx::Size contentBounds() const; |
| 85 | 85 |
| 86 void setMasksToBounds(bool); | 86 void setMasksToBounds(bool); |
| 87 bool masksToBounds() const { return m_masksToBounds; } | 87 bool masksToBounds() const { return m_masksToBounds; } |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 | 407 |
| 408 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; | 408 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; |
| 409 WebKit::WebLayerScrollClient* m_layerScrollClient; | 409 WebKit::WebLayerScrollClient* m_layerScrollClient; |
| 410 }; | 410 }; |
| 411 | 411 |
| 412 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); | 412 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); |
| 413 | 413 |
| 414 } // namespace cc | 414 } // namespace cc |
| 415 | 415 |
| 416 #endif // CC_LAYER_H_ | 416 #endif // CC_LAYER_H_ |
| OLD | NEW |