Top Fields Constructors Methods
com.sun.prism.d3d

pack-priv Class D3DSwapChain

extends D3DResource
implements D3DRenderTarget, Presentable, D3DContextSource
Class Inheritance
All Implemented Interfaces
com.sun.prism.d3d.D3DContextSource, com.sun.prism.Presentable, com.sun.prism.RenderTarget, com.sun.prism.Surface, com.sun.prism.d3d.D3DRenderTarget
Imports
com.sun.glass.ui.Screen, com.sun.javafx.geom.Rectangle, com.sun.prism.CompositeMode, .Graphics, .Presentable, .PresentableState, .RTTexture

Field Summary

Modifier and TypeField and Description
private final float
private final float
private final D3DRTTexture
Inherited from com.sun.prism.d3d.D3DResource:
d3dResRecord

Constructor Summary

AccessConstructor and Description
pack-priv
D3DSwapChain(D3DContext context, long pResource, D3DRTTexture rtt, float pixelScaleX, float pixelScaleY)

Method Summary

Modifier and TypeMethod and Description
public Graphics
public void
public Screen
public int
public int
public int
public int
public D3DContext
public int
public int
public float
public float
public long
public RTTexture
public boolean
public boolean
public boolean
lockResources(PresentableState pState)

Implements com.sun.prism.Presentable.lockResources.

Locks any underlying resources needed for a createGraphics/prepare/present sequence and returns a boolean indicating if the presentable needs to be recreated.

private static native int
nPresent(long context, long pSwapChain)

public boolean
prepare(Rectangle dirtyregion)

Implements com.sun.prism.Presentable.prepare.

display the indicated region to the user.

public boolean
present()

Implements com.sun.prism.Presentable.present.

present the prepared region to the user.

public void

Field Detail

pixelScaleFactorXback to summary
private final float pixelScaleFactorX
pixelScaleFactorYback to summary
private final float pixelScaleFactorY
texBackBufferback to summary
private final D3DRTTexture texBackBuffer

Constructor Detail

D3DSwapChainback to summary
pack-priv D3DSwapChain(D3DContext context, long pResource, D3DRTTexture rtt, float pixelScaleX, float pixelScaleY)

Method Detail

createGraphicsback to summary
public Graphics createGraphics()

Implements com.sun.prism.RenderTarget.createGraphics.

Annotations
@Override
disposeback to summary
public void dispose()

Overrides com.sun.prism.d3d.D3DResource.dispose.

Implements com.sun.prism.GraphicsResource.dispose.

Annotations
@Override
getAssociatedScreenback to summary
public Screen getAssociatedScreen()

Implements com.sun.prism.RenderTarget.getAssociatedScreen.

Annotations
@Override
getContentHeightback to summary
public int getContentHeight()

Implements com.sun.prism.Surface.getContentHeight.

Annotations
@Override
getContentWidthback to summary
public int getContentWidth()

Implements com.sun.prism.Surface.getContentWidth.

Annotations
@Override
getContentXback to summary
public int getContentX()

Implements com.sun.prism.Surface.getContentX.

Annotations
@Override
getContentYback to summary
public int getContentY()

Implements com.sun.prism.Surface.getContentY.

Annotations
@Override
getContextback to summary
public D3DContext getContext()

Implements com.sun.prism.d3d.D3DContextSource.getContext.

Annotations
@Override
getPhysicalHeightback to summary
public int getPhysicalHeight()

Implements com.sun.prism.Surface.getPhysicalHeight.

Annotations
@Override
getPhysicalWidthback to summary
public int getPhysicalWidth()

Implements com.sun.prism.Surface.getPhysicalWidth.

Annotations
@Override
getPixelScaleFactorXback to summary
public float getPixelScaleFactorX()

Implements com.sun.prism.Presentable.getPixelScaleFactorX.

Annotations
@Override
getPixelScaleFactorYback to summary
public float getPixelScaleFactorY()

Implements com.sun.prism.Presentable.getPixelScaleFactorY.

Annotations
@Override
getResourceHandleback to summary
public long getResourceHandle()

Implements com.sun.prism.d3d.D3DRenderTarget.getResourceHandle.

Annotations
@Override
getRTTBackBufferback to summary
public RTTexture getRTTBackBuffer()
isMSAAback to summary
public boolean isMSAA()

Implements com.sun.prism.RenderTarget.isMSAA.

Annotations
@Override
isOpaqueback to summary
public boolean isOpaque()

Implements com.sun.prism.RenderTarget.isOpaque.

Annotations
@Override
lockResourcesback to summary
public boolean lockResources(PresentableState pState)

Implements com.sun.prism.Presentable.lockResources.

Doc from com.sun.prism.Presentable.lockResources.

Locks any underlying resources needed for a createGraphics/prepare/present sequence and returns a boolean indicating if the presentable needs to be recreated. If the method returns true and the Presentable implements GraphicsResource then its dispose() method will be called prior to recreating a new Presentable object and so no resource should need to be locked in that case. The resources will be unlocked in either prepare() or present().

Annotations
@Override
nPresentback to summary
private static native int nPresent(long context, long pSwapChain)
prepareback to summary
public boolean prepare(Rectangle dirtyregion)

Implements com.sun.prism.Presentable.prepare.

Doc from com.sun.prism.Presentable.prepare.

display the indicated region to the user.

Annotations
@Override
presentback to summary
public boolean present()

Implements com.sun.prism.Presentable.present.

Doc from com.sun.prism.Presentable.present.

present the prepared region to the user.

Annotations
@Override
setOpaqueback to summary
public void setOpaque(boolean opaque)

Implements com.sun.prism.RenderTarget.setOpaque.

Annotations
@Override