summaryrefslogtreecommitdiffstats
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorMiao Wang <miaowang@google.com>2015-03-06 01:05:28 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-03-06 01:05:28 +0000
commit4b5af9bce10dbb8b6d5ff27a5f0c49f3498a6245 (patch)
treece861763dad707c884f2d83b30fbf0a0c9f28b15 /rs/java/android/renderscript/RenderScript.java
parent8b86ee9fb5909a95a46907aede4d1b22b4ef3bba (diff)
parent45cec0a9711f736df26fd097c6d74834e350f9bc (diff)
downloadframeworks_base-4b5af9bce10dbb8b6d5ff27a5f0c49f3498a6245.zip
frameworks_base-4b5af9bce10dbb8b6d5ff27a5f0c49f3498a6245.tar.gz
frameworks_base-4b5af9bce10dbb8b6d5ff27a5f0c49f3498a6245.tar.bz2
Merge "[RenderScript] Update the java API about Allocation copyTo & From FieldPacker"
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
-rw-r--r--rs/java/android/renderscript/RenderScript.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/rs/java/android/renderscript/RenderScript.java b/rs/java/android/renderscript/RenderScript.java
index 29004c5..b992d44 100644
--- a/rs/java/android/renderscript/RenderScript.java
+++ b/rs/java/android/renderscript/RenderScript.java
@@ -579,12 +579,11 @@ public class RenderScript {
}
native void rsnAllocationElementRead(long con,long id, int xoff, int yoff, int zoff,
- int mip, int compIdx, Object d, int sizeBytes, int dt);
+ int mip, int compIdx, byte[] d, int sizeBytes);
synchronized void nAllocationElementRead(long id, int xoff, int yoff, int zoff,
- int mip, int compIdx, Object d, int sizeBytes,
- Element.DataType dt) {
+ int mip, int compIdx, byte[] d, int sizeBytes) {
validate();
- rsnAllocationElementRead(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes, dt.mID);
+ rsnAllocationElementRead(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes);
}
native void rsnAllocationRead2D(long con, long id, int xoff, int yoff, int mip, int face,