Top Fields Constructors Methods
com.sun.prism.sw

pack-priv Class SWTexturePool

extends BaseResourcePool<SWTexture>
implements TextureResourcePool<SWTexture>
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

Field Summary

Modifier and TypeField and Description
pack-priv static final SWTexturePool

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
public long
size(SWTexture
the resource to be measured
resource
)

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

The estimated size of the indicated resource.

private static long
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 SWTexturePool instance

Constructor Detail

SWTexturePoolback to summary
private SWTexturePool()

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
public long size(SWTexture 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:SWTexture

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()
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