1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Calculate draw lists for plots.

This commit is contained in:
Bartosz Taudul
2023-04-18 20:28:05 +02:00
parent 0217c06377
commit 8f5022c3c8
2 changed files with 124 additions and 1 deletions
+6
View File
@@ -2,6 +2,7 @@
#define __TRACYTIMELINEITEMPLOT_HPP__
#include "TracyEvent.hpp"
#include "TracyTimelineDraw.hpp"
#include "TracyTimelineItem.hpp"
namespace tracy
@@ -25,11 +26,16 @@ protected:
void HeaderExtraContents( const TimelineContext& ctx, int offset, float labelWidth ) override;
bool DrawContents( const TimelineContext& ctx, int& offset ) override;
void DrawFinished() override;
bool IsEmpty() const override;
void Preprocess( const TimelineContext& ctx, TaskDispatch& td, bool visible, int yPos ) override;
private:
PlotData* m_plot;
std::vector<PlotDraw> m_draw;
};
}