OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BLINK_WEB_LAYER_IMPL_H_ | 5 #ifndef CC_BLINK_WEB_LAYER_IMPL_H_ |
6 #define CC_BLINK_WEB_LAYER_IMPL_H_ | 6 #define CC_BLINK_WEB_LAYER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 CC_BLINK_EXPORT explicit WebLayerImpl(scoped_refptr<cc::Layer>); | 50 CC_BLINK_EXPORT explicit WebLayerImpl(scoped_refptr<cc::Layer>); |
51 virtual ~WebLayerImpl(); | 51 virtual ~WebLayerImpl(); |
52 | 52 |
53 static bool UsingPictureLayer(); | 53 static bool UsingPictureLayer(); |
54 CC_BLINK_EXPORT static void SetImplSidePaintingEnabled(bool enabled); | 54 CC_BLINK_EXPORT static void SetImplSidePaintingEnabled(bool enabled); |
55 | 55 |
56 CC_BLINK_EXPORT cc::Layer* layer() const; | 56 CC_BLINK_EXPORT cc::Layer* layer() const; |
57 | 57 |
58 // WebLayer implementation. | 58 // WebLayer implementation. |
59 virtual int id() const; | 59 virtual int id() const; |
| 60 // TODO(danakj): Remove WebFloatRect version. |
60 virtual void invalidateRect(const blink::WebFloatRect&); | 61 virtual void invalidateRect(const blink::WebFloatRect&); |
| 62 virtual void invalidateRect(const blink::WebRect&); |
61 virtual void invalidate(); | 63 virtual void invalidate(); |
62 virtual void addChild(blink::WebLayer* child); | 64 virtual void addChild(blink::WebLayer* child); |
63 virtual void insertChild(blink::WebLayer* child, size_t index); | 65 virtual void insertChild(blink::WebLayer* child, size_t index); |
64 virtual void replaceChild(blink::WebLayer* reference, | 66 virtual void replaceChild(blink::WebLayer* reference, |
65 blink::WebLayer* new_layer); | 67 blink::WebLayer* new_layer); |
66 virtual void removeFromParent(); | 68 virtual void removeFromParent(); |
67 virtual void removeAllChildren(); | 69 virtual void removeAllChildren(); |
68 virtual void setBounds(const blink::WebSize& bounds); | 70 virtual void setBounds(const blink::WebSize& bounds); |
69 virtual blink::WebSize bounds() const; | 71 virtual blink::WebSize bounds() const; |
70 virtual void setMasksToBounds(bool masks_to_bounds); | 72 virtual void setMasksToBounds(bool masks_to_bounds); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 146 |
145 private: | 147 private: |
146 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; | 148 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; |
147 | 149 |
148 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); | 150 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); |
149 }; | 151 }; |
150 | 152 |
151 } // namespace cc_blink | 153 } // namespace cc_blink |
152 | 154 |
153 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ | 155 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ |
OLD | NEW |