Separate drawing callstack tooltip from drawing its contents.

This commit is contained in:
Bartosz Taudul 2021-11-13 01:08:36 +01:00
parent aed1360a9c
commit ce8e42f00b
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 8 additions and 3 deletions

View File

@ -17776,9 +17776,14 @@ void View::ZoneTooltip( const GpuEvent& ev )
void View::CallstackTooltip( uint32_t idx )
{
auto& cs = m_worker.GetCallstack( idx );
ImGui::BeginTooltip();
CallstackTooltipContents( idx );
ImGui::EndTooltip();
}
void View::CallstackTooltipContents( uint32_t idx )
{
auto& cs = m_worker.GetCallstack( idx );
int fidx = 0;
for( auto& entry : cs )
{
@ -17836,7 +17841,6 @@ void View::CallstackTooltip( uint32_t idx )
}
}
}
ImGui::EndTooltip();
}
void View::CrashTooltip()

View File

@ -262,6 +262,7 @@ private:
void ZoneTooltip( const ZoneEvent& ev );
void ZoneTooltip( const GpuEvent& ev );
void CallstackTooltip( uint32_t idx );
void CallstackTooltipContents( uint32_t idx );
void CrashTooltip();
const ZoneEvent* GetZoneParent( const ZoneEvent& zone ) const;