| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 The Chromium Authors. All rights reserved. | 2 * Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 |
| 6 /** | 7 /** |
| 7 * @unrestricted | 8 * @unrestricted |
| 8 */ | 9 */ |
| 9 WebInspector.TimelineLayersView = class extends WebInspector.SplitWidget { | 10 WebInspector.TimelineLayersView = class extends WebInspector.SplitWidget { |
| 10 /** | 11 /** |
| 11 * @param {!WebInspector.TimelineModel} model | 12 * @param {!WebInspector.TimelineModel} model |
| 12 * @param {function(!WebInspector.PaintProfilerSnapshot)} showPaintProfilerCal
lback | 13 * @param {function(!WebInspector.PaintProfilerSnapshot)} showPaintProfilerCal
lback |
| 13 */ | 14 */ |
| 14 constructor(model, showPaintProfilerCallback) { | 15 constructor(model, showPaintProfilerCallback) { |
| 15 super(true, false, 'timelineLayersView'); | 16 super(true, false, 'timelineLayersView'); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 this._layers3DView.snapshotForSelection(selection).then(snapshotWithRect =>
{ | 70 this._layers3DView.snapshotForSelection(selection).then(snapshotWithRect =>
{ |
| 70 if (snapshotWithRect) | 71 if (snapshotWithRect) |
| 71 this._showPaintProfilerCallback(snapshotWithRect.snapshot); | 72 this._showPaintProfilerCallback(snapshotWithRect.snapshot); |
| 72 }); | 73 }); |
| 73 } | 74 } |
| 74 | 75 |
| 75 _update() { | 76 _update() { |
| 76 this._frameLayerTree.layerTreePromise().then(layerTree => this._layerViewHos
t.setLayerTree(layerTree)); | 77 this._frameLayerTree.layerTreePromise().then(layerTree => this._layerViewHos
t.setLayerTree(layerTree)); |
| 77 } | 78 } |
| 78 }; | 79 }; |
| OLD | NEW |