summaryrefslogtreecommitdiffstats
path: root/rsProgram.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 /rsProgram.h
parent86f1b23aaaf9b8822a009d8c3e585e46768abb6a (diff)
downloadandroid_frameworks_rs-e514b45de8561fbc6ef6770845102ca10b0a69d7.tar.gz
android_frameworks_rs-e514b45de8561fbc6ef6770845102ca10b0a69d7.tar.bz2
android_frameworks_rs-e514b45de8561fbc6ef6770845102ca10b0a69d7.zip
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 'rsProgram.h')
-rw-r--r--rsProgram.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsProgram.h b/rsProgram.h
index bb3d9ac3..26b78ddd 100644
--- a/rsProgram.h
+++ b/rsProgram.h
@@ -29,7 +29,7 @@ namespace renderscript {
class Program : public ObjectBase
{
public:
- Program(Element *in, Element *out);
+ Program(Context *, Element *in, Element *out);
virtual ~Program();
void bindAllocation(Allocation *);