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

Side by Side Diff: webkit/renderer/compositor_bindings/web_layer_impl.h

Issue 61883006: Compositor thread plumbing for layout rectangle debug info. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed reviewer comments. Created 7 years, 1 month 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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ 5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_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 15 matching lines...) Expand all
26 26
27 namespace cc { class Layer; } 27 namespace cc { class Layer; }
28 28
29 // TODO(senorblanco): Remove this once WebKit changes have landed. 29 // TODO(senorblanco): Remove this once WebKit changes have landed.
30 class SkImageFilter; 30 class SkImageFilter;
31 31
32 namespace blink { 32 namespace blink {
33 class WebFilterOperations; 33 class WebFilterOperations;
34 class WebLayerClient; 34 class WebLayerClient;
35 struct WebFloatRect; 35 struct WebFloatRect;
36 class GraphicsLayerDebugInfo;
37 }
38
39 namespace base {
40 namespace debug {
41 class ConvertableToTraceFormat;
42 }
36 } 43 }
37 44
38 namespace webkit { 45 namespace webkit {
39 46
40 class WebToCCAnimationDelegateAdapter; 47 class WebToCCAnimationDelegateAdapter;
41 48
42 class WebLayerImpl : public blink::WebLayer, public cc::LayerClient { 49 class WebLayerImpl : public blink::WebLayer, public cc::LayerClient {
43 public: 50 public:
44 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebLayerImpl(); 51 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebLayerImpl();
45 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebLayerImpl( 52 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebLayerImpl(
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 virtual void setScrollClient(blink::WebLayerScrollClient* client); 129 virtual void setScrollClient(blink::WebLayerScrollClient* client);
123 virtual bool isOrphan() const; 130 virtual bool isOrphan() const;
124 virtual void setWebLayerClient(blink::WebLayerClient* client); 131 virtual void setWebLayerClient(blink::WebLayerClient* client);
125 132
126 // LayerClient implementation. 133 // LayerClient implementation.
127 virtual std::string DebugName() OVERRIDE; 134 virtual std::string DebugName() OVERRIDE;
128 135
129 virtual void setScrollParent(blink::WebLayer* parent); 136 virtual void setScrollParent(blink::WebLayer* parent);
130 virtual void setClipParent(blink::WebLayer* parent); 137 virtual void setClipParent(blink::WebLayer* parent);
131 138
139 virtual void setDebugInfo(blink::WebGraphicsLayerDebugInfo* debug_info);
140
132 protected: 141 protected:
133 scoped_refptr<cc::Layer> layer_; 142 scoped_refptr<cc::Layer> layer_;
134 blink::WebLayerClient* web_layer_client_; 143 blink::WebLayerClient* web_layer_client_;
135 144
136 private: 145 private:
137 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; 146 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_;
138 147
139 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); 148 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl);
140 }; 149 };
141 150
142 } // namespace webkit 151 } // namespace webkit
143 152
144 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ 153 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698