| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @param {!WebInspector.TracingModel} tracingModel | 6 * @param {!WebInspector.TracingModel} tracingModel |
| 7 * @constructor | 7 * @constructor |
| 8 */ | 8 */ |
| 9 WebInspector.TracingTimelineModel = function(tracingModel) | 9 WebInspector.TracingTimelineModel = function(tracingModel) |
| 10 { | 10 { |
| 11 this._tracingModel = tracingModel; | 11 this._tracingModel = tracingModel; |
| 12 this._mainThreadEvents = []; | 12 this._mainThreadEvents = []; |
| 13 } | 13 } |
| 14 | 14 |
| 15 WebInspector.TracingTimelineModel.RecordType = { | 15 WebInspector.TracingTimelineModel.RecordType = { |
| 16 Program: "Program", | 16 Program: "Program", |
| 17 EventDispatch: "EventDispatch", | 17 EventDispatch: "EventDispatch", |
| 18 | 18 |
| 19 GPUTask: "GPUTask", | 19 GPUTask: "GPUTask", |
| 20 | 20 |
| 21 RequestMainThreadFrame: "RequestMainThreadFrame", | 21 RequestMainThreadFrame: "RequestMainThreadFrame", |
| 22 BeginFrame: "BeginFrame", | 22 BeginFrame: "BeginFrame", |
| 23 BeginMainThreadFrame: "BeginMainThreadFrame", | 23 BeginMainThreadFrame: "BeginMainThreadFrame", |
| 24 ActivateLayerTree: "ActivateLayerTree", | 24 ActivateLayerTree: "ActivateLayerTree", |
| 25 DrawFrame: "DrawFrame", | 25 DrawFrame: "DrawFrame", |
| 26 ScheduleStyleRecalculation: "ScheduleStyleRecalculation", | 26 ScheduleStyleRecalculation: "ScheduleStyleRecalculation", |
| 27 RecalculateStyles: "RecalculateStyles", | 27 RecalculateStyles: "RecalculateStyles", |
| 28 InvalidateLayout: "InvalidateLayout", | 28 InvalidateLayout: "InvalidateLayout", |
| 29 Layout: "Layout", | 29 Layout: "Layout", |
| 30 UpdateLayerTree: "UpdateLayerTree", | |
| 31 PaintSetup: "PaintSetup", | 30 PaintSetup: "PaintSetup", |
| 32 Paint: "Paint", | 31 Paint: "Paint", |
| 33 PaintImage: "PaintImage", | 32 PaintImage: "PaintImage", |
| 34 Rasterize: "Rasterize", | 33 Rasterize: "Rasterize", |
| 35 RasterTask: "RasterTask", | 34 RasterTask: "RasterTask", |
| 36 ScrollLayer: "ScrollLayer", | 35 ScrollLayer: "ScrollLayer", |
| 37 CompositeLayers: "CompositeLayers", | 36 CompositeLayers: "CompositeLayers", |
| 38 | 37 |
| 39 ParseHTML: "ParseHTML", | 38 ParseHTML: "ParseHTML", |
| 40 | 39 |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 { | 305 { |
| 307 for (var i = this._eventStack.length - 1; i >= 0; --i) { | 306 for (var i = this._eventStack.length - 1; i >= 0; --i) { |
| 308 var event = this._eventStack[i]; | 307 var event = this._eventStack[i]; |
| 309 if (event.name === name) | 308 if (event.name === name) |
| 310 return event; | 309 return event; |
| 311 } | 310 } |
| 312 return null; | 311 return null; |
| 313 } | 312 } |
| 314 } | 313 } |
| 315 | 314 |
| OLD | NEW |