Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-09-04 15:46:51 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-09-04 15:46:51 +0300
commit44efb15df1eb586d27b69bb346e979eb1b45ae0a (patch)
tree47861398278f6f48b02fec50e64454dce3bd2d8e /server/TracyTimelineController.cpp
parentad2fc0312545a62138ebde985ea1d429ddd13cae (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/TracyTimelineController.cpp')
-rw-r--r--server/TracyTimelineController.cpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/server/TracyTimelineController.cpp b/server/TracyTimelineController.cpp
index 6ca8ccb2..2fadf6cd 100644
--- a/server/TracyTimelineController.cpp
+++ b/server/TracyTimelineController.cpp
@@ -44,45 +44,4 @@ void TimelineController::End( double pxns, int offset, const ImVec2& wpos, bool
m_scroll = scrollPos;
}
-float TimelineController::AdjustThreadPosition( VisData& vis, float wy, int& offset )
-{
- if( vis.offset < offset )
- {
- vis.offset = offset;
- }
- else if( vis.offset > offset )
- {
- const auto diff = vis.offset - offset;
- const auto move = std::max( 2.0, diff * 10.0 * ImGui::GetIO().DeltaTime );
- offset = vis.offset = int( std::max<double>( vis.offset - move, offset ) );
- }
-
- return offset + wy;
-}
-
-void TimelineController::AdjustThreadHeight( VisData& vis, int oldOffset, int& offset )
-{
- const auto h = offset - oldOffset;
- if( vis.height > h )
- {
- vis.height = h;
- offset = oldOffset + vis.height;
- }
- else if( vis.height < h )
- {
- if( m_firstFrame )
- {
- vis.height = h;
- offset = oldOffset + h;
- }
- else
- {
- const auto diff = h - vis.height;
- const auto move = std::max( 2.0, diff * 10.0 * ImGui::GetIO().DeltaTime );
- vis.height = int( std::min<double>( vis.height + move, h ) );
- offset = oldOffset + vis.height;
- }
- }
-}
-
}