summaryrefslogtreecommitdiffstats
path: root/core/jni/Android.mk
diff options
context:
space:
mode:
authorMike Reed <reed@google.com>2009-04-24 11:09:12 -0400
committerMike Reed <reed@google.com>2009-04-24 17:20:29 -0400
commitc70e06bbfac0d92ec218a32e35d9d7fa80f23cc9 (patch)
tree3a758b6a05e7b60dec8c16c42d246e1e991a3854 /core/jni/Android.mk
parent44ff0514c2c8b8917ef81182c8f9d84a1617ec57 (diff)
downloadframeworks_base-c70e06bbfac0d92ec218a32e35d9d7fa80f23cc9.zip
frameworks_base-c70e06bbfac0d92ec218a32e35d9d7fa80f23cc9.tar.gz
frameworks_base-c70e06bbfac0d92ec218a32e35d9d7fa80f23cc9.tar.bz2
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.
Diffstat (limited to 'core/jni/Android.mk')
-rw-r--r--core/jni/Android.mk1
1 files changed, 1 insertions, 0 deletions
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 \