Merge "Add getName to renderscript base object"

This commit is contained in:
Alex Sakhartchouk
2011-07-27 09:50:35 -07:00
committed by Android (Google) Code Review
2 changed files with 8 additions and 0 deletions

View File

@ -17046,6 +17046,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()) {