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

Unified Diff: Source/devtools/front_end/TimelineTracingView.js

Issue 224843014: DevTools: support importing layer tree from trace snapshots. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased, removed redundant transform handling code Created 6 years, 8 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/devtools/front_end/LayersPanel.js ('k') | Source/devtools/front_end/modules.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
},
« no previous file with comments | « Source/devtools/front_end/LayersPanel.js ('k') | Source/devtools/front_end/modules.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698