diff options
| author | 2011-07-26 14:13:32 -0700 | |
|---|---|---|
| committer | 2011-07-26 14:13:32 -0700 | |
| commit | 0400b07c6bfc3fca49bc10db0a2040aba8664c8e (patch) | |
| tree | 6b480b1549f6b77df7255fe09857d054b059fc2e | |
| parent | b33d46cc77b0e96a4d0ff39b85158c5c4eca3855 (diff) | |
Add getName to renderscript base object
Change-Id: Ia28f88d2c9d679692778641548fdac08c1041d02
| -rw-r--r-- | api/current.txt | 1 | ||||
| -rw-r--r-- | graphics/java/android/renderscript/BaseObj.java | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index db7713ad7161..0872275b4505 100644 --- a/api/current.txt +++ b/api/current.txt @@ -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); } diff --git a/graphics/java/android/renderscript/BaseObj.java b/graphics/java/android/renderscript/BaseObj.java index 63e7dd1f74fa..2e55c48e6e18 100644 --- a/graphics/java/android/renderscript/BaseObj.java +++ b/graphics/java/android/renderscript/BaseObj.java @@ -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()) { |