Top Description Methods
com.sun.prism.impl

public Interface TextureResourcePool<T>

extends ResourcePool<T>
Known Direct Implementers
com.sun.prism.j2d.J2DTexturePool, com.sun.prism.sw.SWTexturePool, com.sun.prism.null3d.DummyTexturePool, com.sun.prism.d3d.D3DVramPool, com.sun.prism.es2.ES2VramPool
Imports
com.sun.prism.PixelFormat

A ResourcePool that manages memory for textures. This interface only adds a couple of methods for computing the size of a potential new texture allocation.

Method Summary

Modifier and TypeMethod and Description
public long
estimateRTTextureSize(int width, int height, boolean hasDepth)

public long
estimateTextureSize(int width, int height, PixelFormat format)

Inherited from com.sun.prism.impl.ResourcePool:
freeDisposalRequestedAndCheckResourcesisManagerThreadmanagedmaxorigTargetprepareForAllocationrecordAllocatedrecordFreeresourceFreedresourceManagedsetTargetsizetargetused

Method Detail

estimateRTTextureSizeback to summary
public long estimateRTTextureSize(int width, int height, boolean hasDepth)
estimateTextureSizeback to summary
public long estimateTextureSize(int width, int height, PixelFormat format)