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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.cpp

Issue 2647063002: Move property tree debugging code to platform/graphics/paint/ (try #2) (Closed)
Patch Set: none Created 3 years, 11 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
Index: third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.cpp b/third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.cpp
index 38d423b998911a6e9bd62244f8f0fe630e193b20..9ca9da31a0535c172a2cdef811196523b5df08f3 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.cpp
@@ -4,6 +4,8 @@
#include "platform/graphics/paint/EffectPaintPropertyNode.h"
+#include "platform/graphics/paint/PropertyTreeState.h"
+
namespace blink {
EffectPaintPropertyNode* EffectPaintPropertyNode::root() {
@@ -34,4 +36,13 @@ String EffectPaintPropertyNode::toString() const {
m_compositorElementId.primaryId, m_compositorElementId.secondaryId);
}
+#if DCHECK_IS_ON()
+
+String EffectPaintPropertyNode::toTreeString() const {
+ return blink::PropertyTreeStatePrinter<blink::EffectPaintPropertyNode>()
+ .pathAsString(this);
+}
+
+#endif
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698