BufferSetPool
Keeps track of a collections of buffersets that can be reused. The main reason is that we don't have to allocate new memory for each new bufferset
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
available: * |
|
public |
|
|
public |
maxPoolSize: * |
|
public |
stats: * |
|
public |
used: * |
Method Summary
Public Methods | ||
public |
cleanup() |
|
public |
lease(bufferManager: *, hasTransparency: *, color: *, sizes: *): * |
|
public |
release(bufferSet: *) |
Public Constructors
public constructor() source
Public Members
public available: * source
public maxPoolSize: * source
public stats: * source
public used: * source
Public Methods
public cleanup() source
public lease(bufferManager: *, hasTransparency: *, color: *, sizes: *): * source
Params:
Name | Type | Attribute | Description |
bufferManager | * | ||
hasTransparency | * | ||
color | * | ||
sizes | * |
Return:
* |
public release(bufferSet: *) source
Params:
Name | Type | Attribute | Description |
bufferSet | * |