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.
This commit is contained in:
@@ -219,6 +219,10 @@ public class RenderScript {
|
||||
mDev = 0;
|
||||
}
|
||||
|
||||
boolean isAlive() {
|
||||
return mContext != 0;
|
||||
}
|
||||
|
||||
void pause() {
|
||||
nContextPause();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user