summaryrefslogtreecommitdiff
path: root/rsScriptC.h
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2009-09-25 14:51:22 -0700
committerJason Sams <rjsams@android.com>2009-09-25 14:51:22 -0700
commite514b45de8561fbc6ef6770845102ca10b0a69d7 (patch)
tree572fdc8b1dbc14b53c61f9c81f90fbc642024b45 /rsScriptC.h
parent86f1b23aaaf9b8822a009d8c3e585e46768abb6a (diff)
downloadrs-e514b45de8561fbc6ef6770845102ca10b0a69d7.tar.gz
Improve renderscript context teardown. Track object in the system and then force their cleanup by releasing all user references once destroy context is called. Java layer will no longer send destroy notifications for objects garbage collected once a context is destroyed.
Diffstat (limited to 'rsScriptC.h')
-rw-r--r--rsScriptC.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsScriptC.h b/rsScriptC.h
index 16eb8de5..96161d8c 100644
--- a/rsScriptC.h
+++ b/rsScriptC.h
@@ -37,7 +37,7 @@ public:
typedef int (*RunScript_t)(uint32_t launchIndex);
typedef void (*VoidFunc_t)();
- ScriptC();
+ ScriptC(Context *);
virtual ~ScriptC();
struct Program_t {