summaryrefslogtreecommitdiff
path: root/rsElement.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 /rsElement.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 'rsElement.h')
-rw-r--r--rsElement.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/rsElement.h b/rsElement.h
index 7b5a83d2..82da4417 100644
--- a/rsElement.h
+++ b/rsElement.h
@@ -28,7 +28,7 @@ namespace renderscript {
class Element : public ObjectBase
{
public:
- Element(uint32_t count);
+ Element(Context *, uint32_t count);
~Element();
@@ -59,7 +59,7 @@ protected:
ObjectBaseRef<Component> * mComponents;
//uint32_t *mOffsetTable;
- Element();
+ Element(Context *);
};