Merge "Add getName to renderscript base object"
This commit is contained in:
committed by
Android (Google) Code Review
commit
804b3d76c3
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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()) {
|
||||
|
Reference in New Issue
Block a user