/**
* @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, Pool<Node> nodePool) {
mCapacityBytes = capacityBytes;
if (nodePool == null) {
mNodePool = new SimplePool<Node>(32);
} else {
mNodePool = nodePool;
}
}
java类android.util.Pools.Pool的实例源码
SparseArrayBitmapPool.java 文件源码
项目:nexus-gallery
阅读 19
收藏 0
点赞 0
评论 0