@Override protected void closeNativeImpl(final AbstractGraphicsDevice aDevice) { aDevice.close(); }
@Override protected void closeNativeImpl(final AbstractGraphicsDevice aDevice) { aDevice.close(); }
@Override protected void closeNativeImpl(final AbstractGraphicsDevice aDevice) { aDevice.close(); CloseBCMDisplay0(bcmHandle); bcmHandle = 0; }
@Override protected void closeNativeImpl(final AbstractGraphicsDevice aDevice) { sharedClassFactory.releaseSharedClass(); aDevice.close(); }
/** * Last resort to destroy and loose ownership */ public void destroy() { if( owner ) { final int aSz = listenerCount(); for(int i=0; i<aSz; i++) { listeners[i] = null; } // context.destroy(); - NPE (null drawable) unlockOp.run(); device.close(); owner = false; } }
@Override protected void closeNativeImpl(final AbstractGraphicsDevice aDevice) { DisplayRelease0(aDevice.getHandle(), javaObjectAtom, windowDeleteAtom /*, kbdHandle */); // XKB disabled for now javaObjectAtom = 0; windowDeleteAtom = 0; // kbdHandle = 0; aDevice.close(); // closes X11 display }
private void dispose() { if( null != jawtWindow ) { jawtWindow.destroy(); if(Window.DEBUG_IMPLEMENTATION) { System.err.println(getThreadName()+": AWTCanvas.disposeJAWTWindowAndAWTDeviceOnEDT(): post JAWTWindow: "+jawtWindow); } jawtWindow=null; } if(null != awtConfig) { final AbstractGraphicsDevice adevice = awtConfig.getNativeGraphicsConfiguration().getScreen().getDevice(); String adeviceMsg=null; if(Window.DEBUG_IMPLEMENTATION) { adeviceMsg = adevice.toString(); } final boolean closed = adevice.close(); if(Window.DEBUG_IMPLEMENTATION) { System.err.println(getThreadName()+": AWTCanvas.dispose(): closed GraphicsDevice: "+adeviceMsg+", result: "+closed); } } }
public static void destroyNativeWindow(final JAWTWindow jawtWindow) { final AbstractGraphicsConfiguration config = jawtWindow.getGraphicsConfiguration(); jawtWindow.destroy(); config.getScreen().getDevice().close(); }
adeviceMsg = null; final boolean closed = adevice.close(); if(DEBUG) { System.err.println(getThreadName()+": GLCanvas.disposeJAWTWindowAndAWTDeviceOnEDT(): post GraphicsDevice: "+adeviceMsg+", result: "+closed);
@Override public void destroyNotify() { if(upstreamSurfaceHookLifecycleEnabled) { upstream.destroy(this); if( containsUpstreamOptionBits( ProxySurface.OPT_PROXY_OWNS_UPSTREAM_DEVICE ) ) { final AbstractGraphicsDevice aDevice = getGraphicsConfiguration().getScreen().getDevice(); aDevice.close(); clearUpstreamOptionBits( ProxySurface.OPT_PROXY_OWNS_UPSTREAM_DEVICE ); } invalidateImpl(); } this.surfaceHandle_old = 0; }
/** * Destroys this resource: * <ul> * <li> Make the NEWT Child invisible </li> * <li> Disconnects the NEWT Child from this Canvas NativeWindow, reparent to NULL </li> * <li> Issues <code>destroy()</code> on the NEWT Child</li> * <li> Remove reference to the NEWT Child</li> * </ul> * @see Window#destroy() */ @Override public void dispose() { if( null != newtChild ) { if(DEBUG) { System.err.println("NewtCanvasSWT.dispose.0: EDTUtil cur "+newtChild.getScreen().getDisplay().getEDTUtil()+ ",\n\t"+newtChild); } configureNewtChild(false); newtChild.setVisible(false); newtChild.reparentWindow(null, -1, -1, 0 /* hint */); newtChild.destroy(); newtChild = null; } screen.getDevice().close(); nativeWindow = null; super.dispose(); }
private void destroySharedGL() { if( null != sharedGLCtx ) { if( sharedGLCtx.isCreated() ) { // Catch dispose GLExceptions by GLEventListener, just 'print' them // so we can continue with the destruction. try { sharedGLCtx.destroy(); } catch (final GLException gle) { gle.printStackTrace(); } } sharedGLCtx = null; } if( null != dummyDrawable ) { final AbstractGraphicsDevice device = dummyDrawable.getNativeSurface().getGraphicsConfiguration().getScreen().getDevice(); dummyDrawable.setRealized(false); dummyDrawable = null; device.close(); } }
final AbstractGraphicsDevice cfgADevice = config.getScreen().getDevice(); if( cfgADevice != screen.getDisplay().getGraphicsDevice() ) { // don't pull display's device cfgADevice.close(); // ensure a cfg's device is closed
offscreenDrawable = null; if(null != adevice) { adevice.close();
try { if( ownsDevice ) { device.close();
gdkWindow = 0; screen.getDevice().close(); } catch (final Throwable re) { exceptionOnDeviceClose = re;