Back to Fresco

LruBitmapPool

docs/javadoc/reference/com/facebook/imagepipeline/memory/LruBitmapPool.html

3.6.017.2 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Annotations

Exceptions

Packages | Classes

Summary: Fields | Ctors | Methods | Inherited Methods | [Expand All]

public class

LruBitmapPool

extends Object
implements BitmapPool

| java.lang.Object | | ↳ | com.facebook.imagepipeline.memory.LruBitmapPool |

Summary

Fields
protected final PoolBackend<Bitmap>
Public Constructors
Public Methods
synchronized Bitmap
Gets a 'value' of size 'S' (or larger) from the pool, if available.
void
void
Trim memory.

| [Expand] Inherited Methods | | --- | | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

| | From interface com.facebook.common.memory.MemoryTrimmable

| abstract void | trim(MemoryTrimType trimType) Trim memory. |

| | From interface com.facebook.common.memory.Pool

| abstract V | get(int size) Gets a 'value' of size 'S' (or larger) from the pool, if available. | | abstract void | release(V value) Releases the given value to the pool. |

| | From interface com.facebook.common.references.ResourceReleaser

| abstract void | release(T value) Release the given value. |

|

Fields

protected final PoolBackend<Bitmap> mStrategy

Public Constructors

public LruBitmapPool(int maxPoolSize, int maxBitmapSize, PoolStatsTracker poolStatsTracker, MemoryTrimmableRegistry memoryTrimmableRegistry)

Public Methods

public synchronized Bitmap get(int size)

Gets a 'value' of size 'S' (or larger) from the pool, if available. Allocates a new value if necessary.

Parameters

| size | the logical size to allocate |

Returns
  • a new value

public void release(Bitmap value)

public void trim(MemoryTrimType trimType)

Trim memory.

+Generated by Doclava. +