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

Unified Diff: cc/layers/layer_client.h

Issue 1468753002: Reland of Remove blink::WebLayerClient and WebGraphicsLayerDebugInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: do not access members of m_contentsLayer 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 | « cc/layers/layer.cc ('k') | third_party/WebKit/Source/core/core.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_client.h
diff --git a/cc/layers/layer_client.h b/cc/layers/layer_client.h
index bcdf1c3c77d7124d5b82c9daec769ec7c37d7c28..524399d0d84e5e72379b80338c87dbc1213e4c16 100644
--- a/cc/layers/layer_client.h
+++ b/cc/layers/layer_client.h
@@ -5,8 +5,6 @@
#ifndef CC_LAYERS_LAYER_CLIENT_H_
#define CC_LAYERS_LAYER_CLIENT_H_
-#include <string>
-
#include "base/memory/ref_counted.h"
#include "cc/base/cc_export.h"
@@ -18,14 +16,19 @@ class ConvertableToTraceFormat;
namespace cc {
+class Layer;
+
class CC_EXPORT LayerClient {
public:
// Returns a pointer to a debug info object, if one has been computed.
// If not, returns nullptr.
// If the returned pointer is non-nullptr, the caller takes
// ownership of the pointer.
+ //
+ // A pointer to the layer is provided for the convenience of layer clients
+ // which service multiple layers.
virtual scoped_refptr<base::trace_event::ConvertableToTraceFormat>
- TakeDebugInfo() = 0;
+ TakeDebugInfo(Layer* layer) = 0;
protected:
virtual ~LayerClient() {}
« no previous file with comments | « cc/layers/layer.cc ('k') | third_party/WebKit/Source/core/core.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698