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

Unified Diff: LayoutTests/inspector/layers/tracing-layer-tree.html

Issue 311113002: Move inspected target events calculation into TracingTimelineModel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 6 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 | « no previous file | Source/devtools/front_end/timeline/TimelinePanel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/layers/tracing-layer-tree.html
diff --git a/LayoutTests/inspector/layers/tracing-layer-tree.html b/LayoutTests/inspector/layers/tracing-layer-tree.html
index 88c60da7734fce99d70b330e61d2f7c93760a764..c574b7749e9613055f5239672c4b4a31792522a2 100644
--- a/LayoutTests/inspector/layers/tracing-layer-tree.html
+++ b/LayoutTests/inspector/layers/tracing-layer-tree.html
@@ -30,9 +30,13 @@ function test()
var target = /** @type {!WebInspector.Target} */ (WebInspector.targetManager.activeTarget());
var layerTree = new WebInspector.TracingLayerTree(target);
+ var tracineTimelineModel = new WebInspector.TracingTimelineModel(InspectorTest.tracingModel);
+ tracineTimelineModel.willStartRecordingTraceEvents();
+
function onTracingComplete()
{
- var events = InspectorTest.tracingModel.inspectedTargetEvents();
+ tracineTimelineModel.didStopRecordingTraceEvents();
+ var events = tracineTimelineModel.inspectedTargetEvents();
for (var i = events.length - 1; i >= 0; --i) {
if (events[i].phase === WebInspector.TracingModel.Phase.SnapshotObject && events[i].name === "cc::LayerTreeHostImpl") {
var rootLayer = events[i].args["snapshot"]["active_tree"]["root_layer"];
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/TimelinePanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698