diff options
author | Jason Sams <rjsams@android.com> | 2009-09-25 14:51:22 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2009-09-25 14:51:22 -0700 |
commit | e514b45de8561fbc6ef6770845102ca10b0a69d7 (patch) | |
tree | 572fdc8b1dbc14b53c61f9c81f90fbc642024b45 /rsScriptC.h | |
parent | 86f1b23aaaf9b8822a009d8c3e585e46768abb6a (diff) | |
download | rs-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.h | 2 |
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 { |