Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: cc/blink/web_layer_impl.h

Issue 1101823002: CC Animations: Make LayerAnimationController creation optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumb LayerSettings parameter for cc::Layer construction. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 21 matching lines...) Expand all
32 } 32 }
33 33
34 namespace base { 34 namespace base {
35 namespace trace_event { 35 namespace trace_event {
36 class ConvertableToTraceFormat; 36 class ConvertableToTraceFormat;
37 } 37 }
38 } 38 }
39 39
40 namespace cc { 40 namespace cc {
41 class Layer; 41 class Layer;
42 class LayerSettings;
42 } 43 }
43 44
44 namespace cc_blink { 45 namespace cc_blink {
45 46
46 class WebToCCAnimationDelegateAdapter; 47 class WebToCCAnimationDelegateAdapter;
47 48
48 class WebLayerImpl : public blink::WebLayer, public cc::LayerClient { 49 class WebLayerImpl : public blink::WebLayer, public cc::LayerClient {
49 public: 50 public:
50 CC_BLINK_EXPORT WebLayerImpl(); 51 CC_BLINK_EXPORT WebLayerImpl();
51 CC_BLINK_EXPORT explicit WebLayerImpl(scoped_refptr<cc::Layer>); 52 CC_BLINK_EXPORT explicit WebLayerImpl(scoped_refptr<cc::Layer>);
52 virtual ~WebLayerImpl(); 53 virtual ~WebLayerImpl();
53 54
54 static bool UsingPictureLayer(); 55 static bool UsingPictureLayer();
55 CC_BLINK_EXPORT static void SetImplSidePaintingEnabled(bool enabled); 56 CC_BLINK_EXPORT static void SetImplSidePaintingEnabled(bool enabled);
56 57
58 CC_BLINK_EXPORT static void SetLayerSettings(
59 const cc::LayerSettings& settings);
60 CC_BLINK_EXPORT static cc::LayerSettings& LayerSettings();
61
57 CC_BLINK_EXPORT cc::Layer* layer() const; 62 CC_BLINK_EXPORT cc::Layer* layer() const;
58 63
59 // WebLayer implementation. 64 // WebLayer implementation.
60 virtual int id() const; 65 virtual int id() const;
61 virtual void invalidateRect(const blink::WebRect&); 66 virtual void invalidateRect(const blink::WebRect&);
62 virtual void invalidate(); 67 virtual void invalidate();
63 virtual void addChild(blink::WebLayer* child); 68 virtual void addChild(blink::WebLayer* child);
64 virtual void insertChild(blink::WebLayer* child, size_t index); 69 virtual void insertChild(blink::WebLayer* child, size_t index);
65 virtual void replaceChild(blink::WebLayer* reference, 70 virtual void replaceChild(blink::WebLayer* reference,
66 blink::WebLayer* new_layer); 71 blink::WebLayer* new_layer);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 157
153 private: 158 private:
154 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; 159 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_;
155 160
156 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); 161 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl);
157 }; 162 };
158 163
159 } // namespace cc_blink 164 } // namespace cc_blink
160 165
161 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ 166 #endif // CC_BLINK_WEB_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698