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

Unified Diff: Source/devtools/front_end/components/FlameChart.js

Issue 706313002: DevTools: draw load/first paint marks as tall vertical delimiters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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/components/FlameChart.js
diff --git a/Source/devtools/front_end/components/FlameChart.js b/Source/devtools/front_end/components/FlameChart.js
index 42637d929c50adde4bc15073d3f64c945ea50812..1f3caa6966c6b1381a2e3f7c0c4cffa5e3487a23 100644
--- a/Source/devtools/front_end/components/FlameChart.js
+++ b/Source/devtools/front_end/components/FlameChart.js
@@ -156,6 +156,12 @@ WebInspector.FlameChartDataProvider.prototype = {
markerTitle: function(index) { },
/**
+ * @param {number} index
+ * @return {boolean}
+ */
+ isTallMarker: function(index) { },
caseq 2014/11/07 17:39:40 nit: I wonder if we should generalize this to mark
yurys 2014/11/07 19:55:39 I don't see other types at the moment so there is
+
+ /**
* @return {number}
*/
minimumBoundary: function() { },
@@ -1038,6 +1044,18 @@ WebInspector.FlameChart.prototype = {
context.moveTo(position, 0);
context.lineTo(position, height);
context.stroke();
+ if (this._dataProvider.isTallMarker(i)) {
+ context.save()
+ context.lineWidth = 1;
caseq 2014/11/07 17:39:40 Is this supposed to have effect?
yurys 2014/11/07 19:55:39 Yes, because outer context scope sets line width t
caseq 2014/11/07 20:00:37 You have "context.lineWidth = 0.5;" below.
yurys 2014/11/07 20:02:56 Oh, I see, it should be just lineWidth = 1 and tra
+ context.translate(0.5, 0.5);
+ context.beginPath();
+ context.moveTo(position, height);
+ context.lineWidth = 0.5;
+ context.setLineDash([10, 5]);
+ context.lineTo(position, this._canvas.height);
+ context.stroke();
+ context.restore();
+ }
}
context.restore();
},

Powered by Google App Engine
This is Rietveld 408576698