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

Unified Diff: third_party/WebKit/Source/devtools/front_end/layer_viewer/PaintProfilerView.js

Issue 2623743002: DevTools: extract modules (non-extensions) (Closed)
Patch Set: rebaseline Created 3 years, 11 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
Index: third_party/WebKit/Source/devtools/front_end/layer_viewer/PaintProfilerView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/layer_viewer/PaintProfilerView.js b/third_party/WebKit/Source/devtools/front_end/layer_viewer/PaintProfilerView.js
index bce1b157c7f5ab0c3de7e1f82360c631ad26633a..b2371364f155ebefc6055c26a6fe0c0e2219c71c 100644
--- a/third_party/WebKit/Source/devtools/front_end/layer_viewer/PaintProfilerView.js
+++ b/third_party/WebKit/Source/devtools/front_end/layer_viewer/PaintProfilerView.js
@@ -42,7 +42,7 @@ LayerViewer.PaintProfilerView = class extends UI.HBox {
this._canvasContainer = this.contentElement.createChild('div', 'paint-profiler-canvas-container');
this._progressBanner = this.contentElement.createChild('div', 'full-widget-dimmed-banner hidden');
this._progressBanner.textContent = Common.UIString('Profiling\u2026');
- this._pieChart = new UI.PieChart(55, this._formatPieChartTime.bind(this), true);
+ this._pieChart = new PerfUI.PieChart(55, this._formatPieChartTime.bind(this), true);
this._pieChart.element.classList.add('paint-profiler-pie-chart');
this.contentElement.appendChild(this._pieChart.element);
@@ -50,8 +50,8 @@ LayerViewer.PaintProfilerView = class extends UI.HBox {
this._canvas = this._canvasContainer.createChild('canvas', 'fill');
this._context = this._canvas.getContext('2d');
- this._selectionWindow = new UI.OverviewGrid.Window(this._canvasContainer);
- this._selectionWindow.addEventListener(UI.OverviewGrid.Events.WindowChanged, this._onWindowChanged, this);
+ this._selectionWindow = new PerfUI.OverviewGrid.Window(this._canvasContainer);
+ this._selectionWindow.addEventListener(PerfUI.OverviewGrid.Events.WindowChanged, this._onWindowChanged, this);
this._innerBarWidth = 4 * window.devicePixelRatio;
this._minBarHeight = window.devicePixelRatio;

Powered by Google App Engine
This is Rietveld 408576698