Switch plot drawing to the timeline items system.

This commit is contained in:
Bartosz Taudul
2022-09-03 16:54:46 +02:00
parent 55a82ea714
commit b481bb367c
9 changed files with 358 additions and 381 deletions

View File

@@ -4,6 +4,7 @@
#include "TracyMouse.hpp"
#include "TracyPrint.hpp"
#include "TracySourceView.hpp"
#include "TracyTimelineItemPlot.hpp"
#include "TracyView.hpp"
namespace tracy
@@ -1037,7 +1038,10 @@ void View::DrawTimeline()
if( m_vd.drawPlots )
{
offset = DrawPlots( offset, pxns, wpos, hover, yMin, yMax );
for( const auto& v : m_worker.GetPlots() )
{
m_tc.AddItem<TimelineItemPlot>( v );
}
}
m_tc.End( pxns, offset, wpos, hover, yMin, yMax );