diff options
author | Alex Sakhartchouk <alexst@google.com> | 2010-10-11 12:35:15 -0700 |
---|---|---|
committer | Alex Sakhartchouk <alexst@google.com> | 2010-10-11 14:04:09 -0700 |
commit | 26ae3904e8050eae655722caf93ee5d3f0ab195a (patch) | |
tree | 9dfbe324379dd9ea0067011fa85a62a348a66961 /graphics/java/android/renderscript/RenderScript.java | |
parent | 3e6fee857a317d35b4861b8bb24a2d3e5e3e6fc2 (diff) | |
download | frameworks_base-26ae3904e8050eae655722caf93ee5d3f0ab195a.zip frameworks_base-26ae3904e8050eae655722caf93ee5d3f0ab195a.tar.gz frameworks_base-26ae3904e8050eae655722caf93ee5d3f0ab195a.tar.bz2 |
Update allocation from bitmap.
GL attribute cleanup in type.
Change-Id: I504dcf6744ad13d65e068e784b6608c999ab48c6
Diffstat (limited to 'graphics/java/android/renderscript/RenderScript.java')
-rw-r--r-- | graphics/java/android/renderscript/RenderScript.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/graphics/java/android/renderscript/RenderScript.java b/graphics/java/android/renderscript/RenderScript.java index 8ad54c9..2774fea 100644 --- a/graphics/java/android/renderscript/RenderScript.java +++ b/graphics/java/android/renderscript/RenderScript.java @@ -186,6 +186,10 @@ public class RenderScript { synchronized int nAllocationCreateTyped(int type) { return rsnAllocationCreateTyped(mContext, type); } + native void rsnAllocationUpdateFromBitmap(int con, int alloc, Bitmap bmp); + synchronized void nAllocationUpdateFromBitmap(int alloc, Bitmap bmp) { + rsnAllocationUpdateFromBitmap(mContext, alloc, bmp); + } native int rsnAllocationCreateFromBitmap(int con, int dstFmt, boolean genMips, Bitmap bmp); synchronized int nAllocationCreateFromBitmap(int dstFmt, boolean genMips, Bitmap bmp) { return rsnAllocationCreateFromBitmap(mContext, dstFmt, genMips, bmp); |