diff options
| author | Alex Sakhartchouk <alexst@google.com> | 2010-07-15 15:19:07 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-07-15 15:19:07 -0700 |
| commit | 51b7ebc652e320ee89b546f3e699ba31e9394a2c (patch) | |
| tree | ddda99e3d491b3cf7d7c505ac6a2f072485b1020 /graphics/java/android/renderscript/Allocation.java | |
| parent | c96cdc9844d60d54683fb7700fc5908fdb8ff856 (diff) | |
| parent | dfac814c18f73dd7289f9927edca3e3b6ec6bc00 (diff) | |
| download | frameworks_base-51b7ebc652e320ee89b546f3e699ba31e9394a2c.zip frameworks_base-51b7ebc652e320ee89b546f3e699ba31e9394a2c.tar.gz frameworks_base-51b7ebc652e320ee89b546f3e699ba31e9394a2c.tar.bz2 | |
Merge "Populate java objects with native data from a3d file. Remove legacy constructor from programraster Make a3d object creation synchronous"
Diffstat (limited to 'graphics/java/android/renderscript/Allocation.java')
| -rw-r--r-- | graphics/java/android/renderscript/Allocation.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/graphics/java/android/renderscript/Allocation.java b/graphics/java/android/renderscript/Allocation.java index bfa61f3..87735b5 100644 --- a/graphics/java/android/renderscript/Allocation.java +++ b/graphics/java/android/renderscript/Allocation.java @@ -45,6 +45,16 @@ public class Allocation extends BaseObj { mID = id; } + @Override + void updateFromNative() { + mRS.validate(); + int typeID = mRS.nAllocationGetType(mID); + if(typeID != 0) { + mType = new Type(typeID, mRS); + mType.updateFromNative(); + } + } + public Type getType() { return mType; } |
