Java Code Examples for sun.java2d.loops.GraphicsPrimitiveMgr#register()

The following examples show how to use sun.java2d.loops.GraphicsPrimitiveMgr#register() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GDIBlitLoops.java    From jdk8u-dev-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Note that we do not register loops to 8-byte destinations.  This
 * is due to faster processing of dithering through our software
 * loops than through GDI StretchBlt processing.
 */
public static void register()
{
    GraphicsPrimitive[] primitives = {
        new GDIBlitLoops(SurfaceType.IntRgb,
                         GDIWindowSurfaceData.AnyGdi),
        new GDIBlitLoops(SurfaceType.Ushort555Rgb,
                         GDIWindowSurfaceData.AnyGdi,
                         0x7C00, 0x03E0, 0x001F),
        new GDIBlitLoops(SurfaceType.Ushort565Rgb,
                         GDIWindowSurfaceData.AnyGdi,
                         0xF800, 0x07E0, 0x001F),
        new GDIBlitLoops(SurfaceType.ThreeByteBgr,
                         GDIWindowSurfaceData.AnyGdi),
        new GDIBlitLoops(SurfaceType.ByteIndexedOpaque,
                         GDIWindowSurfaceData.AnyGdi,
                         true),
        new GDIBlitLoops(SurfaceType.Index8Gray,
                         GDIWindowSurfaceData.AnyGdi,
                         true),
        new GDIBlitLoops(SurfaceType.ByteGray,
                         GDIWindowSurfaceData.AnyGdi),
    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 2
Source File: GDIBlitLoops.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Note that we do not register loops to 8-byte destinations.  This
 * is due to faster processing of dithering through our software
 * loops than through GDI StretchBlt processing.
 */
public static void register()
{
    GraphicsPrimitive[] primitives = {
        new GDIBlitLoops(SurfaceType.IntRgb,
                         GDIWindowSurfaceData.AnyGdi),
        new GDIBlitLoops(SurfaceType.Ushort555Rgb,
                         GDIWindowSurfaceData.AnyGdi,
                         0x7C00, 0x03E0, 0x001F),
        new GDIBlitLoops(SurfaceType.Ushort565Rgb,
                         GDIWindowSurfaceData.AnyGdi,
                         0xF800, 0x07E0, 0x001F),
        new GDIBlitLoops(SurfaceType.ThreeByteBgr,
                         GDIWindowSurfaceData.AnyGdi),
        new GDIBlitLoops(SurfaceType.ByteIndexedOpaque,
                         GDIWindowSurfaceData.AnyGdi,
                         true),
        new GDIBlitLoops(SurfaceType.Index8Gray,
                         GDIWindowSurfaceData.AnyGdi,
                         true),
        new GDIBlitLoops(SurfaceType.ByteGray,
                         GDIWindowSurfaceData.AnyGdi),
    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 3
Source File: OGLMaskBlit.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
static void register() {
    GraphicsPrimitive[] primitives = {
        new OGLMaskBlit(IntArgb,    SrcOver),
        new OGLMaskBlit(IntArgbPre, SrcOver),
        new OGLMaskBlit(IntRgb,     SrcOver),
        new OGLMaskBlit(IntRgb,     SrcNoEa),
        new OGLMaskBlit(IntBgr,     SrcOver),
        new OGLMaskBlit(IntBgr,     SrcNoEa),
    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 4
Source File: OGLMaskBlit.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
static void register() {
    GraphicsPrimitive[] primitives = {
        new OGLMaskBlit(IntArgb,    SrcOver),
        new OGLMaskBlit(IntArgbPre, SrcOver),
        new OGLMaskBlit(IntRgb,     SrcOver),
        new OGLMaskBlit(IntRgb,     SrcNoEa),
        new OGLMaskBlit(IntBgr,     SrcOver),
        new OGLMaskBlit(IntBgr,     SrcNoEa),
    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 5
Source File: X11PMBlitBgLoops.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
public static void register()
{
    GraphicsPrimitive[] primitives = {
        new X11PMBlitBgLoops(X11SurfaceData.IntBgrX11_BM,
                             X11SurfaceData.IntBgrX11),
        new X11PMBlitBgLoops(X11SurfaceData.IntRgbX11_BM,
                             X11SurfaceData.IntRgbX11),
        new X11PMBlitBgLoops(X11SurfaceData.ThreeByteBgrX11_BM,
                             X11SurfaceData.ThreeByteBgrX11),
        new X11PMBlitBgLoops(X11SurfaceData.ThreeByteRgbX11_BM,
                             X11SurfaceData.ThreeByteRgbX11),
        new X11PMBlitBgLoops(X11SurfaceData.ByteIndexedX11_BM,
                             X11SurfaceData.ByteIndexedOpaqueX11),
        new X11PMBlitBgLoops(X11SurfaceData.ByteGrayX11_BM,
                             X11SurfaceData.ByteGrayX11),
        new X11PMBlitBgLoops(X11SurfaceData.Index8GrayX11_BM,
                             X11SurfaceData.Index8GrayX11),
        new X11PMBlitBgLoops(X11SurfaceData.UShort555RgbX11_BM,
                             X11SurfaceData.UShort555RgbX11),
        new X11PMBlitBgLoops(X11SurfaceData.UShort565RgbX11_BM,
                             X11SurfaceData.UShort565RgbX11),
        new X11PMBlitBgLoops(X11SurfaceData.UShortIndexedX11_BM,
                             X11SurfaceData.UShortIndexedX11),
        new X11PMBlitBgLoops(X11SurfaceData.IntRgbX11_BM,
                             X11SurfaceData.IntArgbPreX11),
        new X11PMBlitBgLoops(X11SurfaceData.IntBgrX11_BM,
                             X11SurfaceData.FourByteAbgrPreX11),
    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 6
Source File: D3DMaskBlit.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
static void register() {
    GraphicsPrimitive[] primitives = {
        new D3DMaskBlit(IntArgb,    SrcOver),
        new D3DMaskBlit(IntArgbPre, SrcOver),
        new D3DMaskBlit(IntRgb,     SrcOver),
        new D3DMaskBlit(IntRgb,     SrcNoEa),
        new D3DMaskBlit(IntBgr,     SrcOver),
        new D3DMaskBlit(IntBgr,     SrcNoEa),
    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 7
Source File: D3DMaskBlit.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
static void register() {
    GraphicsPrimitive[] primitives = {
        new D3DMaskBlit(IntArgb,    SrcOver),
        new D3DMaskBlit(IntArgbPre, SrcOver),
        new D3DMaskBlit(IntRgb,     SrcOver),
        new D3DMaskBlit(IntRgb,     SrcNoEa),
        new D3DMaskBlit(IntBgr,     SrcOver),
        new D3DMaskBlit(IntBgr,     SrcNoEa),
    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 8
Source File: OGLMaskFill.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
static void register() {
    GraphicsPrimitive[] primitives = {
        new OGLMaskFill(AnyColor,                  SrcOver),
        new OGLMaskFill(OpaqueColor,               SrcNoEa),
        new OGLMaskFill(GradientPaint,             SrcOver),
        new OGLMaskFill(OpaqueGradientPaint,       SrcNoEa),
        new OGLMaskFill(LinearGradientPaint,       SrcOver),
        new OGLMaskFill(OpaqueLinearGradientPaint, SrcNoEa),
        new OGLMaskFill(RadialGradientPaint,       SrcOver),
        new OGLMaskFill(OpaqueRadialGradientPaint, SrcNoEa),
        new OGLMaskFill(TexturePaint,              SrcOver),
        new OGLMaskFill(OpaqueTexturePaint,        SrcNoEa),
    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 9
Source File: X11PMBlitBgLoops.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
public static void register()
{
    GraphicsPrimitive[] primitives = {
        new X11PMBlitBgLoops(X11SurfaceData.IntBgrX11_BM,
                             X11SurfaceData.IntBgrX11),
        new X11PMBlitBgLoops(X11SurfaceData.IntRgbX11_BM,
                             X11SurfaceData.IntRgbX11),
        new X11PMBlitBgLoops(X11SurfaceData.ThreeByteBgrX11_BM,
                             X11SurfaceData.ThreeByteBgrX11),
        new X11PMBlitBgLoops(X11SurfaceData.ThreeByteRgbX11_BM,
                             X11SurfaceData.ThreeByteRgbX11),
        new X11PMBlitBgLoops(X11SurfaceData.ByteIndexedX11_BM,
                             X11SurfaceData.ByteIndexedOpaqueX11),
        new X11PMBlitBgLoops(X11SurfaceData.ByteGrayX11_BM,
                             X11SurfaceData.ByteGrayX11),
        new X11PMBlitBgLoops(X11SurfaceData.Index8GrayX11_BM,
                             X11SurfaceData.Index8GrayX11),
        new X11PMBlitBgLoops(X11SurfaceData.UShort555RgbX11_BM,
                             X11SurfaceData.UShort555RgbX11),
        new X11PMBlitBgLoops(X11SurfaceData.UShort565RgbX11_BM,
                             X11SurfaceData.UShort565RgbX11),
        new X11PMBlitBgLoops(X11SurfaceData.UShortIndexedX11_BM,
                             X11SurfaceData.UShortIndexedX11),
        new X11PMBlitBgLoops(X11SurfaceData.IntRgbX11_BM,
                             X11SurfaceData.IntArgbPreX11),
        new X11PMBlitBgLoops(X11SurfaceData.IntBgrX11_BM,
                             X11SurfaceData.FourByteAbgrPreX11),
    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 10
Source File: OGLMaskFill.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
static void register() {
    GraphicsPrimitive[] primitives = {
        new OGLMaskFill(AnyColor,                  SrcOver),
        new OGLMaskFill(OpaqueColor,               SrcNoEa),
        new OGLMaskFill(GradientPaint,             SrcOver),
        new OGLMaskFill(OpaqueGradientPaint,       SrcNoEa),
        new OGLMaskFill(LinearGradientPaint,       SrcOver),
        new OGLMaskFill(OpaqueLinearGradientPaint, SrcNoEa),
        new OGLMaskFill(RadialGradientPaint,       SrcOver),
        new OGLMaskFill(OpaqueRadialGradientPaint, SrcNoEa),
        new OGLMaskFill(TexturePaint,              SrcOver),
        new OGLMaskFill(OpaqueTexturePaint,        SrcNoEa),
    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 11
Source File: OGLMaskFill.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
static void register() {
    GraphicsPrimitive[] primitives = {
        new OGLMaskFill(AnyColor,                  SrcOver),
        new OGLMaskFill(OpaqueColor,               SrcNoEa),
        new OGLMaskFill(GradientPaint,             SrcOver),
        new OGLMaskFill(OpaqueGradientPaint,       SrcNoEa),
        new OGLMaskFill(LinearGradientPaint,       SrcOver),
        new OGLMaskFill(OpaqueLinearGradientPaint, SrcNoEa),
        new OGLMaskFill(RadialGradientPaint,       SrcOver),
        new OGLMaskFill(OpaqueRadialGradientPaint, SrcNoEa),
        new OGLMaskFill(TexturePaint,              SrcOver),
        new OGLMaskFill(OpaqueTexturePaint,        SrcNoEa),
    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 12
Source File: X11PMBlitBgLoops.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public static void register()
{
    GraphicsPrimitive[] primitives = {
        new X11PMBlitBgLoops(X11SurfaceData.IntBgrX11_BM,
                             X11SurfaceData.IntBgrX11),
        new X11PMBlitBgLoops(X11SurfaceData.IntRgbX11_BM,
                             X11SurfaceData.IntRgbX11),
        new X11PMBlitBgLoops(X11SurfaceData.ThreeByteBgrX11_BM,
                             X11SurfaceData.ThreeByteBgrX11),
        new X11PMBlitBgLoops(X11SurfaceData.ThreeByteRgbX11_BM,
                             X11SurfaceData.ThreeByteRgbX11),
        new X11PMBlitBgLoops(X11SurfaceData.ByteIndexedX11_BM,
                             X11SurfaceData.ByteIndexedOpaqueX11),
        new X11PMBlitBgLoops(X11SurfaceData.ByteGrayX11_BM,
                             X11SurfaceData.ByteGrayX11),
        new X11PMBlitBgLoops(X11SurfaceData.Index8GrayX11_BM,
                             X11SurfaceData.Index8GrayX11),
        new X11PMBlitBgLoops(X11SurfaceData.UShort555RgbX11_BM,
                             X11SurfaceData.UShort555RgbX11),
        new X11PMBlitBgLoops(X11SurfaceData.UShort565RgbX11_BM,
                             X11SurfaceData.UShort565RgbX11),
        new X11PMBlitBgLoops(X11SurfaceData.UShortIndexedX11_BM,
                             X11SurfaceData.UShortIndexedX11),
        new X11PMBlitBgLoops(X11SurfaceData.IntRgbX11_BM,
                             X11SurfaceData.IntArgbPreX11),
        new X11PMBlitBgLoops(X11SurfaceData.IntBgrX11_BM,
                             X11SurfaceData.FourByteAbgrPreX11),
    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 13
Source File: OGLMaskBlit.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
static void register() {
    GraphicsPrimitive[] primitives = {
        new OGLMaskBlit(IntArgb,    SrcOver),
        new OGLMaskBlit(IntArgbPre, SrcOver),
        new OGLMaskBlit(IntRgb,     SrcOver),
        new OGLMaskBlit(IntRgb,     SrcNoEa),
        new OGLMaskBlit(IntBgr,     SrcOver),
        new OGLMaskBlit(IntBgr,     SrcNoEa),
    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 14
Source File: OGLMaskBlit.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
static void register() {
    GraphicsPrimitive[] primitives = {
        new OGLMaskBlit(IntArgb,    SrcOver),
        new OGLMaskBlit(IntArgbPre, SrcOver),
        new OGLMaskBlit(IntRgb,     SrcOver),
        new OGLMaskBlit(IntRgb,     SrcNoEa),
        new OGLMaskBlit(IntBgr,     SrcOver),
        new OGLMaskBlit(IntBgr,     SrcNoEa),
    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 15
Source File: OGLMaskBlit.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
static void register() {
    GraphicsPrimitive[] primitives = {
        new OGLMaskBlit(IntArgb,    SrcOver),
        new OGLMaskBlit(IntArgbPre, SrcOver),
        new OGLMaskBlit(IntRgb,     SrcOver),
        new OGLMaskBlit(IntRgb,     SrcNoEa),
        new OGLMaskBlit(IntBgr,     SrcOver),
        new OGLMaskBlit(IntBgr,     SrcNoEa),
    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 16
Source File: D3DMaskFill.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
static void register() {
    GraphicsPrimitive[] primitives = {
        new D3DMaskFill(AnyColor,                  SrcOver),
        new D3DMaskFill(OpaqueColor,               SrcNoEa),
        new D3DMaskFill(GradientPaint,             SrcOver),
        new D3DMaskFill(OpaqueGradientPaint,       SrcNoEa),
        new D3DMaskFill(LinearGradientPaint,       SrcOver),
        new D3DMaskFill(OpaqueLinearGradientPaint, SrcNoEa),
        new D3DMaskFill(RadialGradientPaint,       SrcOver),
        new D3DMaskFill(OpaqueRadialGradientPaint, SrcNoEa),
        new D3DMaskFill(TexturePaint,              SrcOver),
        new D3DMaskFill(OpaqueTexturePaint,        SrcNoEa),
    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 17
Source File: D3DMaskFill.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
static void register() {
    GraphicsPrimitive[] primitives = {
        new D3DMaskFill(AnyColor,                  SrcOver),
        new D3DMaskFill(OpaqueColor,               SrcNoEa),
        new D3DMaskFill(GradientPaint,             SrcOver),
        new D3DMaskFill(OpaqueGradientPaint,       SrcNoEa),
        new D3DMaskFill(LinearGradientPaint,       SrcOver),
        new D3DMaskFill(OpaqueLinearGradientPaint, SrcNoEa),
        new D3DMaskFill(RadialGradientPaint,       SrcOver),
        new D3DMaskFill(OpaqueRadialGradientPaint, SrcNoEa),
        new D3DMaskFill(TexturePaint,              SrcOver),
        new D3DMaskFill(OpaqueTexturePaint,        SrcNoEa),
    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 18
Source File: X11PMBlitLoops.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
public static void register()
{
    GraphicsPrimitive[] primitives = {
        new X11PMBlitLoops(X11SurfaceData.IntBgrX11,
                           X11SurfaceData.IntBgrX11, false),
        new X11PMBlitLoops(X11SurfaceData.IntRgbX11,
                           X11SurfaceData.IntRgbX11, false),
        new X11PMBlitLoops(X11SurfaceData.ThreeByteBgrX11,
                           X11SurfaceData.ThreeByteBgrX11, false),
        new X11PMBlitLoops(X11SurfaceData.ThreeByteRgbX11,
                           X11SurfaceData.ThreeByteRgbX11, false),
        new X11PMBlitLoops(X11SurfaceData.ByteIndexedOpaqueX11,
                           X11SurfaceData.ByteIndexedOpaqueX11, false),
        new X11PMBlitLoops(X11SurfaceData.ByteGrayX11,
                           X11SurfaceData.ByteGrayX11, false),
        new X11PMBlitLoops(X11SurfaceData.Index8GrayX11,
                           X11SurfaceData.Index8GrayX11, false),
        new X11PMBlitLoops(X11SurfaceData.UShort555RgbX11,
                           X11SurfaceData.UShort555RgbX11, false),
        new X11PMBlitLoops(X11SurfaceData.UShort565RgbX11,
                           X11SurfaceData.UShort565RgbX11, false),
        new X11PMBlitLoops(X11SurfaceData.UShortIndexedX11,
                           X11SurfaceData.UShortIndexedX11, false),

        // 1-bit transparent to opaque loops
        new X11PMBlitLoops(X11SurfaceData.IntBgrX11_BM,
                           X11SurfaceData.IntBgrX11, true),
        new X11PMBlitLoops(X11SurfaceData.IntRgbX11_BM,
                           X11SurfaceData.IntRgbX11, true),
        new X11PMBlitLoops(X11SurfaceData.ThreeByteBgrX11_BM,
                           X11SurfaceData.ThreeByteBgrX11, true),
        new X11PMBlitLoops(X11SurfaceData.ThreeByteRgbX11_BM,
                           X11SurfaceData.ThreeByteRgbX11, true),
        new X11PMBlitLoops(X11SurfaceData.ByteIndexedX11_BM,
                           X11SurfaceData.ByteIndexedOpaqueX11, true),
        new X11PMBlitLoops(X11SurfaceData.ByteGrayX11_BM,
                           X11SurfaceData.ByteGrayX11, true),
        new X11PMBlitLoops(X11SurfaceData.Index8GrayX11_BM,
                           X11SurfaceData.Index8GrayX11, true),
        new X11PMBlitLoops(X11SurfaceData.UShort555RgbX11_BM,
                           X11SurfaceData.UShort555RgbX11, true),
        new X11PMBlitLoops(X11SurfaceData.UShort565RgbX11_BM,
                           X11SurfaceData.UShort565RgbX11, true),
        new X11PMBlitLoops(X11SurfaceData.UShortIndexedX11_BM,
                           X11SurfaceData.UShortIndexedX11, true),

        new X11PMBlitLoops(X11SurfaceData.IntRgbX11,
                           X11SurfaceData.IntArgbPreX11, true),
        new X11PMBlitLoops(X11SurfaceData.IntRgbX11,
                           X11SurfaceData.IntArgbPreX11, false),
        new X11PMBlitLoops(X11SurfaceData.IntRgbX11_BM,
                           X11SurfaceData.IntArgbPreX11, true),

        new X11PMBlitLoops(X11SurfaceData.IntBgrX11,
                           X11SurfaceData.FourByteAbgrPreX11, true),
        new X11PMBlitLoops(X11SurfaceData.IntBgrX11,
                           X11SurfaceData.FourByteAbgrPreX11, false),
        new X11PMBlitLoops(X11SurfaceData.IntBgrX11_BM,
                           X11SurfaceData.FourByteAbgrPreX11, true),



        // delegate loops
        new DelegateBlitLoop(X11SurfaceData.IntBgrX11_BM,
                             X11SurfaceData.IntBgrX11),
        new DelegateBlitLoop(X11SurfaceData.IntRgbX11_BM,
                             X11SurfaceData.IntRgbX11),
        new DelegateBlitLoop(X11SurfaceData.ThreeByteBgrX11_BM,
                             X11SurfaceData.ThreeByteBgrX11),
        new DelegateBlitLoop(X11SurfaceData.ThreeByteRgbX11_BM,
                             X11SurfaceData.ThreeByteRgbX11),
        new DelegateBlitLoop(X11SurfaceData.ByteIndexedX11_BM,
                             X11SurfaceData.ByteIndexedOpaqueX11),
        new DelegateBlitLoop(X11SurfaceData.ByteGrayX11_BM,
                             X11SurfaceData.ByteGrayX11),
        new DelegateBlitLoop(X11SurfaceData.Index8GrayX11_BM,
                             X11SurfaceData.Index8GrayX11),
        new DelegateBlitLoop(X11SurfaceData.UShort555RgbX11_BM,
                             X11SurfaceData.UShort555RgbX11),
        new DelegateBlitLoop(X11SurfaceData.UShort565RgbX11_BM,
                             X11SurfaceData.UShort565RgbX11),
        new DelegateBlitLoop(X11SurfaceData.UShortIndexedX11_BM,
                             X11SurfaceData.UShortIndexedX11),

    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 19
Source File: X11PMBlitLoops.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public static void register()
{
    GraphicsPrimitive[] primitives = {
        new X11PMBlitLoops(X11SurfaceData.IntBgrX11,
                           X11SurfaceData.IntBgrX11, false),
        new X11PMBlitLoops(X11SurfaceData.IntRgbX11,
                           X11SurfaceData.IntRgbX11, false),
        new X11PMBlitLoops(X11SurfaceData.ThreeByteBgrX11,
                           X11SurfaceData.ThreeByteBgrX11, false),
        new X11PMBlitLoops(X11SurfaceData.ThreeByteRgbX11,
                           X11SurfaceData.ThreeByteRgbX11, false),
        new X11PMBlitLoops(X11SurfaceData.ByteIndexedOpaqueX11,
                           X11SurfaceData.ByteIndexedOpaqueX11, false),
        new X11PMBlitLoops(X11SurfaceData.ByteGrayX11,
                           X11SurfaceData.ByteGrayX11, false),
        new X11PMBlitLoops(X11SurfaceData.Index8GrayX11,
                           X11SurfaceData.Index8GrayX11, false),
        new X11PMBlitLoops(X11SurfaceData.UShort555RgbX11,
                           X11SurfaceData.UShort555RgbX11, false),
        new X11PMBlitLoops(X11SurfaceData.UShort565RgbX11,
                           X11SurfaceData.UShort565RgbX11, false),
        new X11PMBlitLoops(X11SurfaceData.UShortIndexedX11,
                           X11SurfaceData.UShortIndexedX11, false),

        // 1-bit transparent to opaque loops
        new X11PMBlitLoops(X11SurfaceData.IntBgrX11_BM,
                           X11SurfaceData.IntBgrX11, true),
        new X11PMBlitLoops(X11SurfaceData.IntRgbX11_BM,
                           X11SurfaceData.IntRgbX11, true),
        new X11PMBlitLoops(X11SurfaceData.ThreeByteBgrX11_BM,
                           X11SurfaceData.ThreeByteBgrX11, true),
        new X11PMBlitLoops(X11SurfaceData.ThreeByteRgbX11_BM,
                           X11SurfaceData.ThreeByteRgbX11, true),
        new X11PMBlitLoops(X11SurfaceData.ByteIndexedX11_BM,
                           X11SurfaceData.ByteIndexedOpaqueX11, true),
        new X11PMBlitLoops(X11SurfaceData.ByteGrayX11_BM,
                           X11SurfaceData.ByteGrayX11, true),
        new X11PMBlitLoops(X11SurfaceData.Index8GrayX11_BM,
                           X11SurfaceData.Index8GrayX11, true),
        new X11PMBlitLoops(X11SurfaceData.UShort555RgbX11_BM,
                           X11SurfaceData.UShort555RgbX11, true),
        new X11PMBlitLoops(X11SurfaceData.UShort565RgbX11_BM,
                           X11SurfaceData.UShort565RgbX11, true),
        new X11PMBlitLoops(X11SurfaceData.UShortIndexedX11_BM,
                           X11SurfaceData.UShortIndexedX11, true),

        new X11PMBlitLoops(X11SurfaceData.IntRgbX11,
                           X11SurfaceData.IntArgbPreX11, true),
        new X11PMBlitLoops(X11SurfaceData.IntRgbX11,
                           X11SurfaceData.IntArgbPreX11, false),
        new X11PMBlitLoops(X11SurfaceData.IntRgbX11_BM,
                           X11SurfaceData.IntArgbPreX11, true),

        new X11PMBlitLoops(X11SurfaceData.IntBgrX11,
                           X11SurfaceData.FourByteAbgrPreX11, true),
        new X11PMBlitLoops(X11SurfaceData.IntBgrX11,
                           X11SurfaceData.FourByteAbgrPreX11, false),
        new X11PMBlitLoops(X11SurfaceData.IntBgrX11_BM,
                           X11SurfaceData.FourByteAbgrPreX11, true),



        // delegate loops
        new DelegateBlitLoop(X11SurfaceData.IntBgrX11_BM,
                             X11SurfaceData.IntBgrX11),
        new DelegateBlitLoop(X11SurfaceData.IntRgbX11_BM,
                             X11SurfaceData.IntRgbX11),
        new DelegateBlitLoop(X11SurfaceData.ThreeByteBgrX11_BM,
                             X11SurfaceData.ThreeByteBgrX11),
        new DelegateBlitLoop(X11SurfaceData.ThreeByteRgbX11_BM,
                             X11SurfaceData.ThreeByteRgbX11),
        new DelegateBlitLoop(X11SurfaceData.ByteIndexedX11_BM,
                             X11SurfaceData.ByteIndexedOpaqueX11),
        new DelegateBlitLoop(X11SurfaceData.ByteGrayX11_BM,
                             X11SurfaceData.ByteGrayX11),
        new DelegateBlitLoop(X11SurfaceData.Index8GrayX11_BM,
                             X11SurfaceData.Index8GrayX11),
        new DelegateBlitLoop(X11SurfaceData.UShort555RgbX11_BM,
                             X11SurfaceData.UShort555RgbX11),
        new DelegateBlitLoop(X11SurfaceData.UShort565RgbX11_BM,
                             X11SurfaceData.UShort565RgbX11),
        new DelegateBlitLoop(X11SurfaceData.UShortIndexedX11_BM,
                             X11SurfaceData.UShortIndexedX11),

    };
    GraphicsPrimitiveMgr.register(primitives);
}
 
Example 20
Source File: X11PMBlitLoops.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public static void register()
{
    GraphicsPrimitive[] primitives = {
        new X11PMBlitLoops(X11SurfaceData.IntBgrX11,
                           X11SurfaceData.IntBgrX11, false),
        new X11PMBlitLoops(X11SurfaceData.IntRgbX11,
                           X11SurfaceData.IntRgbX11, false),
        new X11PMBlitLoops(X11SurfaceData.ThreeByteBgrX11,
                           X11SurfaceData.ThreeByteBgrX11, false),
        new X11PMBlitLoops(X11SurfaceData.ThreeByteRgbX11,
                           X11SurfaceData.ThreeByteRgbX11, false),
        new X11PMBlitLoops(X11SurfaceData.ByteIndexedOpaqueX11,
                           X11SurfaceData.ByteIndexedOpaqueX11, false),
        new X11PMBlitLoops(X11SurfaceData.ByteGrayX11,
                           X11SurfaceData.ByteGrayX11, false),
        new X11PMBlitLoops(X11SurfaceData.Index8GrayX11,
                           X11SurfaceData.Index8GrayX11, false),
        new X11PMBlitLoops(X11SurfaceData.UShort555RgbX11,
                           X11SurfaceData.UShort555RgbX11, false),
        new X11PMBlitLoops(X11SurfaceData.UShort565RgbX11,
                           X11SurfaceData.UShort565RgbX11, false),
        new X11PMBlitLoops(X11SurfaceData.UShortIndexedX11,
                           X11SurfaceData.UShortIndexedX11, false),

        // 1-bit transparent to opaque loops
        new X11PMBlitLoops(X11SurfaceData.IntBgrX11_BM,
                           X11SurfaceData.IntBgrX11, true),
        new X11PMBlitLoops(X11SurfaceData.IntRgbX11_BM,
                           X11SurfaceData.IntRgbX11, true),
        new X11PMBlitLoops(X11SurfaceData.ThreeByteBgrX11_BM,
                           X11SurfaceData.ThreeByteBgrX11, true),
        new X11PMBlitLoops(X11SurfaceData.ThreeByteRgbX11_BM,
                           X11SurfaceData.ThreeByteRgbX11, true),
        new X11PMBlitLoops(X11SurfaceData.ByteIndexedX11_BM,
                           X11SurfaceData.ByteIndexedOpaqueX11, true),
        new X11PMBlitLoops(X11SurfaceData.ByteGrayX11_BM,
                           X11SurfaceData.ByteGrayX11, true),
        new X11PMBlitLoops(X11SurfaceData.Index8GrayX11_BM,
                           X11SurfaceData.Index8GrayX11, true),
        new X11PMBlitLoops(X11SurfaceData.UShort555RgbX11_BM,
                           X11SurfaceData.UShort555RgbX11, true),
        new X11PMBlitLoops(X11SurfaceData.UShort565RgbX11_BM,
                           X11SurfaceData.UShort565RgbX11, true),
        new X11PMBlitLoops(X11SurfaceData.UShortIndexedX11_BM,
                           X11SurfaceData.UShortIndexedX11, true),

        new X11PMBlitLoops(X11SurfaceData.IntRgbX11,
                           X11SurfaceData.IntArgbPreX11, true),
        new X11PMBlitLoops(X11SurfaceData.IntRgbX11,
                           X11SurfaceData.IntArgbPreX11, false),
        new X11PMBlitLoops(X11SurfaceData.IntRgbX11_BM,
                           X11SurfaceData.IntArgbPreX11, true),

        new X11PMBlitLoops(X11SurfaceData.IntBgrX11,
                           X11SurfaceData.FourByteAbgrPreX11, true),
        new X11PMBlitLoops(X11SurfaceData.IntBgrX11,
                           X11SurfaceData.FourByteAbgrPreX11, false),
        new X11PMBlitLoops(X11SurfaceData.IntBgrX11_BM,
                           X11SurfaceData.FourByteAbgrPreX11, true),



        // delegate loops
        new DelegateBlitLoop(X11SurfaceData.IntBgrX11_BM,
                             X11SurfaceData.IntBgrX11),
        new DelegateBlitLoop(X11SurfaceData.IntRgbX11_BM,
                             X11SurfaceData.IntRgbX11),
        new DelegateBlitLoop(X11SurfaceData.ThreeByteBgrX11_BM,
                             X11SurfaceData.ThreeByteBgrX11),
        new DelegateBlitLoop(X11SurfaceData.ThreeByteRgbX11_BM,
                             X11SurfaceData.ThreeByteRgbX11),
        new DelegateBlitLoop(X11SurfaceData.ByteIndexedX11_BM,
                             X11SurfaceData.ByteIndexedOpaqueX11),
        new DelegateBlitLoop(X11SurfaceData.ByteGrayX11_BM,
                             X11SurfaceData.ByteGrayX11),
        new DelegateBlitLoop(X11SurfaceData.Index8GrayX11_BM,
                             X11SurfaceData.Index8GrayX11),
        new DelegateBlitLoop(X11SurfaceData.UShort555RgbX11_BM,
                             X11SurfaceData.UShort555RgbX11),
        new DelegateBlitLoop(X11SurfaceData.UShort565RgbX11_BM,
                             X11SurfaceData.UShort565RgbX11),
        new DelegateBlitLoop(X11SurfaceData.UShortIndexedX11_BM,
                             X11SurfaceData.UShortIndexedX11),

    };
    GraphicsPrimitiveMgr.register(primitives);
}