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

Unified Diff: Source/devtools/front_end/timeline/TimelineFrameModel.js

Issue 400643002: DevTools: Add ability to go to paint record and paint profiler in Timeline from layers view. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Small refactoring. Created 6 years, 5 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: Source/devtools/front_end/timeline/TimelineFrameModel.js
diff --git a/Source/devtools/front_end/timeline/TimelineFrameModel.js b/Source/devtools/front_end/timeline/TimelineFrameModel.js
index 371deeedb2cc980a5d57621aee8e1fbe649e1324..fc132c1640809035052d59624cac1b7844a56807 100644
--- a/Source/devtools/front_end/timeline/TimelineFrameModel.js
+++ b/Source/devtools/front_end/timeline/TimelineFrameModel.js
@@ -465,7 +465,7 @@ WebInspector.TracingTimelineFrameModel.prototype = {
return;
if (event.name === eventNames.Paint && event.args["data"]["layerId"] && event.picture) {
/** @type {!WebInspector.LayerPaintEvent} */
- var paintEvent = {layerId: event.args["data"]["layerId"], picture: event.picture, rect: event.layerRect};
+ var paintEvent = {layerId: event.args["data"]["layerId"], picture: event.picture, rect: event.layerRect, traceEvent: event};
this._framePendingCommit.paints.push(paintEvent);
}
@@ -588,7 +588,7 @@ WebInspector.TimelineFrame.prototype = {
}
/**
- * @typedef {!{layerId: string, rect: !Array.<number>, picture: string}}
+ * @typedef {!{layerId: string, rect: !Array.<number>, picture: string, traceEvent: !WebInspector.TracingModel.Event}}
*/
WebInspector.LayerPaintEvent;

Powered by Google App Engine
This is Rietveld 408576698