PreprocessLocks() doesn't use yPos.

This commit is contained in:
Bartosz Taudul 2023-04-26 00:47:50 +02:00
parent 798249c81c
commit 745ca83de6
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 3 additions and 3 deletions

View File

@ -338,7 +338,7 @@ void TimelineItemThread::Preprocess( const TimelineContext& ctx, TaskDispatch& t
const auto& locks = m_worker.GetLockMap();
if( !locks.empty() )
{
PreprocessLocks( ctx, locks, m_thread->id, td, visible, yPos );
PreprocessLocks( ctx, locks, m_thread->id, td, visible );
}
}
}
@ -855,7 +855,7 @@ static Vector<LockEventPtr>::const_iterator GetNextLockEventShared( const Vector
return next;
}
void TimelineItemThread::PreprocessLocks( const TimelineContext& ctx, const unordered_flat_map<uint32_t, LockMap*>& locks, uint32_t tid, TaskDispatch& td, bool visible, int yPos )
void TimelineItemThread::PreprocessLocks( const TimelineContext& ctx, const unordered_flat_map<uint32_t, LockMap*>& locks, uint32_t tid, TaskDispatch& td, bool visible )
{
const auto vStart = ctx.vStart;
const auto vEnd = ctx.vEnd;

View File

@ -45,7 +45,7 @@ private:
void PreprocessContextSwitches( const TimelineContext& ctx, const ContextSwitch& ctxSwitch, bool visible );
void PreprocessSamples( const TimelineContext& ctx, const Vector<SampleData>& vec, bool visible, int yPos );
void PreprocessMessages( const TimelineContext& ctx, const Vector<short_ptr<MessageData>>& vec, uint64_t tid, bool visible, int yPos );
void PreprocessLocks( const TimelineContext& ctx, const unordered_flat_map<uint32_t, LockMap*>& locks, uint32_t tid, TaskDispatch& td, bool visible, int yPos );
void PreprocessLocks( const TimelineContext& ctx, const unordered_flat_map<uint32_t, LockMap*>& locks, uint32_t tid, TaskDispatch& td, bool visible );
const ThreadData* m_thread;
bool m_ghost;