Rename DrawZone* -> DrawTimeline*.

This commit is contained in:
Bartosz Taudul 2022-07-02 15:38:10 +02:00
parent e3b11821c3
commit 9fb618c12d
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
4 changed files with 9 additions and 9 deletions

View File

@ -980,7 +980,7 @@ bool View::DrawImpl()
#endif
}
DrawZones();
DrawTimeline();
ImGui::End();
ImGui::End();

View File

@ -187,9 +187,9 @@ private:
void DrawNotificationArea();
bool DrawConnection();
void DrawFrames();
void DrawZoneFramesHeader();
void DrawZoneFrames( const FrameData& frames );
void DrawZones();
void DrawTimelineFramesHeader();
void DrawTimelineFrames( const FrameData& frames );
void DrawTimeline();
void DrawContextSwitches( const ContextSwitch* ctx, const Vector<SampleData>& sampleData, bool hover, double pxns, int64_t nspx, const ImVec2& wpos, int offset, int endOffset, bool isFiber );
void DrawSamples( const Vector<SampleData>& vec, bool hover, double pxns, int64_t nspx, const ImVec2& wpos, int offset );
#ifndef TRACY_NO_STATISTICS

View File

@ -22,7 +22,7 @@ static tracy_force_inline uint32_t GetColorMuted( uint32_t color, bool active )
}
}
void View::DrawZoneFramesHeader()
void View::DrawTimelineFramesHeader()
{
const auto wpos = ImGui::GetCursorScreenPos();
const auto dpos = wpos + ImVec2( 0.5f, 0.5f );
@ -88,7 +88,7 @@ void View::DrawZoneFramesHeader()
}
}
void View::DrawZoneFrames( const FrameData& frames )
void View::DrawTimelineFrames( const FrameData& frames )
{
const auto wpos = ImGui::GetCursorScreenPos();
const auto dpos = wpos + ImVec2( 0.5f, 0.5f );

View File

@ -12,7 +12,7 @@ enum { MinVisSize = 3 };
extern double s_time;
void View::DrawZones()
void View::DrawTimeline()
{
m_msgHighlight.Decay( nullptr );
m_zoneSrcLocHighlight.Decay( 0 );
@ -75,13 +75,13 @@ void View::DrawZones()
}
}
DrawZoneFramesHeader();
DrawTimelineFramesHeader();
auto& frames = m_worker.GetFrames();
for( auto fd : frames )
{
if( Vis( fd ).visible )
{
DrawZoneFrames( *fd );
DrawTimelineFrames( *fd );
}
}