| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 static bool UsingPictureLayer(); | 52 static bool UsingPictureLayer(); |
| 53 CC_BLINK_EXPORT static void SetImplSidePaintingEnabled(bool enabled); | 53 CC_BLINK_EXPORT static void SetImplSidePaintingEnabled(bool enabled); |
| 54 | 54 |
| 55 CC_BLINK_EXPORT cc::Layer* layer() const; | 55 CC_BLINK_EXPORT cc::Layer* layer() const; |
| 56 | 56 |
| 57 // WebLayer implementation. | 57 // WebLayer implementation. |
| 58 virtual int id() const; | 58 virtual int id() const; |
| 59 virtual void invalidateRect(const blink::WebFloatRect&); | 59 virtual void invalidateRect(const blink::WebFloatRect&); |
| 60 virtual void invalidate(); | 60 virtual void invalidate(); |
| 61 virtual void setIncludesFirstPaintInvalidation(); |
| 61 virtual void addChild(blink::WebLayer* child); | 62 virtual void addChild(blink::WebLayer* child); |
| 62 virtual void insertChild(blink::WebLayer* child, size_t index); | 63 virtual void insertChild(blink::WebLayer* child, size_t index); |
| 63 virtual void replaceChild(blink::WebLayer* reference, | 64 virtual void replaceChild(blink::WebLayer* reference, |
| 64 blink::WebLayer* new_layer); | 65 blink::WebLayer* new_layer); |
| 65 virtual void removeFromParent(); | 66 virtual void removeFromParent(); |
| 66 virtual void removeAllChildren(); | 67 virtual void removeAllChildren(); |
| 67 virtual void setBounds(const blink::WebSize& bounds); | 68 virtual void setBounds(const blink::WebSize& bounds); |
| 68 virtual blink::WebSize bounds() const; | 69 virtual blink::WebSize bounds() const; |
| 69 virtual void setMasksToBounds(bool masks_to_bounds); | 70 virtual void setMasksToBounds(bool masks_to_bounds); |
| 70 virtual bool masksToBounds() const; | 71 virtual bool masksToBounds() const; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 144 |
| 144 private: | 145 private: |
| 145 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; | 146 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; |
| 146 | 147 |
| 147 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); | 148 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); |
| 148 }; | 149 }; |
| 149 | 150 |
| 150 } // namespace cc_blink | 151 } // namespace cc_blink |
| 151 | 152 |
| 152 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ | 153 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ |
| OLD | NEW |