diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-09-04 15:46:51 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-09-04 15:46:51 +0300 |
commit | 44efb15df1eb586d27b69bb346e979eb1b45ae0a (patch) | |
tree | 47861398278f6f48b02fec50e64454dce3bd2d8e /server/TracyView_Options.cpp | |
parent | ad2fc0312545a62138ebde985ea1d429ddd13cae (diff) |
Remove VisData.
Its functionality is now incorporated into TimelineItem. For purposes of
maintaining visibility of frame sets and locks a much simpler ptr -> bool map
is now used.
Diffstat (limited to 'server/TracyView_Options.cpp')
-rw-r--r-- | server/TracyView_Options.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/server/TracyView_Options.cpp b/server/TracyView_Options.cpp index 352907bd..b7f887d6 100644 --- a/server/TracyView_Options.cpp +++ b/server/TracyView_Options.cpp @@ -283,7 +283,7 @@ void View::DrawOptions() { for( const auto& l : m_worker.GetLockMap() ) { - m_tc.Vis( l.second ).visible = true; + Vis( l.second ) = true; } } ImGui::SameLine(); @@ -291,7 +291,7 @@ void View::DrawOptions() { for( const auto& l : m_worker.GetLockMap() ) { - m_tc.Vis( l.second ).visible = false; + Vis( l.second ) = false; } } ImGui::SameLine(); @@ -307,7 +307,7 @@ void View::DrawOptions() { for( const auto& l : m_worker.GetLockMap() ) { - if( l.second->threadList.size() != 1 && l.second->isContended ) m_tc.Vis( l.second ).visible = true; + if( l.second->threadList.size() != 1 && l.second->isContended ) Vis( l.second ) = true; } } ImGui::SameLine(); @@ -315,7 +315,7 @@ void View::DrawOptions() { for( const auto& l : m_worker.GetLockMap() ) { - if( l.second->threadList.size() != 1 && l.second->isContended ) m_tc.Vis( l.second ).visible = false; + if( l.second->threadList.size() != 1 && l.second->isContended ) Vis( l.second ) = false; } } @@ -335,7 +335,7 @@ void View::DrawOptions() { sprintf( buf, "%" PRIu32 ": %s", l.first, m_worker.GetString( m_worker.GetSourceLocation( l.second->srcloc ).function ) ); } - SmallCheckbox( buf, &m_tc.Vis( l.second ).visible ); + SmallCheckbox( buf, &Vis( l.second ) ); if( ImGui::IsItemHovered() ) { m_lockHoverHighlight = l.first; @@ -385,7 +385,7 @@ void View::DrawOptions() { for( const auto& l : m_worker.GetLockMap() ) { - if( l.second->threadList.size() != 1 && !l.second->isContended ) m_tc.Vis( l.second ).visible = true; + if( l.second->threadList.size() != 1 && !l.second->isContended ) Vis( l.second ) = true; } } ImGui::SameLine(); @@ -393,7 +393,7 @@ void View::DrawOptions() { for( const auto& l : m_worker.GetLockMap() ) { - if( l.second->threadList.size() != 1 && !l.second->isContended ) m_tc.Vis( l.second ).visible = false; + if( l.second->threadList.size() != 1 && !l.second->isContended ) Vis( l.second ) = false; } } @@ -413,7 +413,7 @@ void View::DrawOptions() { sprintf( buf, "%" PRIu32 ": %s", l.first, m_worker.GetString( m_worker.GetSourceLocation( l.second->srcloc ).function ) ); } - SmallCheckbox( buf, &m_tc.Vis( l.second ).visible ); + SmallCheckbox( buf, &Vis( l.second ) ); if( ImGui::IsItemHovered() ) { m_lockHoverHighlight = l.first; @@ -463,7 +463,7 @@ void View::DrawOptions() { for( const auto& l : m_worker.GetLockMap() ) { - if( l.second->threadList.size() == 1 ) m_tc.Vis( l.second ).visible = true; + if( l.second->threadList.size() == 1 ) Vis( l.second ) = true; } } ImGui::SameLine(); @@ -471,7 +471,7 @@ void View::DrawOptions() { for( const auto& l : m_worker.GetLockMap() ) { - if( l.second->threadList.size() == 1 ) m_tc.Vis( l.second ).visible = false; + if( l.second->threadList.size() == 1 ) Vis( l.second ) = false; } } @@ -491,7 +491,7 @@ void View::DrawOptions() { sprintf( buf, "%" PRIu32 ": %s", l.first, m_worker.GetString( m_worker.GetSourceLocation( l.second->srcloc ).function ) ); } - SmallCheckbox( buf, &m_tc.Vis( l.second ).visible ); + SmallCheckbox( buf, &Vis( l.second ) ); if( ImGui::IsItemHovered() ) { m_lockHoverHighlight = l.first; @@ -707,7 +707,7 @@ void View::DrawOptions() { for( const auto& fd : m_worker.GetFrames() ) { - m_tc.Vis( fd ).visible = true; + Vis( fd ) = true; } } ImGui::SameLine(); @@ -715,7 +715,7 @@ void View::DrawOptions() { for( const auto& fd : m_worker.GetFrames() ) { - m_tc.Vis( fd ).visible = false; + Vis( fd ) = false; } } @@ -723,7 +723,7 @@ void View::DrawOptions() for( const auto& fd : m_worker.GetFrames() ) { ImGui::PushID( idx++ ); - SmallCheckbox( GetFrameSetName( *fd ), &m_tc.Vis( fd ).visible ); + SmallCheckbox( GetFrameSetName( *fd ), &Vis( fd ) ); ImGui::PopID(); ImGui::SameLine(); ImGui::TextDisabled( "%s %sframes", RealToString( fd->frames.size() ), fd->continuous ? "" : "discontinuous " ); |