From 9fb618c12d1a1ed4411496adda9e59e530c2d1af Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 2 Jul 2022 15:38:10 +0200 Subject: [PATCH] Rename DrawZone* -> DrawTimeline*. --- server/TracyView.cpp | 2 +- server/TracyView.hpp | 6 +++--- server/TracyView_FrameTimeline.cpp | 4 ++-- server/TracyView_Timeline.cpp | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index a9018313..eebe22bf 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -980,7 +980,7 @@ bool View::DrawImpl() #endif } - DrawZones(); + DrawTimeline(); ImGui::End(); ImGui::End(); diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 790b98a5..514e627b 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -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, bool hover, double pxns, int64_t nspx, const ImVec2& wpos, int offset, int endOffset, bool isFiber ); void DrawSamples( const Vector& vec, bool hover, double pxns, int64_t nspx, const ImVec2& wpos, int offset ); #ifndef TRACY_NO_STATISTICS diff --git a/server/TracyView_FrameTimeline.cpp b/server/TracyView_FrameTimeline.cpp index b3d51bcf..a510bf33 100644 --- a/server/TracyView_FrameTimeline.cpp +++ b/server/TracyView_FrameTimeline.cpp @@ -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 ); diff --git a/server/TracyView_Timeline.cpp b/server/TracyView_Timeline.cpp index c5a85627..3c1a5f85 100644 --- a/server/TracyView_Timeline.cpp +++ b/server/TracyView_Timeline.cpp @@ -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 ); } }