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

Unified Diff: Source/core/platform/graphics/GraphicsLayer.h

Issue 18473002: Add an API to report debugName in GraphicsLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix layout test Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/graphics/GraphicsLayer.h
diff --git a/Source/core/platform/graphics/GraphicsLayer.h b/Source/core/platform/graphics/GraphicsLayer.h
index e4bb57822baeed888d3ad7fb780b911a7e3642a2..c82ac336499a11101d42c4cee07f6093691c43fa 100644
--- a/Source/core/platform/graphics/GraphicsLayer.h
+++ b/Source/core/platform/graphics/GraphicsLayer.h
@@ -46,6 +46,7 @@
#include "public/platform/WebCompositingReasons.h"
#include "public/platform/WebContentLayer.h"
#include "public/platform/WebImageLayer.h"
+#include "public/platform/WebLayerClient.h"
#include "public/platform/WebLayerScrollClient.h"
#include "public/platform/WebSolidColorLayer.h"
@@ -198,7 +199,7 @@ protected:
// GraphicsLayer is an abstraction for a rendering surface with backing store,
// which may have associated transformation and animations.
-class GraphicsLayer : public GraphicsContextPainter, public WebKit::WebAnimationDelegate, public WebKit::WebLayerScrollClient {
+class GraphicsLayer : public GraphicsContextPainter, public WebKit::WebAnimationDelegate, public WebKit::WebLayerScrollClient, public WebKit::WebLayerClient {
WTF_MAKE_NONCOPYABLE(GraphicsLayer); WTF_MAKE_FAST_ALLOCATED;
public:
enum ContentsLayerPurpose {
@@ -214,9 +215,8 @@ public:
GraphicsLayerClient* client() const { return m_client; }
- // Layer name. Only used to identify layers in debug output
- const String& name() const { return m_name; }
- void setName(const String&);
+ // WebKit::WebLayerClient implementation.
+ virtual WebKit::WebString debugName(WebKit::WebLayer*) OVERRIDE;
void setCompositingReasons(WebKit::WebCompositingReasons);
@@ -466,7 +466,6 @@ protected:
void dumpAdditionalProperties(TextStream&, int /*indent*/, LayerTreeFlags) const { }
// Helper functions used by settors to keep layer's the state consistent.
- void updateNames();
void updateChildList();
void updateLayerIsDrawable();
void updateContentsRect();
@@ -477,7 +476,6 @@ protected:
WebKit::WebLayer* contentsLayerIfRegistered();
GraphicsLayerClient* m_client;
- String m_name;
// Offset from the owning renderer
IntSize m_offsetFromRenderer;
@@ -522,8 +520,6 @@ protected:
int m_repaintCount;
- String m_nameBase;
-
Color m_contentsSolidColor;
OwnPtr<WebKit::WebContentLayer> m_layer;
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698