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 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 namespace cc_blink { | 45 namespace cc_blink { |
46 | 46 |
47 class WebToCCAnimationDelegateAdapter; | 47 class WebToCCAnimationDelegateAdapter; |
48 | 48 |
49 class WebLayerImpl : public blink::WebLayer, public cc::LayerClient { | 49 class WebLayerImpl : public blink::WebLayer, public cc::LayerClient { |
50 public: | 50 public: |
51 CC_BLINK_EXPORT WebLayerImpl(); | 51 CC_BLINK_EXPORT WebLayerImpl(); |
52 CC_BLINK_EXPORT explicit WebLayerImpl(scoped_refptr<cc::Layer>); | 52 CC_BLINK_EXPORT explicit WebLayerImpl(scoped_refptr<cc::Layer>); |
53 virtual ~WebLayerImpl(); | 53 virtual ~WebLayerImpl(); |
54 | 54 |
55 static bool UsingPictureLayer(); | |
56 CC_BLINK_EXPORT static void SetImplSidePaintingEnabled(bool enabled); | |
57 | |
58 CC_BLINK_EXPORT static void SetLayerSettings( | 55 CC_BLINK_EXPORT static void SetLayerSettings( |
59 const cc::LayerSettings& settings); | 56 const cc::LayerSettings& settings); |
60 CC_BLINK_EXPORT static const cc::LayerSettings& LayerSettings(); | 57 CC_BLINK_EXPORT static const cc::LayerSettings& LayerSettings(); |
61 | 58 |
62 CC_BLINK_EXPORT cc::Layer* layer() const; | 59 CC_BLINK_EXPORT cc::Layer* layer() const; |
63 | 60 |
64 // WebLayer implementation. | 61 // WebLayer implementation. |
65 virtual int id() const; | 62 virtual int id() const; |
66 virtual void invalidateRect(const blink::WebRect&); | 63 virtual void invalidateRect(const blink::WebRect&); |
67 virtual void invalidate(); | 64 virtual void invalidate(); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 154 |
158 private: | 155 private: |
159 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; | 156 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; |
160 | 157 |
161 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); | 158 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); |
162 }; | 159 }; |
163 | 160 |
164 } // namespace cc_blink | 161 } // namespace cc_blink |
165 | 162 |
166 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ | 163 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ |
OLD | NEW |