summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-26 15:14:30 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-26 15:14:30 +0300
commitefd0e0d1bdbaf5a5d5ff469a5fd7efdf9db446be (patch)
tree9f8b74d79fdadc8e6de9d6fdd427c02096df2e8b /src/resources/resourcemanager.h
parent8486afa9e52f96361cbf2c822258d6c5799c47d8 (diff)
downloadplus-efd0e0d1bdbaf5a5d5ff469a5fd7efdf9db446be.tar.gz
plus-efd0e0d1bdbaf5a5d5ff469a5fd7efdf9db446be.tar.bz2
plus-efd0e0d1bdbaf5a5d5ff469a5fd7efdf9db446be.tar.xz
plus-efd0e0d1bdbaf5a5d5ff469a5fd7efdf9db446be.zip
Add memory count functions into ResourceManager.
Diffstat (limited to 'src/resources/resourcemanager.h')
-rw-r--r--src/resources/resourcemanager.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h
index e518883fa..eef584f27 100644
--- a/src/resources/resourcemanager.h
+++ b/src/resources/resourcemanager.h
@@ -23,6 +23,8 @@
#ifndef RESOURCES_RESOURCEMANAGER_H
#define RESOURCES_RESOURCEMANAGER_H
+#include "resources/memorycounter.h"
+
#include "enums/simpletypes/append.h"
#include "utils/stringvector.h"
@@ -47,7 +49,7 @@ struct SDL_RWops;
/**
* A class for loading and managing resources.
*/
-class ResourceManager final
+class ResourceManager final : public MemoryCounter
{
friend class Resource;
@@ -253,6 +255,10 @@ class ResourceManager final
void clearCache();
+ int calcMemoryLocal() override final;
+
+ int calcMemoryChilds(const int level) override final;
+
static void init();
private: