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 #endif
} }
DrawZones(); DrawTimeline();
ImGui::End(); ImGui::End();
ImGui::End(); ImGui::End();

View File

@ -187,9 +187,9 @@ private:
void DrawNotificationArea(); void DrawNotificationArea();
bool DrawConnection(); bool DrawConnection();
void DrawFrames(); void DrawFrames();
void DrawZoneFramesHeader(); void DrawTimelineFramesHeader();
void DrawZoneFrames( const FrameData& frames ); void DrawTimelineFrames( const FrameData& frames );
void DrawZones(); 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 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 ); void DrawSamples( const Vector<SampleData>& vec, bool hover, double pxns, int64_t nspx, const ImVec2& wpos, int offset );
#ifndef TRACY_NO_STATISTICS #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 wpos = ImGui::GetCursorScreenPos();
const auto dpos = wpos + ImVec2( 0.5f, 0.5f ); 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 wpos = ImGui::GetCursorScreenPos();
const auto dpos = wpos + ImVec2( 0.5f, 0.5f ); const auto dpos = wpos + ImVec2( 0.5f, 0.5f );

View File

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