mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Add non-View-dependent thread color getter.
This commit is contained in:
@@ -140,6 +140,12 @@ void TooltipNormalizedName( const char* name, const char* normalized )
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t GetThreadColor( uint64_t thread, int depth, bool dynamic )
|
||||
{
|
||||
if( !dynamic ) return 0xFFCC5555;
|
||||
return GetHsvColor( thread, depth );
|
||||
}
|
||||
|
||||
uint32_t GetPlotColor( const PlotData& plot, const Worker& worker )
|
||||
{
|
||||
switch( plot.type )
|
||||
|
||||
Reference in New Issue
Block a user