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

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

Issue 2879943003: DevTools: render product badges behind the setting. (Closed)
Patch Set: removed module from the list. 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 0d0d1dc50d475c647291a47acace6d0d5f56a602..501ba7ca18f23da972126905884ca366595e8add 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 @@ Profiler.ProfileFlameChartDataProvider = class {
}
/**
- * @return {!PerfUI.FlameChart.ColorGenerator}
+ * @return {!Common.Color.Generator}
*/
static colorGenerator() {
if (!Profiler.ProfileFlameChartDataProvider._colorGenerator) {
- var colorGenerator = new PerfUI.FlameChart.ColorGenerator(
- {min: 30, max: 330}, {min: 50, max: 80, count: 5}, {min: 80, max: 90, count: 3});
+ var colorGenerator =
+ new Common.Color.Generator({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