Index: Source/devtools/front_end/TimelineTracingView.js |
diff --git a/Source/devtools/front_end/TimelineTracingView.js b/Source/devtools/front_end/TimelineTracingView.js |
index 84300caff0024341ae015a750b8c355d86aac2ac..6c8d7ae14b199dc7322956c8e292e4732af68269 100644 |
--- a/Source/devtools/front_end/TimelineTracingView.js |
+++ b/Source/devtools/front_end/TimelineTracingView.js |
@@ -105,7 +105,17 @@ WebInspector.TimelineTracingView.prototype = { |
contentHelper.appendTextRow(WebInspector.UIString("Duration"), Number.millisToString(this._dataProvider._toTimelineTime(record.duration), true)); |
if (!Object.isEmpty(record.args)) |
contentHelper.appendElementRow(WebInspector.UIString("Arguments"), this._formatArguments(record.args)); |
- |
+ function reveal() |
+ { |
+ WebInspector.Revealer.reveal(new WebInspector.TracingLayerSnapshot(record.args["snapshot"]["active_tree"]["root_layer"])); |
+ } |
+ if (record.name === "cc::LayerTreeHostImpl") { |
+ var link = document.createElement("span"); |
+ link.classList.add("revealable-link"); |
+ link.textContent = "show"; |
+ link.addEventListener("click", reveal, false); |
+ contentHelper.appendElementRow(WebInspector.UIString("Layer tree"), link); |
+ } |
this._delegate.showInDetails(WebInspector.UIString("Selected Event"), contentHelper.element); |
}, |