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 | 5 |
6 #ifndef LayerChromium_h | 6 #ifndef LayerChromium_h |
7 #define LayerChromium_h | 7 #define LayerChromium_h |
8 | 8 |
9 #if USE(ACCELERATED_COMPOSITING) | 9 #if USE(ACCELERATED_COMPOSITING) |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 virtual const WebKit::WebTransformationMatrix& transform() const OVERRIDE {
return m_transform; } | 60 virtual const WebKit::WebTransformationMatrix& transform() const OVERRIDE {
return m_transform; } |
61 | 61 |
62 LayerChromium* rootLayer(); | 62 LayerChromium* rootLayer(); |
63 LayerChromium* parent() const; | 63 LayerChromium* parent() const; |
64 void addChild(PassRefPtr<LayerChromium>); | 64 void addChild(PassRefPtr<LayerChromium>); |
65 void insertChild(PassRefPtr<LayerChromium>, size_t index); | 65 void insertChild(PassRefPtr<LayerChromium>, size_t index); |
66 void replaceChild(LayerChromium* reference, PassRefPtr<LayerChromium> newLay
er); | 66 void replaceChild(LayerChromium* reference, PassRefPtr<LayerChromium> newLay
er); |
67 void removeFromParent(); | 67 void removeFromParent(); |
68 void removeAllChildren(); | 68 void removeAllChildren(); |
69 void setChildren(const Vector<RefPtr<LayerChromium> >&); | 69 void setChildren(const Vector<RefPtr<LayerChromium> >&); |
| 70 |
70 const Vector<RefPtr<LayerChromium> >& children() const { return m_children;
} | 71 const Vector<RefPtr<LayerChromium> >& children() const { return m_children;
} |
71 | 72 |
72 void setAnchorPoint(const FloatPoint&); | 73 void setAnchorPoint(const FloatPoint&); |
73 FloatPoint anchorPoint() const { return m_anchorPoint; } | 74 FloatPoint anchorPoint() const { return m_anchorPoint; } |
74 | 75 |
75 void setAnchorPointZ(float); | 76 void setAnchorPointZ(float); |
76 float anchorPointZ() const { return m_anchorPointZ; } | 77 float anchorPointZ() const { return m_anchorPointZ; } |
77 | 78 |
78 void setBackgroundColor(SkColor); | 79 void setBackgroundColor(SkColor); |
79 SkColor backgroundColor() const { return m_backgroundColor; } | 80 SkColor backgroundColor() const { return m_backgroundColor; } |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; | 373 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; |
373 WebKit::WebLayerScrollClient* m_layerScrollClient; | 374 WebKit::WebLayerScrollClient* m_layerScrollClient; |
374 }; | 375 }; |
375 | 376 |
376 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr
omium> >::iterator, void*); | 377 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr
omium> >::iterator, void*); |
377 | 378 |
378 } | 379 } |
379 #endif // USE(ACCELERATED_COMPOSITING) | 380 #endif // USE(ACCELERATED_COMPOSITING) |
380 | 381 |
381 #endif | 382 #endif |
OLD | NEW |