Top Fields Constructors Methods
com.sun.prism.j2d

pack-priv Class J2DTexturePool

extends BaseResourcePool<BufferedImage>
implements TextureResourcePool<BufferedImage>
Class Inheritance
All Implemented Interfaces
com.sun.prism.impl.TextureResourcePool, com.sun.prism.impl.ResourcePool
Imports
com.sun.prism.PixelFormat, com.sun.prism.impl.BaseResourcePool, .PrismSettings, .TextureResourcePool, java.awt.image.BufferedImage

Field Summary

Modifier and TypeField and Description
pack-priv static final J2DTexturePool

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Implements com.sun.prism.impl.TextureResourcePool.estimateRTTextureSize.

public long
private static long
pack-priv static long
size(int w, int h, int type)

public long
size(BufferedImage
the resource to be measured
resource
)

Implements com.sun.prism.impl.ResourcePool.size.

The estimated size of the indicated resource.

private static long
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public long
used()

Overrides com.sun.prism.impl.BaseResourcePool.used.

Implements com.sun.prism.impl.ResourcePool.used.

The amount of a resource currently being used to hold any kind of resource, whether managed or not.

Inherited from com.sun.prism.impl.BaseResourcePool:
cleanupfreeDisposalRequestedAndCheckResourcesisManagerThreadmanagedmaxorigTargetprepareForAllocationprintSummaryrecordAllocatedrecordFreeresourceFreedresourceManagedsetTargettarget

Field Detail

instanceback to summary
pack-priv static final J2DTexturePool instance

Constructor Detail

J2DTexturePoolback to summary
private J2DTexturePool()

Method Detail

estimateRTTextureSizeback to summary
public long estimateRTTextureSize(int width, int height, boolean hasDepth)

Implements com.sun.prism.impl.TextureResourcePool.estimateRTTextureSize.

Annotations
@Override
estimateTextureSizeback to summary
public long estimateTextureSize(int width, int height, PixelFormat format)

Implements com.sun.prism.impl.TextureResourcePool.estimateTextureSize.

Annotations
@Override
maxVramback to summary
private static long maxVram()
sizeback to summary
pack-priv static long size(int w, int h, int type)
sizeback to summary
public long size(BufferedImage resource)

Implements com.sun.prism.impl.ResourcePool.size.

Doc from com.sun.prism.impl.ResourcePool.size.

The estimated size of the indicated resource.

Parameters
resource:BufferedImage

the resource to be measured

Returns:long

the space within this resource pool that the object occupies.

Annotations
@Override
targetVramback to summary
private static long targetVram()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
usedback to summary
public long used()

Overrides com.sun.prism.impl.BaseResourcePool.used.

Implements com.sun.prism.impl.ResourcePool.used.

Doc from com.sun.prism.impl.ResourcePool.used.

The amount of a resource currently being used to hold any kind of resource, whether managed or not.

Returns:long

the amount being used

Annotations
@Override