Demo/bin/Debug/front_end/timeline/TimelineLayersView.js
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
* Copyright 2014 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/**
* @constructor
* @extends {WebInspector.SplitWidget}
*/
WebInspector.TimelineLayersView = function()
{
WebInspector.SplitWidget.call(this, true, false, "timelineLayersView");
this.element.classList.add("timeline-layers-view");
this._rightSplitWidget = new WebInspector.SplitWidget(true, true, "timelineLayersViewDetails");
this._rightSplitWidget.element.classList.add("timeline-layers-view-properties");
this.setMainWidget(this._rightSplitWidget);
this._paintTiles = [];
var vbox = new WebInspector.VBox();
this.setSidebarWidget(vbox);
this._layerViewHost = new WebInspector.LayerViewHost();
var layerTreeOutline = new WebInspector.LayerTreeOutline(this._layerViewHost);
vbox.element.appendChild(layerTreeOutline.element);
this._layers3DView = new WebInspector.Layers3DView(this._layerViewHost);
this._layers3DView.addEventListener(WebInspector.Layers3DView.Events.PaintProfilerRequested, this._jumpToPaintEvent, this);
this._rightSplitWidget.setMainWidget(this._layers3DView);
var layerDetailsView = new WebInspector.LayerDetailsView(this._layerViewHost);
this._rightSplitWidget.setSidebarWidget(layerDetailsView);
layerDetailsView.addEventListener(WebInspector.LayerDetailsView.Events.PaintProfilerRequested, this._jumpToPaintEvent, this);
}
WebInspector.TimelineLayersView.prototype = {
/**
* @param {!WebInspector.DeferredLayerTree} deferredLayerTree
* @param {?Array.<!WebInspector.LayerPaintEvent>} paints
*/
showLayerTree: function(deferredLayerTree, paints)
{
this._disposeTiles();
this._deferredLayerTree = deferredLayerTree;
this._paints = paints;
if (this.isShowing())
this._update();
else
this._updateWhenVisible = true;
},
wasShown: function()
{
if (this._updateWhenVisible) {
this._updateWhenVisible = false;
this._update();
}
后面还有 95 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。