Top Inners Fields Constructors Methods
com.sun.prism.j2d

pack-priv Class J2DTexture

extends BaseTexture<J2DTexture.J2DTexResource>
Class Inheritance
Known Direct Subclasses
com.sun.prism.j2d.J2DRTTexture
Imports
com.sun.javafx.image.IntPixelGetter, .PixelConverter, .PixelGetter, .PixelSetter, .PixelUtils, com.sun.javafx.image.impl.ByteBgr, .ByteBgraPre, .ByteGray, .ByteRgb, .IntArgbPre, com.sun.prism.MediaFrame, .PixelFormat, .Texture, com.sun.prism.impl.BaseTexture, .ManagedResource, .PrismSettings, com.sun.prism.j2d.J2DTexture.J2DTexResource, java.awt.image.BufferedImage, java.nio.Buffer, .ByteBuffer, .IntBuffer

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final PixelSetter<T extends Buffer>
Inherited from com.sun.prism.impl.BaseTexture:
contentHeightcontentWidthresource

Constructor Summary

AccessConstructor and Description
pack-priv
J2DTexture(BufferedImage bimg, PixelFormat format, PixelSetter<T extends Buffer> setter, Texture.WrapMode wrapMode)

pack-priv
J2DTexture(J2DTexture sharedTex, Texture.WrapMode altMode)

Method Summary

Modifier and TypeMethod and Description
pack-priv static J2DTexture
create(PixelFormat format, Texture.WrapMode wrapMode, int w, int h)

protected Texture
createSharedTexture(Texture.WrapMode newMode)

Implements abstract com.sun.prism.impl.BaseTexture.createSharedTexture.

Create a new version of this texture which shares the same ManagedResource reference.

pack-priv BufferedImage
private static Buffer
private static PixelGetter<T extends Buffer>
public void
update(Buffer buffer, PixelFormat format, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan, boolean skipFlush)

Implements com.sun.prism.Texture.update.

Updates this texture using the contents of the given Buffer.

public void
update(MediaFrame frame, boolean skipFlush)

Implements com.sun.prism.Texture.update.

Updates this texture using the contents of the provided MediaFrame.

pack-priv void
updateFromBuffer(BufferedImage bimg, Buffer buffer, PixelFormat format, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan)

Inherited from com.sun.prism.impl.BaseTexture:
assertLockedcheckUpdateParamscontentsNotUsefulcontentsUsefuldisposegetContentHeightgetContentWidthgetContentXgetContentYgetLastImageSerialgetLinearFilteringgetLockCountgetMaxContentHeightgetMaxContentWidthgetPhysicalHeightgetPhysicalWidthgetPixelFormatgetSharedTexturegetUseMipmapgetWrapModeisLockedisSurfaceLostlockmakePermanentsetContentHeightsetContentWidthsetLastImageSerialsetLinearFilteringtoStringunlockupdateupdateupdateupdate

Field Detail

setterback to summary
private final PixelSetter<T extends Buffer> setter

Constructor Detail

J2DTextureback to summary
pack-priv J2DTexture(BufferedImage bimg, PixelFormat format, PixelSetter<T extends Buffer> setter, Texture.WrapMode wrapMode)
J2DTextureback to summary
pack-priv J2DTexture(J2DTexture sharedTex, Texture.WrapMode altMode)

Method Detail

createback to summary
pack-priv static J2DTexture create(PixelFormat format, Texture.WrapMode wrapMode, int w, int h)
createSharedTextureback to summary
protected Texture createSharedTexture(Texture.WrapMode newMode)

Implements abstract com.sun.prism.impl.BaseTexture.createSharedTexture.

Doc from com.sun.prism.impl.BaseTexture.createSharedTexture.

Create a new version of this texture which shares the same ManagedResource reference. The lock counts for the shared resource reference are not changed in the processing of this method.

Annotations
@Override
getBufferedImageback to summary
pack-priv BufferedImage getBufferedImage()
getDstBufferback to summary
private static Buffer getDstBuffer(BufferedImage bimg)
getGetterback to summary
private static PixelGetter<T extends Buffer> getGetter(PixelFormat format)
updateback to summary
public void update(Buffer buffer, PixelFormat format, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan, boolean skipFlush)

Implements com.sun.prism.Texture.update.

Doc from com.sun.prism.Texture.update.

Updates this texture using the contents of the given Buffer. The upper-left corner of the image data will be positioned at (contentX+dstx, contentY+dsty) of the texture, and the source region to be uploaded will be srcw by srch pixels. This method will cause the vertex buffer to be flushed unless skipFlush is true.

Annotations
@Override
updateback to summary
public void update(MediaFrame frame, boolean skipFlush)

Implements com.sun.prism.Texture.update.

Doc from com.sun.prism.Texture.update.

Updates this texture using the contents of the provided MediaFrame. The source and destination coordinates are implicit, you can only update the entire video texture.

Annotations
@Override
updateFromBufferback to summary
pack-priv void updateFromBuffer(BufferedImage bimg, Buffer buffer, PixelFormat format, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan)
com.sun.prism.j2d back to summary

pack-priv Class J2DTexture.J2DTexResource

extends ManagedResource<BufferedImage>
Class Inheritance

Field Summary

Inherited from com.sun.prism.impl.ManagedResource:
resource

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from com.sun.prism.impl.ManagedResource:
assertLockedbumpAgecontentsNotUsefulcontentsUsefuldisposegetAgegetInterestCountgetLockCountgetPoolgetResourceisDisposalRequestedisInterestingisLockedisPermanentisValidlockmakePermanentsetMismatchedunlockwasMismatched

Constructor Detail

J2DTexResourceback to summary
public J2DTexResource(BufferedImage bimg)

Method Detail

freeback to summary
public void free()

Overrides com.sun.prism.impl.ManagedResource.free.

Annotations
@Override