Add getName to renderscript base object

Change-Id: Ia28f88d2c9d679692778641548fdac08c1041d02
This commit is contained in:
Alex Sakhartchouk
2011-07-26 14:13:32 -07:00
parent b33d46cc77
commit 0400b07c6b
2 changed files with 8 additions and 0 deletions

View File

@@ -17045,6 +17045,7 @@ package android.renderscript {
public class BaseObj {
method public synchronized void destroy();
method public java.lang.String getName();
method public void setName(java.lang.String);
}

View File

@@ -97,6 +97,13 @@ public class BaseObj {
}
}
/**
* @return name of the renderscript object
*/
public String getName() {
return mName;
}
protected void finalize() throws Throwable {
if (!mDestroyed) {
if(mID != 0 && mRS.isAlive()) {