summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/wps_internals.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2013-02-12 21:00:05 +1100
committerJonathan Gordon <rockbox@jdgordon.info>2013-02-12 21:01:13 +1100
commitaaf30651df27e0eb6fab876502fa1e6c084160bf (patch)
tree57601fbe5e54ed290bc6c966b059af801bd0d1bb /apps/gui/skin_engine/wps_internals.h
parent69228f92dbddc9940166c0d7af2b4c79d55f85e7 (diff)
downloadrockbox-aaf30651df27e0eb6fab876502fa1e6c084160bf.tar.gz
rockbox-aaf30651df27e0eb6fab876502fa1e6c084160bf.zip
skin_engine: Add a debug screen to display skin ram usage
Change-Id: Ida9c33211d9360ac88e30a2cf8df9f191bee8b45
Diffstat (limited to 'apps/gui/skin_engine/wps_internals.h')
-rw-r--r--apps/gui/skin_engine/wps_internals.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h
index 72bab9b668..c9d5429484 100644
--- a/apps/gui/skin_engine/wps_internals.h
+++ b/apps/gui/skin_engine/wps_internals.h
@@ -31,6 +31,17 @@
31#include "core_alloc.h" 31#include "core_alloc.h"
32#endif 32#endif
33 33
34struct skin_stats {
35 size_t buflib_handles;
36 size_t tree_size;
37 size_t images_size;
38};
39
40int skin_get_num_skins(void);
41struct skin_stats *skin_get_stats(int number, int screen);
42#define skin_clear_stats(stats) memset(stats, 0, sizeof(struct skin_stats))
43bool skin_backdrop_get_debug(int index, char **path, int *ref_count, size_t *size);
44
34/* Timeout unit expressed in HZ. In WPS, all timeouts are given in seconds 45/* Timeout unit expressed in HZ. In WPS, all timeouts are given in seconds
35 (possibly with a decimal fraction) but stored as integer values. 46 (possibly with a decimal fraction) but stored as integer values.
36 E.g. 2.5 is stored as 25. This means 25 tenth of a second, i.e. 25 units. 47 E.g. 2.5 is stored as 25. This means 25 tenth of a second, i.e. 25 units.