sun.java2d.d3d.D3DSurfaceData Java Examples
The following examples show how to use
sun.java2d.d3d.D3DSurfaceData.
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: WComponentPeer.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
void dynamicallyLayoutContainer() { // If we got the WM_SIZING, this must be a Container, right? // In fact, it must be the top-level Container. if (log.isLoggable(PlatformLogger.Level.FINE)) { Container parent = WToolkit.getNativeContainer((Component)target); if (parent != null) { log.fine("Assertion (parent == null) failed"); } } final Container cont = (Container)target; WToolkit.executeOnEventHandlerThread(cont, new Runnable() { @Override public void run() { // Discarding old paint events doesn't seem to be necessary. cont.invalidate(); cont.validate(); if (surfaceData instanceof D3DSurfaceData.D3DWindowSurfaceData || surfaceData instanceof OGLSurfaceData) { // When OGL or D3D is enabled, it is necessary to // replace the SurfaceData for each dynamic layout // request so that the viewport stays in sync // with the window bounds. try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND: this is unlikely to occur for OGL, but // what do we do if surface creation fails? } } // Forcing a paint here doesn't seem to be necessary. // paintDamagedAreaImmediately(); } }); }
Example #2
Source File: WComponentPeer.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
void dynamicallyLayoutContainer() { // If we got the WM_SIZING, this must be a Container, right? // In fact, it must be the top-level Container. if (log.isLoggable(PlatformLogger.Level.FINE)) { Container parent = WToolkit.getNativeContainer((Component)target); if (parent != null) { log.fine("Assertion (parent == null) failed"); } } final Container cont = (Container)target; WToolkit.executeOnEventHandlerThread(cont, new Runnable() { @Override public void run() { // Discarding old paint events doesn't seem to be necessary. cont.invalidate(); cont.validate(); if (surfaceData instanceof D3DSurfaceData.D3DWindowSurfaceData || surfaceData instanceof OGLSurfaceData) { // When OGL or D3D is enabled, it is necessary to // replace the SurfaceData for each dynamic layout // request so that the viewport stays in sync // with the window bounds. try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND: this is unlikely to occur for OGL, but // what do we do if surface creation fails? } } // Forcing a paint here doesn't seem to be necessary. // paintDamagedAreaImmediately(); } }); }
Example #3
Source File: WComponentPeer.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
void dynamicallyLayoutContainer() { // If we got the WM_SIZING, this must be a Container, right? // In fact, it must be the top-level Container. if (log.isLoggable(PlatformLogger.Level.FINE)) { Container parent = WToolkit.getNativeContainer((Component)target); if (parent != null) { log.fine("Assertion (parent == null) failed"); } } final Container cont = (Container)target; WToolkit.executeOnEventHandlerThread(cont, new Runnable() { @Override public void run() { // Discarding old paint events doesn't seem to be necessary. cont.invalidate(); cont.validate(); if (surfaceData instanceof D3DSurfaceData.D3DWindowSurfaceData || surfaceData instanceof OGLSurfaceData) { // When OGL or D3D is enabled, it is necessary to // replace the SurfaceData for each dynamic layout // request so that the viewport stays in sync // with the window bounds. try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND: this is unlikely to occur for OGL, but // what do we do if surface creation fails? } } // Forcing a paint here doesn't seem to be necessary. // paintDamagedAreaImmediately(); } }); }
Example #4
Source File: WComponentPeer.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
void dynamicallyLayoutContainer() { // If we got the WM_SIZING, this must be a Container, right? // In fact, it must be the top-level Container. if (log.isLoggable(PlatformLogger.Level.FINE)) { Container parent = WToolkit.getNativeContainer((Component)target); if (parent != null) { log.fine("Assertion (parent == null) failed"); } } final Container cont = (Container)target; WToolkit.executeOnEventHandlerThread(cont, new Runnable() { @Override public void run() { // Discarding old paint events doesn't seem to be necessary. cont.invalidate(); cont.validate(); if (surfaceData instanceof D3DSurfaceData.D3DWindowSurfaceData || surfaceData instanceof OGLSurfaceData) { // When OGL or D3D is enabled, it is necessary to // replace the SurfaceData for each dynamic layout // request so that the viewport stays in sync // with the window bounds. try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND: this is unlikely to occur for OGL, but // what do we do if surface creation fails? } } // Forcing a paint here doesn't seem to be necessary. // paintDamagedAreaImmediately(); } }); }
Example #5
Source File: WComponentPeer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
void dynamicallyLayoutContainer() { // If we got the WM_SIZING, this must be a Container, right? // In fact, it must be the top-level Container. if (log.isLoggable(PlatformLogger.Level.FINE)) { Container parent = WToolkit.getNativeContainer((Component)target); if (parent != null) { log.fine("Assertion (parent == null) failed"); } } final Container cont = (Container)target; WToolkit.executeOnEventHandlerThread(cont, new Runnable() { @Override public void run() { // Discarding old paint events doesn't seem to be necessary. cont.invalidate(); cont.validate(); if (surfaceData instanceof D3DSurfaceData.D3DWindowSurfaceData || surfaceData instanceof OGLSurfaceData) { // When OGL or D3D is enabled, it is necessary to // replace the SurfaceData for each dynamic layout // request so that the viewport stays in sync // with the window bounds. try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND: this is unlikely to occur for OGL, but // what do we do if surface creation fails? } } // Forcing a paint here doesn't seem to be necessary. // paintDamagedAreaImmediately(); } }); }
Example #6
Source File: WComponentPeer.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
void dynamicallyLayoutContainer() { // If we got the WM_SIZING, this must be a Container, right? // In fact, it must be the top-level Container. if (log.isLoggable(PlatformLogger.Level.FINE)) { Container parent = WToolkit.getNativeContainer((Component)target); if (parent != null) { log.fine("Assertion (parent == null) failed"); } } final Container cont = (Container)target; WToolkit.executeOnEventHandlerThread(cont, new Runnable() { @Override public void run() { // Discarding old paint events doesn't seem to be necessary. cont.invalidate(); cont.validate(); if (surfaceData instanceof D3DSurfaceData.D3DWindowSurfaceData || surfaceData instanceof OGLSurfaceData) { // When OGL or D3D is enabled, it is necessary to // replace the SurfaceData for each dynamic layout // request so that the viewport stays in sync // with the window bounds. try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND: this is unlikely to occur for OGL, but // what do we do if surface creation fails? } } // Forcing a paint here doesn't seem to be necessary. // paintDamagedAreaImmediately(); } }); }
Example #7
Source File: WComponentPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
void dynamicallyLayoutContainer() { // If we got the WM_SIZING, this must be a Container, right? // In fact, it must be the top-level Container. if (log.isLoggable(PlatformLogger.Level.FINE)) { Container parent = WToolkit.getNativeContainer((Component)target); if (parent != null) { log.fine("Assertion (parent == null) failed"); } } final Container cont = (Container)target; WToolkit.executeOnEventHandlerThread(cont, new Runnable() { @Override public void run() { // Discarding old paint events doesn't seem to be necessary. cont.invalidate(); cont.validate(); if (surfaceData instanceof D3DSurfaceData.D3DWindowSurfaceData || surfaceData instanceof OGLSurfaceData) { // When OGL or D3D is enabled, it is necessary to // replace the SurfaceData for each dynamic layout // request so that the viewport stays in sync // with the window bounds. try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND: this is unlikely to occur for OGL, but // what do we do if surface creation fails? } } // Forcing a paint here doesn't seem to be necessary. // paintDamagedAreaImmediately(); } }); }
Example #8
Source File: WComponentPeer.java From hottub with GNU General Public License v2.0 | 5 votes |
void dynamicallyLayoutContainer() { // If we got the WM_SIZING, this must be a Container, right? // In fact, it must be the top-level Container. if (log.isLoggable(PlatformLogger.Level.FINE)) { Container parent = WToolkit.getNativeContainer((Component)target); if (parent != null) { log.fine("Assertion (parent == null) failed"); } } final Container cont = (Container)target; WToolkit.executeOnEventHandlerThread(cont, new Runnable() { @Override public void run() { // Discarding old paint events doesn't seem to be necessary. cont.invalidate(); cont.validate(); if (surfaceData instanceof D3DSurfaceData.D3DWindowSurfaceData || surfaceData instanceof OGLSurfaceData) { // When OGL or D3D is enabled, it is necessary to // replace the SurfaceData for each dynamic layout // request so that the viewport stays in sync // with the window bounds. try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND: this is unlikely to occur for OGL, but // what do we do if surface creation fails? } } // Forcing a paint here doesn't seem to be necessary. // paintDamagedAreaImmediately(); } }); }
Example #9
Source File: WComponentPeer.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
void dynamicallyLayoutContainer() { // If we got the WM_SIZING, this must be a Container, right? // In fact, it must be the top-level Container. if (log.isLoggable(PlatformLogger.Level.FINE)) { Container parent = WToolkit.getNativeContainer((Component)target); if (parent != null) { log.fine("Assertion (parent == null) failed"); } } final Container cont = (Container)target; WToolkit.executeOnEventHandlerThread(cont, new Runnable() { public void run() { // Discarding old paint events doesn't seem to be necessary. cont.invalidate(); cont.validate(); if (surfaceData instanceof D3DSurfaceData.D3DWindowSurfaceData || surfaceData instanceof OGLSurfaceData) { // When OGL or D3D is enabled, it is necessary to // replace the SurfaceData for each dynamic layout // request so that the viewport stays in sync // with the window bounds. try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND: this is unlikely to occur for OGL, but // what do we do if surface creation fails? } } // Forcing a paint here doesn't seem to be necessary. // paintDamagedAreaImmediately(); } }); }
Example #10
Source File: WComponentPeer.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
void dynamicallyLayoutContainer() { // If we got the WM_SIZING, this must be a Container, right? // In fact, it must be the top-level Container. if (log.isLoggable(PlatformLogger.Level.FINE)) { Container parent = WToolkit.getNativeContainer((Component)target); if (parent != null) { log.fine("Assertion (parent == null) failed"); } } final Container cont = (Container)target; WToolkit.executeOnEventHandlerThread(cont, new Runnable() { public void run() { // Discarding old paint events doesn't seem to be necessary. cont.invalidate(); cont.validate(); if (surfaceData instanceof D3DSurfaceData.D3DWindowSurfaceData || surfaceData instanceof OGLSurfaceData) { // When OGL or D3D is enabled, it is necessary to // replace the SurfaceData for each dynamic layout // request so that the viewport stays in sync // with the window bounds. try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND: this is unlikely to occur for OGL, but // what do we do if surface creation fails? } } // Forcing a paint here doesn't seem to be necessary. // paintDamagedAreaImmediately(); } }); }
Example #11
Source File: WComponentPeer.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
void dynamicallyLayoutContainer() { // If we got the WM_SIZING, this must be a Container, right? // In fact, it must be the top-level Container. if (log.isLoggable(PlatformLogger.Level.FINE)) { Container parent = WToolkit.getNativeContainer((Component)target); if (parent != null) { log.fine("Assertion (parent == null) failed"); } } final Container cont = (Container)target; WToolkit.executeOnEventHandlerThread(cont, new Runnable() { @Override public void run() { // Discarding old paint events doesn't seem to be necessary. cont.invalidate(); cont.validate(); if (surfaceData instanceof D3DSurfaceData.D3DWindowSurfaceData || surfaceData instanceof OGLSurfaceData) { // When OGL or D3D is enabled, it is necessary to // replace the SurfaceData for each dynamic layout // request so that the viewport stays in sync // with the window bounds. try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND: this is unlikely to occur for OGL, but // what do we do if surface creation fails? } } // Forcing a paint here doesn't seem to be necessary. // paintDamagedAreaImmediately(); } }); }
Example #12
Source File: WComponentPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
void dynamicallyLayoutContainer() { // If we got the WM_SIZING, this must be a Container, right? // In fact, it must be the top-level Container. if (log.isLoggable(PlatformLogger.Level.FINE)) { Container parent = WToolkit.getNativeContainer((Component)target); if (parent != null) { log.fine("Assertion (parent == null) failed"); } } final Container cont = (Container)target; WToolkit.executeOnEventHandlerThread(cont, new Runnable() { @Override public void run() { // Discarding old paint events doesn't seem to be necessary. cont.invalidate(); cont.validate(); if (surfaceData instanceof D3DSurfaceData.D3DWindowSurfaceData || surfaceData instanceof OGLSurfaceData) { // When OGL or D3D is enabled, it is necessary to // replace the SurfaceData for each dynamic layout // request so that the viewport stays in sync // with the window bounds. try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND: this is unlikely to occur for OGL, but // what do we do if surface creation fails? } } // Forcing a paint here doesn't seem to be necessary. // paintDamagedAreaImmediately(); } }); }
Example #13
Source File: WComponentPeer.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
void dynamicallyLayoutContainer() { // If we got the WM_SIZING, this must be a Container, right? // In fact, it must be the top-level Container. if (log.isLoggable(PlatformLogger.Level.FINE)) { Container parent = WToolkit.getNativeContainer((Component)target); if (parent != null) { log.fine("Assertion (parent == null) failed"); } } final Container cont = (Container)target; WToolkit.executeOnEventHandlerThread(cont, new Runnable() { @Override public void run() { // Discarding old paint events doesn't seem to be necessary. cont.invalidate(); cont.validate(); if (surfaceData instanceof D3DSurfaceData.D3DWindowSurfaceData || surfaceData instanceof OGLSurfaceData) { // When OGL or D3D is enabled, it is necessary to // replace the SurfaceData for each dynamic layout // request so that the viewport stays in sync // with the window bounds. try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND: this is unlikely to occur for OGL, but // what do we do if surface creation fails? } } // Forcing a paint here doesn't seem to be necessary. // paintDamagedAreaImmediately(); } }); }