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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineDetailsView.js

Issue 2845813003: [DevTools] Host paint profiles in PaintProfilerModel (Closed)
Patch Set: addressed comments Created 3 years, 8 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/timeline/TimelineDetailsView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineDetailsView.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineDetailsView.js
index 446c177a529920d7205d88fd0156972d9f737966..8aa39fa61c2fb71d70671802aa5f50cb1e970fb5 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineDetailsView.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineDetailsView.js
@@ -204,11 +204,11 @@ Timeline.TimelineDetailsView = class extends UI.VBox {
* @param {!SDK.TracingModel.Event} event
*/
_showEventInPaintProfiler(event) {
- const target = SDK.targetManager.mainTarget();
- if (!target)
+ const paintProfilerModel = SDK.targetManager.models(SDK.PaintProfilerModel)[0];
+ if (!paintProfilerModel)
return;
const paintProfilerView = this._paintProfilerView();
- const hasProfileData = paintProfilerView.setEvent(target, event);
+ const hasProfileData = paintProfilerView.setEvent(paintProfilerModel, event);
if (!hasProfileData)
return;
if (this._tabbedPane.hasTab(Timeline.TimelineDetailsView.Tab.PaintProfiler))

Powered by Google App Engine
This is Rietveld 408576698