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

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

Issue 474783002: HUD: Show first paint invalidation in red (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compilefix Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « cc/blink/cc_blink.gyp ('k') | cc/blink/web_layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 11 matching lines...) Expand all
22 #include "third_party/WebKit/public/platform/WebString.h" 22 #include "third_party/WebKit/public/platform/WebString.h"
23 #include "third_party/WebKit/public/platform/WebVector.h" 23 #include "third_party/WebKit/public/platform/WebVector.h"
24 #include "third_party/skia/include/utils/SkMatrix44.h" 24 #include "third_party/skia/include/utils/SkMatrix44.h"
25 25
26 namespace blink { 26 namespace blink {
27 class WebFilterOperations; 27 class WebFilterOperations;
28 class WebLayerClient; 28 class WebLayerClient;
29 struct WebFloatRect; 29 struct WebFloatRect;
30 } 30 }
31 31
32 namespace base {
33 namespace debug {
34 class ConvertableToTraceFormat;
35 }
36 }
37
38 namespace cc { 32 namespace cc {
39 class Layer; 33 class Layer;
40 } 34 }
41 35
42 namespace cc_blink { 36 namespace cc_blink {
43 37
38 class TracedDebugInfo;
44 class WebToCCAnimationDelegateAdapter; 39 class WebToCCAnimationDelegateAdapter;
45 40
46 class WebLayerImpl : public blink::WebLayer, public cc::LayerClient { 41 class WebLayerImpl : public blink::WebLayer, public cc::LayerClient {
47 public: 42 public:
48 CC_BLINK_EXPORT WebLayerImpl(); 43 CC_BLINK_EXPORT WebLayerImpl();
49 CC_BLINK_EXPORT explicit WebLayerImpl(scoped_refptr<cc::Layer>); 44 CC_BLINK_EXPORT explicit WebLayerImpl(scoped_refptr<cc::Layer>);
50 virtual ~WebLayerImpl(); 45 virtual ~WebLayerImpl();
51 46
52 static bool UsingPictureLayer(); 47 static bool UsingPictureLayer();
53 CC_BLINK_EXPORT static void SetImplSidePaintingEnabled(bool enabled); 48 CC_BLINK_EXPORT static void SetImplSidePaintingEnabled(bool enabled);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 virtual void setIsContainerForFixedPositionLayers(bool is_container); 119 virtual void setIsContainerForFixedPositionLayers(bool is_container);
125 virtual bool isContainerForFixedPositionLayers() const; 120 virtual bool isContainerForFixedPositionLayers() const;
126 virtual void setPositionConstraint( 121 virtual void setPositionConstraint(
127 const blink::WebLayerPositionConstraint& constraint); 122 const blink::WebLayerPositionConstraint& constraint);
128 virtual blink::WebLayerPositionConstraint positionConstraint() const; 123 virtual blink::WebLayerPositionConstraint positionConstraint() const;
129 virtual void setScrollClient(blink::WebLayerScrollClient* client); 124 virtual void setScrollClient(blink::WebLayerScrollClient* client);
130 virtual bool isOrphan() const; 125 virtual bool isOrphan() const;
131 virtual void setWebLayerClient(blink::WebLayerClient* client); 126 virtual void setWebLayerClient(blink::WebLayerClient* client);
132 127
133 // LayerClient implementation. 128 // LayerClient implementation.
134 virtual scoped_refptr<base::debug::ConvertableToTraceFormat> TakeDebugInfo() 129 virtual scoped_refptr<cc::LayerDebugInfo> TakeDebugInfo() OVERRIDE;
135 OVERRIDE;
136 130
137 virtual void setScrollParent(blink::WebLayer* parent); 131 virtual void setScrollParent(blink::WebLayer* parent);
138 virtual void setClipParent(blink::WebLayer* parent); 132 virtual void setClipParent(blink::WebLayer* parent);
139 133
140 protected: 134 protected:
141 scoped_refptr<cc::Layer> layer_; 135 scoped_refptr<cc::Layer> layer_;
142 blink::WebLayerClient* web_layer_client_; 136 blink::WebLayerClient* web_layer_client_;
143 137
144 private: 138 private:
145 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; 139 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_;
146 140
147 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); 141 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl);
148 }; 142 };
149 143
150 } // namespace cc_blink 144 } // namespace cc_blink
151 145
152 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ 146 #endif // CC_BLINK_WEB_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/blink/cc_blink.gyp ('k') | cc/blink/web_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698