Java Code Examples for android.support.v4.util.Pools#SimplePool
The following examples show how to use
android.support.v4.util.Pools#SimplePool .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SparseArrayBitmapPool.java From medialibrary with Apache License 2.0 | 5 votes |
/** * @param capacityBytes Maximum capacity of the pool in bytes. * @param nodePool Shared pool to use for recycling linked list nodes, or null. */ public SparseArrayBitmapPool(int capacityBytes, Pools.Pool<Node> nodePool) { mCapacityBytes = capacityBytes; if (nodePool == null) { mNodePool = new Pools.SimplePool<Node>(32); } else { mNodePool = nodePool; } }
Example 2
Source File: BitmapPool.java From Mupdf with Apache License 2.0 | 4 votes |
private BitmapPool() { simplePool = new Pools.SimplePool<>(16); }