diff options
author | Alex Sakhartchouk <alexst@google.com> | 2010-08-11 14:41:28 -0700 |
---|---|---|
committer | Alex Sakhartchouk <alexst@google.com> | 2010-08-12 10:16:55 -0700 |
commit | 0de9444aa6c25d2c586e8204a6168d10e67376e0 (patch) | |
tree | f224210eec7da35adb2000014b94246b938fe7c0 /graphics/java/android/renderscript/Type.java | |
parent | aa56ede87936f28f368e14e3b08d31de4005bb30 (diff) | |
download | frameworks_base-0de9444aa6c25d2c586e8204a6168d10e67376e0.zip frameworks_base-0de9444aa6c25d2c586e8204a6168d10e67376e0.tar.gz frameworks_base-0de9444aa6c25d2c586e8204a6168d10e67376e0.tar.bz2 |
Preparing renderscript java code for use with phanton references.
Changing rs_quaternion to be float4
Change-Id: Ibf49f412be8979eaa04cb252b407467eacd9dbf0
Diffstat (limited to 'graphics/java/android/renderscript/Type.java')
-rw-r--r-- | graphics/java/android/renderscript/Type.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/graphics/java/android/renderscript/Type.java b/graphics/java/android/renderscript/Type.java index 8e45f2b..21053c9 100644 --- a/graphics/java/android/renderscript/Type.java +++ b/graphics/java/android/renderscript/Type.java @@ -97,8 +97,7 @@ public class Type extends BaseObj { Type(int id, RenderScript rs) { - super(rs); - mID = id; + super(id, rs); mNativeCache = 0; } @@ -125,7 +124,7 @@ public class Type extends BaseObj { int elementID = dataBuffer[5]; if(elementID != 0) { - mElement = new Element(mRS, elementID); + mElement = new Element(elementID, mRS); mElement.updateFromNative(); } calcElementCount(); |