APIdia Launch Partner
Top Description Fields Constructors Methods
sun.java2d.opengl

public Class OGLSurfaceDataProxy

extends SurfaceDataProxy
Class Inheritance
Imports
java.awt.Color, .Transparency, sun.java2d.SurfaceData, .SurfaceDataProxy, sun.java2d.loops.SurfaceType, .CompositeType

The proxy class contains the logic for when to replace a SurfaceData with a cached OGL Texture and the code to create the accelerated surfaces.

Field Summary

Modifier and TypeField and Description
pack-priv OGLGraphicsConfig
pack-priv int
Inherited from sun.java2d.SurfaceDataProxy:
UNCACHED

Constructor Summary

AccessConstructor and Description
public
OGLSurfaceDataProxy(OGLGraphicsConfig oglgc, int transparency)

Method Summary

Modifier and TypeMethod and Description
public static SurfaceDataProxy
public boolean
isSupportedOperation(SurfaceData srcData, int txtype, CompositeType comp, Color bgColor)

Implements abstract sun.java2d.SurfaceDataProxy.isSupportedOperation.

Determine if an alternate form for the srcData is needed and appropriate from the given operational parameters.

public SurfaceData
validateSurfaceData(SurfaceData srcData, SurfaceData cachedData, int w, int h)

Implements abstract sun.java2d.SurfaceDataProxy.validateSurfaceData.

Construct an alternate form of the given SurfaceData.

Inherited from sun.java2d.SurfaceDataProxy:
activateDisplayListenerdisplayChangedflushflushgetRetryTrackerinvalidateisAcceleratedisCachingAllowedisValidpaletteChangedreplaceDataupdateSurfaceDataupdateSurfaceDataBg

Field Detail

oglgcback to summary
pack-priv OGLGraphicsConfig oglgc
transparencyback to summary
pack-priv int transparency

Constructor Detail

OGLSurfaceDataProxyback to summary
public OGLSurfaceDataProxy(OGLGraphicsConfig oglgc, int transparency)

Method Detail

createProxyback to summary
public static SurfaceDataProxy createProxy(SurfaceData srcData, OGLGraphicsConfig dstConfig)
isSupportedOperationback to summary
public boolean isSupportedOperation(SurfaceData srcData, int txtype, CompositeType comp, Color bgColor)

Implements abstract sun.java2d.SurfaceDataProxy.isSupportedOperation.

Doc from sun.java2d.SurfaceDataProxy.isSupportedOperation.

Determine if an alternate form for the srcData is needed and appropriate from the given operational parameters.

Annotations
@Override
validateSurfaceDataback to summary
public SurfaceData validateSurfaceData(SurfaceData srcData, SurfaceData cachedData, int w, int h)

Implements abstract sun.java2d.SurfaceDataProxy.validateSurfaceData.

Doc from sun.java2d.SurfaceDataProxy.validateSurfaceData.

Construct an alternate form of the given SurfaceData. The contents of the returned SurfaceData may be undefined since the calling code will take care of updating the contents with a subsequent call to updateSurfaceData.

If the method returns null then there was a problem with allocating the accelerated surface. The getRetryTracker() method will be called to track when to attempt another revalidation.

Annotations
@Override