public class

OGLSurfaceDataProxy

extends SurfaceDataProxy
java.lang.Object
   ↳ sun.java2d.SurfaceDataProxy
     ↳ sun.java2d.opengl.OGLSurfaceDataProxy

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class sun.java2d.SurfaceDataProxy
Public Constructors
OGLSurfaceDataProxy(OGLGraphicsConfig oglgc, int transparency)
Public Methods
static SurfaceDataProxy createProxy(SurfaceData srcData, OGLGraphicsConfig dstConfig)
boolean isSupportedOperation(SurfaceData srcData, int txtype, CompositeType comp, Color bgColor)
Determine if an alternate form for the srcData is needed and appropriate from the given operational parameters.
SurfaceData validateSurfaceData(SurfaceData srcData, SurfaceData cachedData, int w, int h)
Construct an alternate form of the given SurfaceData.
[Expand]
Inherited Methods
From class sun.java2d.SurfaceDataProxy
From class java.lang.Object
From interface sun.awt.DisplayChangedListener
From interface sun.awt.image.SurfaceManager.FlushableCacheData

Public Constructors

public OGLSurfaceDataProxy (OGLGraphicsConfig oglgc, int transparency)

Public Methods

public static SurfaceDataProxy createProxy (SurfaceData srcData, OGLGraphicsConfig dstConfig)

public boolean isSupportedOperation (SurfaceData srcData, int txtype, CompositeType comp, Color bgColor)

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)

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.