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

Unified Diff: third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileFlameChart.js

Issue 2880913002: Revert of DevTools: render product badges behind the setting. (Closed)
Patch Set: Created 3 years, 7 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/profiler/CPUProfileFlameChart.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileFlameChart.js b/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileFlameChart.js
index 501ba7ca18f23da972126905884ca366595e8add..0d0d1dc50d475c647291a47acace6d0d5f56a602 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileFlameChart.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileFlameChart.js
@@ -39,12 +39,12 @@
}
/**
- * @return {!Common.Color.Generator}
+ * @return {!PerfUI.FlameChart.ColorGenerator}
*/
static colorGenerator() {
if (!Profiler.ProfileFlameChartDataProvider._colorGenerator) {
- var colorGenerator =
- new Common.Color.Generator({min: 30, max: 330}, {min: 50, max: 80, count: 5}, {min: 80, max: 90, count: 3});
+ var colorGenerator = new PerfUI.FlameChart.ColorGenerator(
+ {min: 30, max: 330}, {min: 50, max: 80, count: 5}, {min: 80, max: 90, count: 3});
colorGenerator.setColorForID('(idle)', 'hsl(0, 0%, 94%)');
colorGenerator.setColorForID('(program)', 'hsl(0, 0%, 80%)');

Powered by Google App Engine
This is Rietveld 408576698