public class

AshmemMemoryChunkPool

extends MemoryChunkPool
java.lang.Object
   ↳ com.facebook.imagepipeline.memory.BasePool<V>
     ↳ com.facebook.imagepipeline.memory.MemoryChunkPool
       ↳ com.facebook.imagepipeline.memory.AshmemMemoryChunkPool

Class Overview

Manages a pool of ashmem memory chunks (AshmemMemoryChunk)

Summary

Public Constructors
AshmemMemoryChunkPool(MemoryTrimmableRegistry memoryTrimmableRegistry, PoolParams poolParams, PoolStatsTracker ashmemMemoryChunkPoolStatsTracker)
Public Methods
AshmemMemoryChunk alloc(int bucketedSize)
Allocates a new 'value' with the given size
[Expand]
Inherited Methods
From class com.facebook.imagepipeline.memory.MemoryChunkPool
From class com.facebook.imagepipeline.memory.BasePool
From class java.lang.Object
From interface com.facebook.common.memory.MemoryTrimmable
From interface com.facebook.common.memory.Pool
From interface com.facebook.common.references.ResourceReleaser

Public Constructors

public AshmemMemoryChunkPool (MemoryTrimmableRegistry memoryTrimmableRegistry, PoolParams poolParams, PoolStatsTracker ashmemMemoryChunkPoolStatsTracker)

Public Methods

public AshmemMemoryChunk alloc (int bucketedSize)

Allocates a new 'value' with the given size

Parameters
bucketedSize the logical size to allocate
Returns
  • a new value