diff --git a/server/TracyTimelineItem.hpp b/server/TracyTimelineItem.hpp index 4daa0c9b..4233b3bb 100644 --- a/server/TracyTimelineItem.hpp +++ b/server/TracyTimelineItem.hpp @@ -18,9 +18,6 @@ public: virtual ~TimelineItem() = default; void Draw( bool firstFrame, double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax ); - virtual bool DrawContents( double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax ) = 0; - - virtual bool IsEmpty() const { return false; } void VisibilityCheckbox(); void SetVisible( bool visible ) { m_visible = visible; } @@ -37,6 +34,10 @@ protected: virtual int64_t RangeBegin() const = 0; virtual int64_t RangeEnd() const = 0; + virtual bool DrawContents( double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax ) = 0; + + virtual bool IsEmpty() const { return false; } + private: void AdjustThreadHeight( bool firstFrame, int oldOffset, int& offset ); float AdjustThreadPosition( float wy, int& offset ); diff --git a/server/TracyTimelineItemPlot.hpp b/server/TracyTimelineItemPlot.hpp index d549777b..f51aa06f 100644 --- a/server/TracyTimelineItemPlot.hpp +++ b/server/TracyTimelineItemPlot.hpp @@ -12,9 +12,6 @@ class TimelineItemPlot final : public TimelineItem public: TimelineItemPlot( View& view, Worker& worker, PlotData* plot ); - bool DrawContents( double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax ) override; - bool IsEmpty() const override; - protected: uint32_t HeaderColor() const override { return 0xFF44DDDD; } uint32_t HeaderColorInactive() const override { return 0xFF226E6E; } @@ -27,6 +24,10 @@ protected: void HeaderTooltip( const char* label ) const override; void HeaderExtraContents( int offset, const ImVec2& wpos, float labelWidth, double pxns, bool hover ) override; + bool DrawContents( double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax ) override; + + bool IsEmpty() const override; + private: PlotData* m_plot; };