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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.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
Index: third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.h b/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.h
index b5ebc2cc0c9f92b5f313c448e73359323ee0499e..be57a28507415d4c48f2f102856c86b1a2cae849 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.h
@@ -31,27 +31,26 @@
#ifndef GraphicsLayerDebugInfo_h
#define GraphicsLayerDebugInfo_h
-#include "base/memory/ref_counted.h"
+#include "platform/JSONValues.h"
#include "platform/geometry/FloatRect.h"
#include "platform/graphics/CompositingReasons.h"
#include "platform/graphics/PaintInvalidationReason.h"
+#include "public/platform/WebGraphicsLayerDebugInfo.h"
+
#include "wtf/Vector.h"
-
-namespace base {
-namespace trace_event {
-class TracedValue;
-}
-}
namespace blink {
-class GraphicsLayerDebugInfo {
+class GraphicsLayerDebugInfo final : public WebGraphicsLayerDebugInfo {
public:
GraphicsLayerDebugInfo();
- ~GraphicsLayerDebugInfo();
+ ~GraphicsLayerDebugInfo() override;
- scoped_refptr<base::trace_event::TracedValue> asTracedValue() const;
+ void appendAsTraceFormat(WebString* out) const override;
+ GraphicsLayerDebugInfo* clone() const;
+
+ void setDebugName(const String& name) { m_debugName = name; }
CompositingReasons compositingReasons() const { return m_compositingReasons; }
void setCompositingReasons(CompositingReasons reasons) { m_compositingReasons = reasons; }
void setOwnerNodeId(int id) { m_ownerNodeId = id; }
@@ -60,15 +59,17 @@
void clearAnnotatedInvalidateRects();
private:
- void appendAnnotatedInvalidateRects(base::trace_event::TracedValue*) const;
- void appendCompositingReasons(base::trace_event::TracedValue*) const;
- void appendOwnerNodeId(base::trace_event::TracedValue*) const;
+ void appendAnnotatedInvalidateRects(JSONObject*) const;
+ void appendCompositingReasons(JSONObject*) const;
+ void appendDebugName(JSONObject*) const;
+ void appendOwnerNodeId(JSONObject*) const;
struct AnnotatedInvalidationRect {
FloatRect rect;
PaintInvalidationReason reason;
};
+ String m_debugName;
CompositingReasons m_compositingReasons;
int m_ownerNodeId;
Vector<AnnotatedInvalidationRect> m_invalidations;

Powered by Google App Engine
This is Rietveld 408576698