Package sun.awt

Examples of sun.awt.Win32GraphicsDevice


            // rendering.  Or they could actually implement the
            // functionality needed in initOps.  But this seems
            // to work for now.  See bug 4391928 for more info.
            return;
        }
        Win32GraphicsDevice gd =
            (Win32GraphicsDevice)graphicsConfig.getDevice();
        initOps(peer, depth, rMask, gMask, bMask, numBuffers, gd.getScreen());
        setBlitProxyKey(graphicsConfig.getProxyKey());
    }
View Full Code Here


        if (transparency == Transparency.TRANSLUCENT) {
            return null;
        }


        Win32GraphicsDevice gd = (Win32GraphicsDevice)gc.getDevice();
        if (!gd.isOffscreenAccelerationEnabled())
        {
            // If acceleration for this type of image is disabled on this
            // device, do not create an accelerated surface type
            return null;
        }

        return new Win32OffScreenSurfaceData(width, height,
                                             getSurfaceType(cm, transparency),
                                             cm, gc, image, transparency,
                                             gd.getScreen());
    }
View Full Code Here

    private static final int MAX_SIZE = 65536;

    public static SurfaceDataProxy createProxy(SurfaceData srcData,
                                               Win32GraphicsConfig dstConfig)
    {
        Win32GraphicsDevice wgd =
            (Win32GraphicsDevice) dstConfig.getDevice();
        if (!wgd.isDDEnabledOnDevice() ||
            srcData instanceof Win32SurfaceData ||
            srcData instanceof Win32OffScreenSurfaceData)
        {
            // If they are not on the same screen then we could cache the
            // blit by returning an instance of Opaque below, but this
View Full Code Here

                    Win32OffScreenSurfaceData.createData(w, h,
                                                         dstScreenCM,
                                                         wgc, null,
                                                         srcTransparency);
            } catch (InvalidPipeException e) {
                Win32GraphicsDevice wgd = (Win32GraphicsDevice) wgc.getDevice();
                if (!wgd.isDDEnabledOnDevice()) {
                    invalidate();
                    flush();
                    return null;
                }
            }
View Full Code Here

    public static WinBackBufferSurfaceData
        createData(int width, int height,
                   ColorModel cm, GraphicsConfiguration gc, Image image,
                   Win32SurfaceData parentData)
    {
        Win32GraphicsDevice gd = (Win32GraphicsDevice)gc.getDevice();
        SurfaceType sType = getSurfaceType(cm, Transparency.OPAQUE);
        return new WinBackBufferSurfaceData(width, height, sType,
                                            cm, gc, image,
                                            gd.getScreen(), parentData);
    }
View Full Code Here

        createData(int width, int height,
                   ColorModel cm, GraphicsConfiguration gc,
                   Image image,
                   Win32SurfaceData parentData)
    {
        Win32GraphicsDevice gd = (Win32GraphicsDevice)gc.getDevice();
        if (!gd.isD3DEnabledOnDevice()) {
            return null;
        }
        SurfaceType sType = getSurfaceType(cm, Transparency.OPAQUE);
        return new
            D3DBackBufferSurfaceData(width, height,
                 getSurfaceType(gc, cm,
                                D3DSurfaceData.D3D_ATTACHED_SURFACE),
                 cm, gc, image,
                 gd.getScreen(), parentData);
    }
View Full Code Here

                                            int d3dSurfaceType,
                                            ColorModel cm,
                                            GraphicsConfiguration gc,
                                            Image image)
    {
        Win32GraphicsDevice gd = (Win32GraphicsDevice)gc.getDevice();
        // After a display change ddInstance may not be
        // recreated yet, and in this case isD3DEnabledOnDevice will
        // return false, until someone attempted to recreate the
        // primary.
        if (!gd.isD3DEnabledOnDevice()) {
            return null;
        }

        return new D3DSurfaceData(width, height,
                                  d3dSurfaceType,
                                  getSurfaceType(gc, cm, d3dSurfaceType),
                                  cm, gc, image,
                                  cm.getTransparency(), gd.getScreen());
    }
View Full Code Here

        if (d3dSurfaceType == D3D_TEXTURE_SURFACE) {
            // for non-rtt textures we have only one surface type
            return D3DTexture;
        } else {
            int pixelSize = cm.getPixelSize();
            Win32GraphicsDevice gd = (Win32GraphicsDevice)gc.getDevice();
            int transparency = cm.getTransparency();

            // We'll attempt to use render-to-texture if render target is
            // requested, but it's not a back-buffer and we support RTT
            // for this configuration.
            boolean useRTT =
                ((d3dSurfaceType & D3D_RENDER_TARGET) != 0) &&
                ((d3dSurfaceType & D3D_BACKBUFFER_SURFACE) == 0) &&
                gd.getD3DContext().isRTTSupported();

            // if there's no RTT available, we can't accelerate non-opaque
            // surfaces, so we return null.
            if (transparency == Transparency.TRANSLUCENT ||
                transparency == Transparency.BITMASK)
View Full Code Here

        }

        Win32OffScreenSurfaceData ret = new Win32OffScreenSurfaceData(width,
            height, getSurfaceType(cm, transparency),
            cm, graphicsConfig, image, transparency);
        Win32GraphicsDevice gd =
            (Win32GraphicsDevice)graphicsConfig.getDevice();

        ret.initSurface(cm.getPixelSize(), width, height, gd.getScreen(),
            (image instanceof WVolatileImage), transparency, forceDDVram);
        // d3dClippingEnabled is set during the call to initSurface
        if (ret.d3dClippingEnabled) {
            ret.d3dPipe = d3dClipPipe;
            ret.d3dTxPipe = d3dTxClipPipe;
View Full Code Here

            // rendering.  Or they could actually implement the
            // functionality needed in initOps.  But this seems
            // to work for now.  See bug 4391928 for more info.
            return;
        }
        Win32GraphicsDevice gd =
            (Win32GraphicsDevice)graphicsConfig.getDevice();
        initOps(peer, depth, rMask, gMask, bMask, numBuffers, gd.getScreen());
    }
View Full Code Here

TOP

Related Classes of sun.awt.Win32GraphicsDevice

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.