summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/Allocation.java
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2010-08-04 14:45:48 -0700
committerAlex Sakhartchouk <alexst@google.com>2010-08-04 14:45:48 -0700
commitfb10c16a0528a418053e4b8e75eebe57476b86ef (patch)
tree3a48101a091f1e5b34a3c2dd96d7d01fcfd45635 /graphics/java/android/renderscript/Allocation.java
parentcf9a44cdf3647c8b31499ad6250f63259c0e34e2 (diff)
Added ability to set font color.
Propagating the name of meshes and allocations from native a3d to java Change-Id: If781f55340b5369459610e5e92ea69e240dcd24e
Diffstat (limited to 'graphics/java/android/renderscript/Allocation.java')
-rw-r--r--graphics/java/android/renderscript/Allocation.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/graphics/java/android/renderscript/Allocation.java b/graphics/java/android/renderscript/Allocation.java
index 87735b5856b6..46f3eae907f6 100644
--- a/graphics/java/android/renderscript/Allocation.java
+++ b/graphics/java/android/renderscript/Allocation.java
@@ -48,6 +48,7 @@ public class Allocation extends BaseObj {
@Override
void updateFromNative() {
mRS.validate();
+ mName = mRS.nGetName(mID);
int typeID = mRS.nAllocationGetType(mID);
if(typeID != 0) {
mType = new Type(typeID, mRS);