diff options
author | Jason Sams <rjsams@android.com> | 2010-11-09 17:11:40 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2010-11-09 17:11:40 -0800 |
commit | 06d69de78845659e6904ae4964e606a7f1a6a4a8 (patch) | |
tree | 15a497321026614c8338e40305b32e43b0a0ff31 /graphics/java/android/renderscript/Element.java | |
parent | 641b0628cd9d8be001fa445771d460b47ba1f6cb (diff) | |
download | frameworks_base-06d69de78845659e6904ae4964e606a7f1a6a4a8.zip frameworks_base-06d69de78845659e6904ae4964e606a7f1a6a4a8.tar.gz frameworks_base-06d69de78845659e6904ae4964e606a7f1a6a4a8.tar.bz2 |
Continue error check improvements and write some docs.
Change-Id: I345b08490da21d9ee715ff1ddc80c1a816b579f4
Diffstat (limited to 'graphics/java/android/renderscript/Element.java')
-rw-r--r-- | graphics/java/android/renderscript/Element.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/graphics/java/android/renderscript/Element.java b/graphics/java/android/renderscript/Element.java index f844b7e..8907cd2 100644 --- a/graphics/java/android/renderscript/Element.java +++ b/graphics/java/android/renderscript/Element.java @@ -373,10 +373,11 @@ public class Element extends BaseObj { @Override void updateFromNative() { + super.updateFromNative(); // we will pack mType; mKind; mNormalized; mVectorSize; NumSubElements int[] dataBuffer = new int[5]; - mRS.nElementGetNativeData(mID, dataBuffer); + mRS.nElementGetNativeData(getID(), dataBuffer); mNormalized = dataBuffer[2] == 1 ? true : false; mVectorSize = dataBuffer[3]; @@ -399,7 +400,7 @@ public class Element extends BaseObj { mElementNames = new String[numSubElements]; int[] subElementIds = new int[numSubElements]; - mRS.nElementGetSubElements(mID, subElementIds, mElementNames); + mRS.nElementGetSubElements(getID(), subElementIds, mElementNames); for(int i = 0; i < numSubElements; i ++) { mElements[i] = new Element(subElementIds[i], mRS); mElements[i].updateFromNative(); @@ -523,7 +524,7 @@ public class Element extends BaseObj { int[] ids = new int[ein.length]; for (int ct = 0; ct < ein.length; ct++ ) { - ids[ct] = ein[ct].mID; + ids[ct] = ein[ct].getID(); } int id = mRS.nElementCreate2(ids, sin, asin); return new Element(id, mRS, ein, sin, asin); |