| Index: Source/platform/graphics/GraphicsLayerDebugInfo.cpp
|
| diff --git a/Source/platform/graphics/GraphicsLayerDebugInfo.cpp b/Source/platform/graphics/GraphicsLayerDebugInfo.cpp
|
| index cb92348ddfe525d8df65dd63524788feace8b7a3..4dcf64afd2c9c0111897171da44b41d334632e05 100644
|
| --- a/Source/platform/graphics/GraphicsLayerDebugInfo.cpp
|
| +++ b/Source/platform/graphics/GraphicsLayerDebugInfo.cpp
|
| @@ -37,6 +37,7 @@ void GraphicsLayerDebugInfo::appendAsTraceFormat(blink::WebString* out) const
|
| RefPtr<JSONObject> jsonObject = JSONObject::create();
|
| appendLayoutRects(jsonObject.get());
|
| appendCompositingReasons(jsonObject.get());
|
| + appendDebugName(jsonObject.get());
|
| *out = jsonObject->toJSONString();
|
| }
|
|
|
| @@ -180,4 +181,12 @@ void GraphicsLayerDebugInfo::appendCompositingReasons(JSONObject* jsonObject) co
|
| jsonObject->setArray("compositing_reasons", jsonArray);
|
| }
|
|
|
| +void GraphicsLayerDebugInfo::appendDebugName(JSONObject* jsonObject) const
|
| +{
|
| + if (m_debugName.isEmpty())
|
| + return;
|
| +
|
| + jsonObject->setString("layer_name", m_debugName);
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|