Add support for linking to a skia bitmap rather than always copying the data from the bitmap.

This commit is contained in:
Jason Sams
2010-03-01 15:31:04 -08:00
parent c2908e60c9
commit 8a64743f37
7 changed files with 127 additions and 7 deletions

View File

@@ -98,6 +98,7 @@ public class RenderScript {
native int nAllocationCreateTyped(int type);
native int nAllocationCreateFromBitmap(int dstFmt, boolean genMips, Bitmap bmp);
native int nAllocationCreateBitmapRef(int type, Bitmap bmp);
native int nAllocationCreateFromBitmapBoxed(int dstFmt, boolean genMips, Bitmap bmp);
native int nAllocationCreateFromAssetStream(int dstFmt, boolean genMips, int assetStream);