summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2012-12-04 17:59:29 -0800
committerTim Murray <timmurray@google.com>2012-12-04 18:27:07 -0800
commita314551d69098537337c970da615a8f8af58e1f1 (patch)
tree608b65ccb3d7f5324d57c907c7a80fec46faddc6 /graphics/java/android/renderscript/RenderScript.java
parent43cdf6d6795424e93ef232570ab8bbd9ae912041 (diff)
Add support for Bitmap-backed Allocations in Java.
Change-Id: Iab38a275aa6cdac91c76fa0d134fbc1e8f387913 Bug: 7256604
Diffstat (limited to 'graphics/java/android/renderscript/RenderScript.java')
-rw-r--r--graphics/java/android/renderscript/RenderScript.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/graphics/java/android/renderscript/RenderScript.java b/graphics/java/android/renderscript/RenderScript.java
index 76edb0a85750..900720a6ec00 100644
--- a/graphics/java/android/renderscript/RenderScript.java
+++ b/graphics/java/android/renderscript/RenderScript.java
@@ -261,6 +261,14 @@ public class RenderScript {
validate();
return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage);
}
+
+ native int rsnAllocationCreateBitmapBackedAllocation(int con, int type, int mip, Bitmap bmp, int usage);
+ synchronized int nAllocationCreateBitmapBackedAllocation(int type, int mip, Bitmap bmp, int usage) {
+ validate();
+ return rsnAllocationCreateBitmapBackedAllocation(mContext, type, mip, bmp, usage);
+ }
+
+
native int rsnAllocationCubeCreateFromBitmap(int con, int type, int mip, Bitmap bmp, int usage);
synchronized int nAllocationCubeCreateFromBitmap(int type, int mip, Bitmap bmp, int usage) {
validate();