| 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 /** |
| 8 * @constructor | 8 * @constructor |
| 9 * @extends {WebInspector.SplitWidget} | 9 * @extends {WebInspector.SplitWidget} |
| 10 * @param {!WebInspector.TimelineModel} model | 10 * @param {!WebInspector.TimelineModel} model |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 var layerTreeOutline = new WebInspector.LayerTreeOutline(this._layerViewHost
); | 31 var layerTreeOutline = new WebInspector.LayerTreeOutline(this._layerViewHost
); |
| 32 vbox.element.appendChild(layerTreeOutline.element); | 32 vbox.element.appendChild(layerTreeOutline.element); |
| 33 | 33 |
| 34 this._layers3DView = new WebInspector.Layers3DView(this._layerViewHost); | 34 this._layers3DView = new WebInspector.Layers3DView(this._layerViewHost); |
| 35 this._layers3DView.addEventListener(WebInspector.Layers3DView.Events.PaintPr
ofilerRequested, this._jumpToPaintEvent, this); | 35 this._layers3DView.addEventListener(WebInspector.Layers3DView.Events.PaintPr
ofilerRequested, this._jumpToPaintEvent, this); |
| 36 this._rightSplitWidget.setMainWidget(this._layers3DView); | 36 this._rightSplitWidget.setMainWidget(this._layers3DView); |
| 37 | 37 |
| 38 var layerDetailsView = new WebInspector.LayerDetailsView(this._layerViewHost
); | 38 var layerDetailsView = new WebInspector.LayerDetailsView(this._layerViewHost
); |
| 39 this._rightSplitWidget.setSidebarWidget(layerDetailsView); | 39 this._rightSplitWidget.setSidebarWidget(layerDetailsView); |
| 40 layerDetailsView.addEventListener(WebInspector.LayerDetailsView.Events.Paint
ProfilerRequested, this._jumpToPaintEvent, this); | 40 layerDetailsView.addEventListener(WebInspector.LayerDetailsView.Events.Paint
ProfilerRequested, this._jumpToPaintEvent, this); |
| 41 } | 41 }; |
| 42 | 42 |
| 43 WebInspector.TimelineLayersView.prototype = { | 43 WebInspector.TimelineLayersView.prototype = { |
| 44 /** | 44 /** |
| 45 * @param {!WebInspector.TracingFrameLayerTree} frameLayerTree | 45 * @param {!WebInspector.TracingFrameLayerTree} frameLayerTree |
| 46 */ | 46 */ |
| 47 showLayerTree: function(frameLayerTree) | 47 showLayerTree: function(frameLayerTree) |
| 48 { | 48 { |
| 49 this._disposeTiles(); | 49 this._disposeTiles(); |
| 50 this._frameLayerTree = frameLayerTree; | 50 this._frameLayerTree = frameLayerTree; |
| 51 if (this.isShowing()) | 51 if (this.isShowing()) |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 }, | 95 }, |
| 96 | 96 |
| 97 _disposeTiles: function() | 97 _disposeTiles: function() |
| 98 { | 98 { |
| 99 for (var i = 0; i < this._paintTiles.length; ++i) | 99 for (var i = 0; i < this._paintTiles.length; ++i) |
| 100 this._paintTiles[i].snapshot.dispose(); | 100 this._paintTiles[i].snapshot.dispose(); |
| 101 this._paintTiles = []; | 101 this._paintTiles = []; |
| 102 }, | 102 }, |
| 103 | 103 |
| 104 __proto__: WebInspector.SplitWidget.prototype | 104 __proto__: WebInspector.SplitWidget.prototype |
| 105 } | 105 }; |
| OLD | NEW |