mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Worker must be mutable.
This is to allow use of various accessors that cache results, etc.
This commit is contained in:
@@ -14,7 +14,7 @@ class Worker;
|
||||
class TimelineItem
|
||||
{
|
||||
public:
|
||||
TimelineItem( View& view, const Worker& worker );
|
||||
TimelineItem( View& view, Worker& worker );
|
||||
virtual ~TimelineItem() = default;
|
||||
|
||||
void Draw( bool firstFrame, double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax );
|
||||
@@ -47,7 +47,7 @@ private:
|
||||
|
||||
protected:
|
||||
View& m_view;
|
||||
const Worker& m_worker;
|
||||
Worker& m_worker;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user