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

Unified Diff: cc/blink/web_layer_impl.h

Issue 1461423002: Revert of Remove blink::WebLayerClient and WebGraphicsLayerDebugInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/blink/web_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_layer_impl.h
diff --git a/cc/blink/web_layer_impl.h b/cc/blink/web_layer_impl.h
index eb5be7ed2600fc37608a2ce1dc71ce0f21c4791b..e9f79c0286f13f6e4323962f616496b72760d543 100644
--- a/cc/blink/web_layer_impl.h
+++ b/cc/blink/web_layer_impl.h
@@ -27,6 +27,7 @@
namespace blink {
class WebFilterOperations;
+class WebLayerClient;
struct WebFloatRect;
}
@@ -45,7 +46,7 @@
class WebToCCAnimationDelegateAdapter;
-class WebLayerImpl : public blink::WebLayer {
+class WebLayerImpl : public blink::WebLayer, public cc::LayerClient {
public:
CC_BLINK_EXPORT WebLayerImpl();
CC_BLINK_EXPORT explicit WebLayerImpl(scoped_refptr<cc::Layer>);
@@ -145,14 +146,18 @@
blink::WebLayerPositionConstraint positionConstraint() const override;
void setScrollClient(blink::WebLayerScrollClient* client) override;
bool isOrphan() const override;
- void setLayerClient(cc::LayerClient* client) override;
- const cc::Layer* ccLayer() const override;
+ void setWebLayerClient(blink::WebLayerClient* client) override;
+
+ // LayerClient implementation.
+ scoped_refptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo()
+ override;
void setScrollParent(blink::WebLayer* parent) override;
void setClipParent(blink::WebLayer* parent) override;
protected:
scoped_refptr<cc::Layer> layer_;
+ blink::WebLayerClient* web_layer_client_;
bool contents_opaque_is_fixed_;
« no previous file with comments | « no previous file | cc/blink/web_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698