diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-04-23 19:23:38 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:37:55 +0300 |
commit | dc50e6ca0c8d8e61b8298a7947124612e4a834ac (patch) | |
tree | 5d62f51cdc0ef843ebacd0f39b7e6a124b52a885 /base | |
parent | 0e5ce3fc48523b3d72fd9c40fe05a01bc71971e9 (diff) |
added ResourcePool::ResName for the purpose of logging.
Diffstat (limited to 'base')
-rw-r--r-- | base/resource_pool.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/base/resource_pool.hpp b/base/resource_pool.hpp index 4e060838e4..fdb354e21f 100644 --- a/base/resource_pool.hpp +++ b/base/resource_pool.hpp @@ -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(); + } }; |