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

public final Class XRVolatileSurfaceManager

extends VolatileSurfaceManager
Class Inheritance
Imports
java.awt.GraphicsConfiguration, .ImageCapabilities, java.awt.image.ColorModel, sun.awt.image.SunVolatileImage, .VolatileSurfaceManager, sun.java2d.SurfaceData

XRender platform implementation of the VolatileSurfaceManager class.

Field Summary

Inherited from sun.awt.image.VolatileSurfaceManager:
atCurrentcontextlostSurfacesdAccelsdBackupsdCurrentsdPreviousvImg

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ImageCapabilities
getCapabilities(GraphicsConfiguration gc)

Overrides sun.awt.image.VolatileSurfaceManager.getCapabilities.

Need to override the default behavior because Pixmaps-based images are accelerated but not volatile.

protected SurfaceData
initAcceleratedSurface()

Implements abstract sun.awt.image.VolatileSurfaceManager.initAcceleratedSurface.

Create a pixmap-based SurfaceData object

protected boolean
isAccelerationEnabled()

Implements abstract sun.awt.image.VolatileSurfaceManager.isAccelerationEnabled.

Returns true if acceleration is enabled.

protected boolean
isConfigValid(GraphicsConfiguration gc)

Overrides sun.awt.image.VolatileSurfaceManager.isConfigValid.

XRender should allow copies between different formats and depths.

Inherited from sun.awt.image.VolatileSurfaceManager:
acceleratedSurfaceLostcontentsLostdisplayChangedflushgetBackupSurfacegetPrimarySurfaceDatainitContentsinitializepaletteChangedrestoreAcceleratedSurfacerestoreContentsvalidate

Constructor Detail

XRVolatileSurfaceManagerback to summary
public XRVolatileSurfaceManager(SunVolatileImage vImg, Object context)

Method Detail

getCapabilitiesback to summary
public ImageCapabilities getCapabilities(GraphicsConfiguration gc)

Overrides sun.awt.image.VolatileSurfaceManager.getCapabilities.

Need to override the default behavior because Pixmaps-based images are accelerated but not volatile.

Annotations
@Override
initAcceleratedSurfaceback to summary
protected SurfaceData initAcceleratedSurface()

Implements abstract sun.awt.image.VolatileSurfaceManager.initAcceleratedSurface.

Create a pixmap-based SurfaceData object

Annotations
@Override
isAccelerationEnabledback to summary
protected boolean isAccelerationEnabled()

Implements abstract sun.awt.image.VolatileSurfaceManager.isAccelerationEnabled.

Doc from sun.awt.image.VolatileSurfaceManager.isAccelerationEnabled.

Returns true if acceleration is enabled. If not, we simply use the backup SurfaceData object and return quickly from most methods in this class.

Annotations
@Override
isConfigValidback to summary
protected boolean isConfigValid(GraphicsConfiguration gc)

Overrides sun.awt.image.VolatileSurfaceManager.isConfigValid.

XRender should allow copies between different formats and depths.

Todo

verify that this assumption is correct.

Annotations
@Override