From c70e06bbfac0d92ec218a32e35d9d7fa80f23cc9 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Fri, 24 Apr 2009 11:09:12 -0400 Subject: Add (hidden for now) purgeable bitmaps BitmapFactory::Options now let you specify if the resulting bitmap can be "purgeable". If so, then its decoded pixels may be purged when not actively being drawn, freeing up that RAM. When such a bitmap is drawn, it will automatically be re-decoded on demand. This is done by having the bitmap keep a reference/copy of the encoded data. Where it is a reference or a copy is controlled by the "shareable" flag in Options. If this is true, the implementation *may* just reference the encode data (e.g. a file descriptor) rathern than making a complete copy of it. Currently, purgeable is not supported for generic inputstreams, but is enabled for byte-array, file-descriptor, and assets, though for impl reasons only file-descripts are currently enabled for "shareable", but that may change in the future. --- core/jni/Android.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'core/jni/Android.mk') diff --git a/core/jni/Android.mk b/core/jni/Android.mk index b37447c..ac35459 100644 --- a/core/jni/Android.mk +++ b/core/jni/Android.mk @@ -129,6 +129,7 @@ LOCAL_C_INCLUDES += \ external/skia/include/core \ external/skia/include/effects \ external/skia/include/images \ + external/skia/src/ports \ external/skia/include/utils \ external/sqlite/dist \ external/sqlite/android \ -- cgit v1.1