Make View::Vis() public.

This commit is contained in:
Bartosz Taudul 2023-04-08 18:44:17 +02:00
parent 6e815d13a0
commit d737b911e9
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -126,6 +126,13 @@ public:
const MessageData* GetMessageHighlight() const { return m_msgHighlight; }
tracy_force_inline bool& Vis( const void* ptr )
{
auto it = m_visMap.find( ptr );
if( it == m_visMap.end() ) it = m_visMap.emplace( ptr, true ).first;
return it->second;
}
void HighlightThread( uint64_t thread );
void ZoomToRange( int64_t start, int64_t end, bool pause = true );
bool DrawPlot( const TimelineContext& ctx, PlotData& plot, int& offset );
@ -396,13 +403,6 @@ private:
static const char* DecodeContextSwitchReason( uint8_t reason );
static const char* DecodeContextSwitchReasonCode( uint8_t reason );
tracy_force_inline bool& Vis( const void* ptr )
{
auto it = m_visMap.find( ptr );
if( it == m_visMap.end() ) it = m_visMap.emplace( ptr, true ).first;
return it->second;
}
Worker m_worker;
std::string m_filename, m_filenameStaging;
bool m_staticView;