forked from organicmaps/organicmaps
added ResourcePool::ResName for the purpose of logging.
This commit is contained in:
parent
0e5ce3fc48
commit
dc50e6ca0c
1 changed files with 11 additions and 0 deletions
|
@ -70,6 +70,11 @@ struct BasePoolTraits
|
|||
virtual void UpdateState()
|
||||
{
|
||||
}
|
||||
|
||||
char const * ResName() const
|
||||
{
|
||||
return m_factory.ResName();
|
||||
}
|
||||
};
|
||||
|
||||
/// This traits stores the free elements in a separate pool and has
|
||||
|
@ -237,6 +242,7 @@ public:
|
|||
virtual bool IsCancelled() const = 0;
|
||||
virtual void UpdateState() = 0;
|
||||
virtual void SetIsDebugging(bool flag) = 0;
|
||||
virtual char const * ResName() const = 0;
|
||||
};
|
||||
|
||||
// This class tracks OpenGL resources allocation in
|
||||
|
@ -300,4 +306,9 @@ public:
|
|||
{
|
||||
m_traits->m_IsDebugging = isDebugging;
|
||||
}
|
||||
|
||||
char const * ResName() const
|
||||
{
|
||||
return m_traits->ResName();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue