Package sun.java2d

Examples of sun.java2d.SurfaceData.invalidate()


            surfaceDataSw = null;
            surfaceData = getSurfaceDataSw();
            // Now, invalidate the old hardware-based surfaceData
            SurfaceData oldData = surfaceDataHw;
            surfaceDataHw = null;
            oldData.invalidate();
        }
        // If we were created by a Component, get the new GC
        // associated with that object.  Then we won't return
        // IMAGE_INCOMPATIBLE from our next validate() call.
        // 4636548: We need to reset graphicsConfig every time
View Full Code Here


        if ((width != oldWidth) || (height != oldHeight))
        {
            SurfaceData oldData = surfaceData;
            if (oldData != null) {
                surfaceData = graphicsConfig.createSurfaceData(this);
                oldData.invalidate();
            }
            oldWidth = width;
            oldHeight = height;
        }
        validateSurface(width, height);
View Full Code Here

      void validateSurface() {
        if ((width != oldWidth) || (height != oldHeight)) {
            SurfaceData oldData = surfaceData;
            if (oldData != null) {
                surfaceData = graphicsConfig.createSurfaceData(this);
                oldData.invalidate();
            }
            oldWidth = width;
            oldHeight = height;
        }
    }
View Full Code Here

    public void dispose() {
        SurfaceData oldData = surfaceData;
        surfaceData = null;
        if (oldData != null) {
            oldData.invalidate();
        }
        XToolkit.targetDisposedPeer(target, this);
        destroy();
    }
View Full Code Here

                SurfaceData oldData = surfaceData;
                Win32GraphicsConfig gc =
                    (Win32GraphicsConfig)getGraphicsConfiguration();
                surfaceData = gc.createSurfaceData(this, numBackBuffers);
                if (oldData != null) {
                    oldData.invalidate();
                    // null out the old data to make it collected faster
                    oldData = null;
                }

                if (backBuffer != null) {
View Full Code Here

    private synchronized native void _dispose();
    protected void disposeImpl() {
        SurfaceData oldData = surfaceData;
        surfaceData = null;
        oldData.invalidate();
        // remove from updater before calling targetDisposedPeer
        WToolkit.targetDisposedPeer(target, this);
        _dispose();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.