-
public class BitmapCounterProvider
-
-
Field Summary
Fields Modifier and Type Field Description public final IntegerMAX_BITMAP_TOTAL_SIZEpublic final static BitmapCounterProviderINSTANCE
-
Method Summary
Modifier and Type Method Description final static Unitinitialize(BitmapCounterConfig bitmapCounterConfig)final static BitmapCounterget()final IntegergetMAX_BITMAP_TOTAL_SIZE()Our Bitmaps live in ashmem, meaning that they are pinned in Android's shared native memory. -
-
Method Detail
-
initialize
final static Unit initialize(BitmapCounterConfig bitmapCounterConfig)
-
get
final static BitmapCounter get()
-
getMAX_BITMAP_TOTAL_SIZE
final Integer getMAX_BITMAP_TOTAL_SIZE()
Our Bitmaps live in ashmem, meaning that they are pinned in Android's shared native memory.
Therefore, we are not constrained by the max heap size of the dalvik heap, but we want to make sure we don't use too much memory on low end devices, so that we don't force other background process to be killed.
-
-
-
-