sun.java2d.ScreenUpdateManager Java Examples
The following examples show how to use
sun.java2d.ScreenUpdateManager.
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: D3DRenderQueue.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Flushes the single D3DRenderQueue instance synchronously. If an * D3DRenderQueue has not yet been instantiated, this method is a no-op. * This method is useful in the case of Toolkit.sync(), in which we want * to flush the D3D pipeline, but only if the D3D pipeline is currently * enabled. Since this class has few external dependencies, callers need * not be concerned that calling this method will trigger initialization * of the D3D pipeline and related classes. */ public static void sync() { if (theInstance != null) { // need to make sure any/all screen surfaces are presented prior // to completing the sync operation D3DScreenUpdateManager mgr = (D3DScreenUpdateManager)ScreenUpdateManager.getInstance(); mgr.runUpdateNow(); theInstance.lock(); try { theInstance.ensureCapacity(4); theInstance.getBuffer().putInt(SYNC); theInstance.flushNow(); } finally { theInstance.unlock(); } } }
Example #2
Source File: D3DRenderQueue.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Flushes the single D3DRenderQueue instance synchronously. If an * D3DRenderQueue has not yet been instantiated, this method is a no-op. * This method is useful in the case of Toolkit.sync(), in which we want * to flush the D3D pipeline, but only if the D3D pipeline is currently * enabled. Since this class has few external dependencies, callers need * not be concerned that calling this method will trigger initialization * of the D3D pipeline and related classes. */ public static void sync() { if (theInstance != null) { // need to make sure any/all screen surfaces are presented prior // to completing the sync operation D3DScreenUpdateManager mgr = (D3DScreenUpdateManager)ScreenUpdateManager.getInstance(); mgr.runUpdateNow(); theInstance.lock(); try { theInstance.ensureCapacity(4); theInstance.getBuffer().putInt(SYNC); theInstance.flushNow(); } finally { theInstance.unlock(); } } }
Example #3
Source File: D3DRenderQueue.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Flushes the single D3DRenderQueue instance synchronously. If an * D3DRenderQueue has not yet been instantiated, this method is a no-op. * This method is useful in the case of Toolkit.sync(), in which we want * to flush the D3D pipeline, but only if the D3D pipeline is currently * enabled. Since this class has few external dependencies, callers need * not be concerned that calling this method will trigger initialization * of the D3D pipeline and related classes. */ public static void sync() { if (theInstance != null) { // need to make sure any/all screen surfaces are presented prior // to completing the sync operation D3DScreenUpdateManager mgr = (D3DScreenUpdateManager)ScreenUpdateManager.getInstance(); mgr.runUpdateNow(); theInstance.lock(); try { theInstance.ensureCapacity(4); theInstance.getBuffer().putInt(SYNC); theInstance.flushNow(); } finally { theInstance.unlock(); } } }
Example #4
Source File: D3DRenderQueue.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Flushes the single D3DRenderQueue instance synchronously. If an * D3DRenderQueue has not yet been instantiated, this method is a no-op. * This method is useful in the case of Toolkit.sync(), in which we want * to flush the D3D pipeline, but only if the D3D pipeline is currently * enabled. Since this class has few external dependencies, callers need * not be concerned that calling this method will trigger initialization * of the D3D pipeline and related classes. */ public static void sync() { if (theInstance != null) { // need to make sure any/all screen surfaces are presented prior // to completing the sync operation D3DScreenUpdateManager mgr = (D3DScreenUpdateManager)ScreenUpdateManager.getInstance(); mgr.runUpdateNow(); theInstance.lock(); try { theInstance.ensureCapacity(4); theInstance.getBuffer().putInt(SYNC); theInstance.flushNow(); } finally { theInstance.unlock(); } } }
Example #5
Source File: D3DRenderQueue.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
/** * Flushes the single D3DRenderQueue instance synchronously. If an * D3DRenderQueue has not yet been instantiated, this method is a no-op. * This method is useful in the case of Toolkit.sync(), in which we want * to flush the D3D pipeline, but only if the D3D pipeline is currently * enabled. Since this class has few external dependencies, callers need * not be concerned that calling this method will trigger initialization * of the D3D pipeline and related classes. */ public static void sync() { if (theInstance != null) { // need to make sure any/all screen surfaces are presented prior // to completing the sync operation D3DScreenUpdateManager mgr = (D3DScreenUpdateManager)ScreenUpdateManager.getInstance(); mgr.runUpdateNow(); theInstance.lock(); try { theInstance.ensureCapacity(4); theInstance.getBuffer().putInt(SYNC); theInstance.flushNow(); } finally { theInstance.unlock(); } } }
Example #6
Source File: D3DRenderQueue.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Flushes the single D3DRenderQueue instance synchronously. If an * D3DRenderQueue has not yet been instantiated, this method is a no-op. * This method is useful in the case of Toolkit.sync(), in which we want * to flush the D3D pipeline, but only if the D3D pipeline is currently * enabled. Since this class has few external dependencies, callers need * not be concerned that calling this method will trigger initialization * of the D3D pipeline and related classes. */ public static void sync() { if (theInstance != null) { // need to make sure any/all screen surfaces are presented prior // to completing the sync operation D3DScreenUpdateManager mgr = (D3DScreenUpdateManager)ScreenUpdateManager.getInstance(); mgr.runUpdateNow(); theInstance.lock(); try { theInstance.ensureCapacity(4); theInstance.getBuffer().putInt(SYNC); theInstance.flushNow(); } finally { theInstance.unlock(); } } }
Example #7
Source File: D3DRenderQueue.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Flushes the single D3DRenderQueue instance synchronously. If an * D3DRenderQueue has not yet been instantiated, this method is a no-op. * This method is useful in the case of Toolkit.sync(), in which we want * to flush the D3D pipeline, but only if the D3D pipeline is currently * enabled. Since this class has few external dependencies, callers need * not be concerned that calling this method will trigger initialization * of the D3D pipeline and related classes. */ public static void sync() { if (theInstance != null) { // need to make sure any/all screen surfaces are presented prior // to completing the sync operation D3DScreenUpdateManager mgr = (D3DScreenUpdateManager)ScreenUpdateManager.getInstance(); mgr.runUpdateNow(); theInstance.lock(); try { theInstance.ensureCapacity(4); theInstance.getBuffer().putInt(SYNC); theInstance.flushNow(); } finally { theInstance.unlock(); } } }
Example #8
Source File: WComponentPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public void createScreenSurface(boolean isResize) { Win32GraphicsConfig gc = (Win32GraphicsConfig)getGraphicsConfiguration(); ScreenUpdateManager mgr = ScreenUpdateManager.getInstance(); surfaceData = mgr.createScreenSurface(gc, this, numBackBuffers, isResize); }
Example #9
Source File: WComponentPeer.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void createScreenSurface(boolean isResize) { Win32GraphicsConfig gc = (Win32GraphicsConfig)getGraphicsConfiguration(); ScreenUpdateManager mgr = ScreenUpdateManager.getInstance(); surfaceData = mgr.createScreenSurface(gc, this, numBackBuffers, isResize); }
Example #10
Source File: WComponentPeer.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
public void createScreenSurface(boolean isResize) { Win32GraphicsConfig gc = (Win32GraphicsConfig)getGraphicsConfiguration(); ScreenUpdateManager mgr = ScreenUpdateManager.getInstance(); surfaceData = mgr.createScreenSurface(gc, this, numBackBuffers, isResize); }
Example #11
Source File: WComponentPeer.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
public void createScreenSurface(boolean isResize) { Win32GraphicsConfig gc = (Win32GraphicsConfig)getGraphicsConfiguration(); ScreenUpdateManager mgr = ScreenUpdateManager.getInstance(); surfaceData = mgr.createScreenSurface(gc, this, numBackBuffers, isResize); }
Example #12
Source File: D3DSurfaceData.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override void disableAccelerationForSurface() { // for on-screen surfaces we need to make sure a backup GDI surface is // is used until a new one is set (which may happen during a resize). We // don't want the screen update maanger to replace the surface right way // because it causes repainting issues in Swing, so we invalidate it, // this will prevent SUM from issuing a replaceSurfaceData call. setSurfaceLost(true); invalidate(); flush(); peer.disableAcceleration(); ScreenUpdateManager.getInstance().dropScreenSurface(this); }
Example #13
Source File: WComponentPeer.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override protected void disposeImpl() { SurfaceData oldData = surfaceData; surfaceData = null; ScreenUpdateManager.getInstance().dropScreenSurface(oldData); oldData.invalidate(); // remove from updater before calling targetDisposedPeer WToolkit.targetDisposedPeer(target, this); _dispose(); }
Example #14
Source File: WComponentPeer.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
public void createScreenSurface(boolean isResize) { Win32GraphicsConfig gc = (Win32GraphicsConfig)getGraphicsConfiguration(); ScreenUpdateManager mgr = ScreenUpdateManager.getInstance(); surfaceData = mgr.createScreenSurface(gc, this, numBackBuffers, isResize); }
Example #15
Source File: WComponentPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@Override protected void disposeImpl() { SurfaceData oldData = surfaceData; surfaceData = null; ScreenUpdateManager.getInstance().dropScreenSurface(oldData); oldData.invalidate(); // remove from updater before calling targetDisposedPeer WToolkit.targetDisposedPeer(target, this); _dispose(); }
Example #16
Source File: D3DSurfaceData.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@Override void disableAccelerationForSurface() { // for on-screen surfaces we need to make sure a backup GDI surface is // is used until a new one is set (which may happen during a resize). We // don't want the screen update maanger to replace the surface right way // because it causes repainting issues in Swing, so we invalidate it, // this will prevent SUM from issuing a replaceSurfaceData call. setSurfaceLost(true); invalidate(); flush(); peer.disableAcceleration(); ScreenUpdateManager.getInstance().dropScreenSurface(this); }
Example #17
Source File: D3DSurfaceData.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Override void disableAccelerationForSurface() { // for on-screen surfaces we need to make sure a backup GDI surface is // is used until a new one is set (which may happen during a resize). We // don't want the screen update maanger to replace the surface right way // because it causes repainting issues in Swing, so we invalidate it, // this will prevent SUM from issuing a replaceSurfaceData call. setSurfaceLost(true); invalidate(); flush(); peer.disableAcceleration(); ScreenUpdateManager.getInstance().dropScreenSurface(this); }
Example #18
Source File: D3DSurfaceData.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
@Override void disableAccelerationForSurface() { // for on-screen surfaces we need to make sure a backup GDI surface is // is used until a new one is set (which may happen during a resize). We // don't want the screen update maanger to replace the surface right way // because it causes repainting issues in Swing, so we invalidate it, // this will prevent SUM from issuing a replaceSurfaceData call. setSurfaceLost(true); invalidate(); flush(); peer.disableAcceleration(); ScreenUpdateManager.getInstance().dropScreenSurface(this); }
Example #19
Source File: WComponentPeer.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void createScreenSurface(boolean isResize) { Win32GraphicsConfig gc = (Win32GraphicsConfig)getGraphicsConfiguration(); ScreenUpdateManager mgr = ScreenUpdateManager.getInstance(); surfaceData = mgr.createScreenSurface(gc, this, numBackBuffers, isResize); }
Example #20
Source File: WComponentPeer.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
protected void disposeImpl() { SurfaceData oldData = surfaceData; surfaceData = null; ScreenUpdateManager.getInstance().dropScreenSurface(oldData); oldData.invalidate(); // remove from updater before calling targetDisposedPeer WToolkit.targetDisposedPeer(target, this); _dispose(); }
Example #21
Source File: D3DSurfaceData.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override void disableAccelerationForSurface() { // for on-screen surfaces we need to make sure a backup GDI surface is // is used until a new one is set (which may happen during a resize). We // don't want the screen update maanger to replace the surface right way // because it causes repainting issues in Swing, so we invalidate it, // this will prevent SUM from issuing a replaceSurfaceData call. setSurfaceLost(true); invalidate(); flush(); peer.disableAcceleration(); ScreenUpdateManager.getInstance().dropScreenSurface(this); }
Example #22
Source File: WComponentPeer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override protected void disposeImpl() { SurfaceData oldData = surfaceData; surfaceData = null; ScreenUpdateManager.getInstance().dropScreenSurface(oldData); oldData.invalidate(); // remove from updater before calling targetDisposedPeer WToolkit.targetDisposedPeer(target, this); _dispose(); }
Example #23
Source File: D3DSurfaceData.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
@Override void disableAccelerationForSurface() { // for on-screen surfaces we need to make sure a backup GDI surface is // is used until a new one is set (which may happen during a resize). We // don't want the screen update maanger to replace the surface right way // because it causes repainting issues in Swing, so we invalidate it, // this will prevent SUM from issuing a replaceSurfaceData call. setSurfaceLost(true); invalidate(); flush(); peer.disableAcceleration(); ScreenUpdateManager.getInstance().dropScreenSurface(this); }
Example #24
Source File: WComponentPeer.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void createScreenSurface(boolean isResize) { Win32GraphicsConfig gc = (Win32GraphicsConfig)getGraphicsConfiguration(); ScreenUpdateManager mgr = ScreenUpdateManager.getInstance(); surfaceData = mgr.createScreenSurface(gc, this, numBackBuffers, isResize); }
Example #25
Source File: WComponentPeer.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void createScreenSurface(boolean isResize) { Win32GraphicsConfig gc = (Win32GraphicsConfig)getGraphicsConfiguration(); ScreenUpdateManager mgr = ScreenUpdateManager.getInstance(); surfaceData = mgr.createScreenSurface(gc, this, numBackBuffers, isResize); }
Example #26
Source File: WComponentPeer.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
@Override protected void disposeImpl() { SurfaceData oldData = surfaceData; surfaceData = null; ScreenUpdateManager.getInstance().dropScreenSurface(oldData); oldData.invalidate(); // remove from updater before calling targetDisposedPeer WToolkit.targetDisposedPeer(target, this); _dispose(); }
Example #27
Source File: D3DSurfaceData.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@Override void disableAccelerationForSurface() { // for on-screen surfaces we need to make sure a backup GDI surface is // is used until a new one is set (which may happen during a resize). We // don't want the screen update maanger to replace the surface right way // because it causes repainting issues in Swing, so we invalidate it, // this will prevent SUM from issuing a replaceSurfaceData call. setSurfaceLost(true); invalidate(); flush(); peer.disableAcceleration(); ScreenUpdateManager.getInstance().dropScreenSurface(this); }
Example #28
Source File: WComponentPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@Override protected void disposeImpl() { SurfaceData oldData = surfaceData; surfaceData = null; ScreenUpdateManager.getInstance().dropScreenSurface(oldData); oldData.invalidate(); // remove from updater before calling targetDisposedPeer WToolkit.targetDisposedPeer(target, this); _dispose(); }
Example #29
Source File: WComponentPeer.java From hottub with GNU General Public License v2.0 | 5 votes |
public void createScreenSurface(boolean isResize) { Win32GraphicsConfig gc = (Win32GraphicsConfig)getGraphicsConfiguration(); ScreenUpdateManager mgr = ScreenUpdateManager.getInstance(); surfaceData = mgr.createScreenSurface(gc, this, numBackBuffers, isResize); }
Example #30
Source File: WComponentPeer.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override protected void disposeImpl() { SurfaceData oldData = surfaceData; surfaceData = null; ScreenUpdateManager.getInstance().dropScreenSurface(oldData); oldData.invalidate(); // remove from updater before calling targetDisposedPeer WToolkit.targetDisposedPeer(target, this); _dispose(); }