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

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

Issue 1144963002: Timeline: visually distinguish idle frames (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review comments Created 5 years, 6 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/TimelineFlameChart.js
diff --git a/Source/devtools/front_end/timeline/TimelineFlameChart.js b/Source/devtools/front_end/timeline/TimelineFlameChart.js
index efb8165fab752d650898908b13c9ae9f6480d2ef..de2e390c6673a0d90b0b987872b92d9d4f7eba60 100644
--- a/Source/devtools/front_end/timeline/TimelineFlameChart.js
+++ b/Source/devtools/front_end/timeline/TimelineFlameChart.js
@@ -580,7 +580,7 @@ WebInspector.TimelineFlameChartDataProvider.prototype = {
barY += vPadding;
barHeight -= 2 * vPadding + 1;
- context.fillStyle = "#ccc";
+ context.fillStyle = frame.idle ? "#eee" : "#ccc";
context.fillRect(barX, barY, barWidth, barHeight);
// Draw frame perforation.
« no previous file with comments | « LayoutTests/inspector/tracing/frame-model-expected.txt ('k') | Source/devtools/front_end/timeline/TimelineFrameModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698