Skip to content

Commit

Permalink
Merge "Reintroduce jank color matching in scroll jank plugin." into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Harkiran Bolaria authored and Gerrit Code Review committed Dec 14, 2023
2 parents 90f8280 + ac073c7 commit 9b1e5e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/tracks/chrome_scroll_jank/scroll_jank_v3_track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {
} from './index';
import {JANK_COLOR} from './jank_colors';
import {ScrollJankV3DetailsPanel} from './scroll_jank_v3_details_panel';
import {getColorForSlice} from '../../common/colorizer';

const UNKNOWN_SLICE_NAME = 'Unknown';
const JANK_SLICE_NAME = ' Jank';
Expand Down Expand Up @@ -94,7 +95,7 @@ export class ScrollJankV3Track extends
if (stage == UNKNOWN_SLICE_NAME) {
return {...slice, colorScheme: JANK_COLOR};
} else {
return slice;
return {...slice, colorScheme: getColorForSlice(stage)};
}
}

Expand Down

0 comments on commit 9b1e5e1

Please sign in to comment.