| 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. | |
| 61 virtual void invalidateRect(const blink::WebFloatRect&); | |
| 62 virtual void invalidateRect(const blink::WebRect&); | 60 virtual void invalidateRect(const blink::WebRect&); |
| 63 virtual void invalidate(); | 61 virtual void invalidate(); |
| 64 virtual void addChild(blink::WebLayer* child); | 62 virtual void addChild(blink::WebLayer* child); |
| 65 virtual void insertChild(blink::WebLayer* child, size_t index); | 63 virtual void insertChild(blink::WebLayer* child, size_t index); |
| 66 virtual void replaceChild(blink::WebLayer* reference, | 64 virtual void replaceChild(blink::WebLayer* reference, |
| 67 blink::WebLayer* new_layer); | 65 blink::WebLayer* new_layer); |
| 68 virtual void removeFromParent(); | 66 virtual void removeFromParent(); |
| 69 virtual void removeAllChildren(); | 67 virtual void removeAllChildren(); |
| 70 virtual void setBounds(const blink::WebSize& bounds); | 68 virtual void setBounds(const blink::WebSize& bounds); |
| 71 virtual blink::WebSize bounds() const; | 69 virtual blink::WebSize bounds() const; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 144 |
| 147 private: | 145 private: |
| 148 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; | 146 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; |
| 149 | 147 |
| 150 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); | 148 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); |
| 151 }; | 149 }; |
| 152 | 150 |
| 153 } // namespace cc_blink | 151 } // namespace cc_blink |
| 154 | 152 |
| 155 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ | 153 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ |
| OLD | NEW |