summaryrefslogtreecommitdiff
path: root/rs_hal.h
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2013-03-11 12:12:03 -0700
committerTim Murray <timmurray@google.com>2013-03-11 12:12:35 -0700
commit34689388556747b52c3c2f1c894929fb44580898 (patch)
tree9dd40e81d828353f2da6d6b975159dce898c284d /rs_hal.h
parentcadfac411e6690e39de36c4f9e94deb9b7d2d08e (diff)
downloadrs-34689388556747b52c3c2f1c894929fb44580898.tar.gz
Add custom allocator support for Allocation objects.
Change-Id: Iab546455354c2ee72797658fdcd49c90a5893527
Diffstat (limited to 'rs_hal.h')
-rw-r--r--rs_hal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/rs_hal.h b/rs_hal.h
index 4e246c4e..6a71930c 100644
--- a/rs_hal.h
+++ b/rs_hal.h
@@ -87,7 +87,8 @@ typedef struct {
void (*getVersion)(unsigned int *major, unsigned int *minor);
void (*setPriority)(const Context *, int32_t priority);
-
+ void* (*allocRuntimeMem)(size_t size, uint32_t flags);
+ void (*freeRuntimeMem)(void* ptr);
struct {
bool (*init)(const Context *rsc, ScriptC *s,