Java Code Examples for sun.awt.image.SunVolatileImage#getGraphicsConfig()
The following examples show how to use
sun.awt.image.SunVolatileImage#getGraphicsConfig() .
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: GLXVolatileSurfaceManager.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public GLXVolatileSurfaceManager(SunVolatileImage vImg, Object context) { super(vImg, context); /* * We will attempt to accelerate this image only under the * following conditions: * - the image is opaque OR * - the image is translucent AND * - the GraphicsConfig supports the FBO extension OR * - the GraphicsConfig has a stored alpha channel */ int transparency = vImg.getTransparency(); GLXGraphicsConfig gc = (GLXGraphicsConfig)vImg.getGraphicsConfig(); accelerationEnabled = (transparency == Transparency.OPAQUE) || ((transparency == Transparency.TRANSLUCENT) && (gc.isCapPresent(CAPS_EXT_FBOBJECT) || gc.isCapPresent(CAPS_STORED_ALPHA))); }
Example 2
Source File: GLXVolatileSurfaceManager.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public GLXVolatileSurfaceManager(SunVolatileImage vImg, Object context) { super(vImg, context); /* * We will attempt to accelerate this image only under the * following conditions: * - the image is opaque OR * - the image is translucent AND * - the GraphicsConfig supports the FBO extension OR * - the GraphicsConfig has a stored alpha channel */ int transparency = vImg.getTransparency(); GLXGraphicsConfig gc = (GLXGraphicsConfig)vImg.getGraphicsConfig(); accelerationEnabled = (transparency == Transparency.OPAQUE) || ((transparency == Transparency.TRANSLUCENT) && (gc.isCapPresent(CAPS_EXT_FBOBJECT) || gc.isCapPresent(CAPS_STORED_ALPHA))); }
Example 3
Source File: WGLVolatileSurfaceManager.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public WGLVolatileSurfaceManager(SunVolatileImage vImg, Object context) { super(vImg, context); /* * We will attempt to accelerate this image only under the * following conditions: * - the image is opaque OR * - the image is translucent AND * - the GraphicsConfig supports the FBO extension OR * - the GraphicsConfig has a stored alpha channel */ int transparency = vImg.getTransparency(); WGLGraphicsConfig gc = (WGLGraphicsConfig)vImg.getGraphicsConfig(); accelerationEnabled = (transparency == Transparency.OPAQUE) || ((transparency == Transparency.TRANSLUCENT) && (gc.isCapPresent(CAPS_EXT_FBOBJECT) || gc.isCapPresent(CAPS_STORED_ALPHA))); }
Example 4
Source File: GLXVolatileSurfaceManager.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public GLXVolatileSurfaceManager(SunVolatileImage vImg, Object context) { super(vImg, context); /* * We will attempt to accelerate this image only under the * following conditions: * - the image is opaque OR * - the image is translucent AND * - the GraphicsConfig supports the FBO extension OR * - the GraphicsConfig has a stored alpha channel */ int transparency = vImg.getTransparency(); GLXGraphicsConfig gc = (GLXGraphicsConfig)vImg.getGraphicsConfig(); accelerationEnabled = (transparency == Transparency.OPAQUE) || ((transparency == Transparency.TRANSLUCENT) && (gc.isCapPresent(CAPS_EXT_FBOBJECT) || gc.isCapPresent(CAPS_STORED_ALPHA))); }
Example 5
Source File: WGLVolatileSurfaceManager.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public WGLVolatileSurfaceManager(SunVolatileImage vImg, Object context) { super(vImg, context); /* * We will attempt to accelerate this image only under the * following conditions: * - the image is opaque OR * - the image is translucent AND * - the GraphicsConfig supports the FBO extension OR * - the GraphicsConfig has a stored alpha channel */ int transparency = vImg.getTransparency(); WGLGraphicsConfig gc = (WGLGraphicsConfig)vImg.getGraphicsConfig(); accelerationEnabled = (transparency == Transparency.OPAQUE) || ((transparency == Transparency.TRANSLUCENT) && (gc.isCapPresent(CAPS_EXT_FBOBJECT) || gc.isCapPresent(CAPS_STORED_ALPHA))); }
Example 6
Source File: CGLVolatileSurfaceManager.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public CGLVolatileSurfaceManager(SunVolatileImage vImg, Object context) { super(vImg, context); /* * We will attempt to accelerate this image only under the * following conditions: * - the image is opaque OR * - the image is translucent AND * - the GraphicsConfig supports the FBO extension OR * - the GraphicsConfig has a stored alpha channel */ int transparency = vImg.getTransparency(); CGLGraphicsConfig gc = (CGLGraphicsConfig)vImg.getGraphicsConfig(); accelerationEnabled = (transparency == Transparency.OPAQUE) || ((transparency == Transparency.TRANSLUCENT) && (gc.isCapPresent(CAPS_EXT_FBOBJECT) || gc.isCapPresent(CAPS_STORED_ALPHA))); }
Example 7
Source File: GLXVolatileSurfaceManager.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public GLXVolatileSurfaceManager(SunVolatileImage vImg, Object context) { super(vImg, context); /* * We will attempt to accelerate this image only under the * following conditions: * - the image is opaque OR * - the image is translucent AND * - the GraphicsConfig supports the FBO extension OR * - the GraphicsConfig has a stored alpha channel */ int transparency = vImg.getTransparency(); GLXGraphicsConfig gc = (GLXGraphicsConfig)vImg.getGraphicsConfig(); accelerationEnabled = (transparency == Transparency.OPAQUE) || ((transparency == Transparency.TRANSLUCENT) && (gc.isCapPresent(CAPS_EXT_FBOBJECT) || gc.isCapPresent(CAPS_STORED_ALPHA))); }
Example 8
Source File: CGLVolatileSurfaceManager.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public CGLVolatileSurfaceManager(SunVolatileImage vImg, Object context) { super(vImg, context); /* * We will attempt to accelerate this image only under the * following conditions: * - the image is opaque OR * - the image is translucent AND * - the GraphicsConfig supports the FBO extension OR * - the GraphicsConfig has a stored alpha channel */ int transparency = vImg.getTransparency(); CGLGraphicsConfig gc = (CGLGraphicsConfig)vImg.getGraphicsConfig(); accelerationEnabled = (transparency == Transparency.OPAQUE) || ((transparency == Transparency.TRANSLUCENT) && (gc.isCapPresent(CAPS_EXT_FBOBJECT) || gc.isCapPresent(CAPS_STORED_ALPHA))); }
Example 9
Source File: WGLVolatileSurfaceManager.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public WGLVolatileSurfaceManager(SunVolatileImage vImg, Object context) { super(vImg, context); /* * We will attempt to accelerate this image only under the * following conditions: * - the image is opaque OR * - the image is translucent AND * - the GraphicsConfig supports the FBO extension OR * - the GraphicsConfig has a stored alpha channel */ int transparency = vImg.getTransparency(); WGLGraphicsConfig gc = (WGLGraphicsConfig)vImg.getGraphicsConfig(); accelerationEnabled = (transparency == Transparency.OPAQUE) || ((transparency == Transparency.TRANSLUCENT) && (gc.isCapPresent(CAPS_EXT_FBOBJECT) || gc.isCapPresent(CAPS_STORED_ALPHA))); }
Example 10
Source File: WGLVolatileSurfaceManager.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
public WGLVolatileSurfaceManager(SunVolatileImage vImg, Object context) { super(vImg, context); /* * We will attempt to accelerate this image only under the * following conditions: * - the image is opaque OR * - the image is translucent AND * - the GraphicsConfig supports the FBO extension OR * - the GraphicsConfig has a stored alpha channel */ int transparency = vImg.getTransparency(); WGLGraphicsConfig gc = (WGLGraphicsConfig)vImg.getGraphicsConfig(); accelerationEnabled = (transparency == Transparency.OPAQUE) || ((transparency == Transparency.TRANSLUCENT) && (gc.isCapPresent(CAPS_EXT_FBOBJECT) || gc.isCapPresent(CAPS_STORED_ALPHA))); }
Example 11
Source File: WGLVolatileSurfaceManager.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public WGLVolatileSurfaceManager(SunVolatileImage vImg, Object context) { super(vImg, context); /* * We will attempt to accelerate this image only under the * following conditions: * - the image is not bitmask AND the GraphicsConfig supports the FBO * extension */ int transparency = vImg.getTransparency(); WGLGraphicsConfig gc = (WGLGraphicsConfig) vImg.getGraphicsConfig(); accelerationEnabled = gc.isCapPresent(CAPS_EXT_FBOBJECT) && transparency != Transparency.BITMASK; }
Example 12
Source File: UnixSurfaceManagerFactory.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Creates a new instance of a VolatileSurfaceManager given any * arbitrary SunVolatileImage. An optional context Object can be supplied * as a way for the caller to pass pipeline-specific context data to * the VolatileSurfaceManager (such as a backbuffer handle, for example). * * For Unix platforms, this method returns either an X11- or a GLX- * specific VolatileSurfaceManager based on the GraphicsConfiguration * under which the SunVolatileImage was created. */ public VolatileSurfaceManager createVolatileManager(SunVolatileImage vImg, Object context) { GraphicsConfiguration gc = vImg.getGraphicsConfig(); if (gc instanceof GLXGraphicsConfig) { return new GLXVolatileSurfaceManager(vImg, context); } else if(gc instanceof XRGraphicsConfig) { return new XRVolatileSurfaceManager(vImg, context); }else { return new X11VolatileSurfaceManager(vImg, context); } }
Example 13
Source File: GLXVolatileSurfaceManager.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public GLXVolatileSurfaceManager(SunVolatileImage vImg, Object context) { super(vImg, context); /* * We will attempt to accelerate this image only under the * following conditions: * - the image is not bitmask AND the GraphicsConfig supports the FBO * extension */ int transparency = vImg.getTransparency(); GLXGraphicsConfig gc = (GLXGraphicsConfig) vImg.getGraphicsConfig(); accelerationEnabled = gc.isCapPresent(CAPS_EXT_FBOBJECT) && transparency != Transparency.BITMASK; }
Example 14
Source File: UnixSurfaceManagerFactory.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Creates a new instance of a VolatileSurfaceManager given any * arbitrary SunVolatileImage. An optional context Object can be supplied * as a way for the caller to pass pipeline-specific context data to * the VolatileSurfaceManager (such as a backbuffer handle, for example). * * For Unix platforms, this method returns either an X11- or a GLX- * specific VolatileSurfaceManager based on the GraphicsConfiguration * under which the SunVolatileImage was created. */ public VolatileSurfaceManager createVolatileManager(SunVolatileImage vImg, Object context) { GraphicsConfiguration gc = vImg.getGraphicsConfig(); if (gc instanceof GLXGraphicsConfig) { return new GLXVolatileSurfaceManager(vImg, context); } else if(gc instanceof XRGraphicsConfig) { return new XRVolatileSurfaceManager(vImg, context); }else { return new X11VolatileSurfaceManager(vImg, context); } }
Example 15
Source File: UnixSurfaceManagerFactory.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Creates a new instance of a VolatileSurfaceManager given any * arbitrary SunVolatileImage. An optional context Object can be supplied * as a way for the caller to pass pipeline-specific context data to * the VolatileSurfaceManager (such as a backbuffer handle, for example). * * For Unix platforms, this method returns either an X11- or a GLX- * specific VolatileSurfaceManager based on the GraphicsConfiguration * under which the SunVolatileImage was created. */ public VolatileSurfaceManager createVolatileManager(SunVolatileImage vImg, Object context) { GraphicsConfiguration gc = vImg.getGraphicsConfig(); if (gc instanceof GLXGraphicsConfig) { return new GLXVolatileSurfaceManager(vImg, context); } else if(gc instanceof XRGraphicsConfig) { return new XRVolatileSurfaceManager(vImg, context); }else { return new X11VolatileSurfaceManager(vImg, context); } }
Example 16
Source File: UnixSurfaceManagerFactory.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Creates a new instance of a VolatileSurfaceManager given any * arbitrary SunVolatileImage. An optional context Object can be supplied * as a way for the caller to pass pipeline-specific context data to * the VolatileSurfaceManager (such as a backbuffer handle, for example). * * For Unix platforms, this method returns either an X11- or a GLX- * specific VolatileSurfaceManager based on the GraphicsConfiguration * under which the SunVolatileImage was created. */ public VolatileSurfaceManager createVolatileManager(SunVolatileImage vImg, Object context) { GraphicsConfiguration gc = vImg.getGraphicsConfig(); if (gc instanceof GLXGraphicsConfig) { return new GLXVolatileSurfaceManager(vImg, context); } else if(gc instanceof XRGraphicsConfig) { return new XRVolatileSurfaceManager(vImg, context); }else { return new X11VolatileSurfaceManager(vImg, context); } }
Example 17
Source File: WindowsSurfaceManagerFactory.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Creates a new instance of a VolatileSurfaceManager given any * arbitrary SunVolatileImage. An optional context Object can be supplied * as a way for the caller to pass pipeline-specific context data to * the VolatileSurfaceManager (such as a backbuffer handle, for example). * * For Windows platforms, this method returns a Windows-specific * VolatileSurfaceManager. */ public VolatileSurfaceManager createVolatileManager(SunVolatileImage vImg, Object context) { GraphicsConfiguration gc = vImg.getGraphicsConfig(); if (gc instanceof D3DGraphicsConfig) { return new D3DVolatileSurfaceManager(vImg, context); } else if (gc instanceof WGLGraphicsConfig) { return new WGLVolatileSurfaceManager(vImg, context); } else { return new BufImgVolatileSurfaceManager(vImg, context); } }
Example 18
Source File: WindowsSurfaceManagerFactory.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Creates a new instance of a VolatileSurfaceManager given any * arbitrary SunVolatileImage. An optional context Object can be supplied * as a way for the caller to pass pipeline-specific context data to * the VolatileSurfaceManager (such as a backbuffer handle, for example). * * For Windows platforms, this method returns a Windows-specific * VolatileSurfaceManager. */ public VolatileSurfaceManager createVolatileManager(SunVolatileImage vImg, Object context) { GraphicsConfiguration gc = vImg.getGraphicsConfig(); if (gc instanceof D3DGraphicsConfig) { return new D3DVolatileSurfaceManager(vImg, context); } else if (gc instanceof WGLGraphicsConfig) { return new WGLVolatileSurfaceManager(vImg, context); } else { return new BufImgVolatileSurfaceManager(vImg, context); } }
Example 19
Source File: UnixSurfaceManagerFactory.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Creates a new instance of a VolatileSurfaceManager given any * arbitrary SunVolatileImage. An optional context Object can be supplied * as a way for the caller to pass pipeline-specific context data to * the VolatileSurfaceManager (such as a backbuffer handle, for example). * * For Unix platforms, this method returns either an X11- or a GLX- * specific VolatileSurfaceManager based on the GraphicsConfiguration * under which the SunVolatileImage was created. */ public VolatileSurfaceManager createVolatileManager(SunVolatileImage vImg, Object context) { GraphicsConfiguration gc = vImg.getGraphicsConfig(); if (gc instanceof GLXGraphicsConfig) { return new GLXVolatileSurfaceManager(vImg, context); } else if(gc instanceof XRGraphicsConfig) { return new XRVolatileSurfaceManager(vImg, context); }else { return new X11VolatileSurfaceManager(vImg, context); } }
Example 20
Source File: WindowsSurfaceManagerFactory.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
/** * Creates a new instance of a VolatileSurfaceManager given any * arbitrary SunVolatileImage. An optional context Object can be supplied * as a way for the caller to pass pipeline-specific context data to * the VolatileSurfaceManager (such as a backbuffer handle, for example). * * For Windows platforms, this method returns a Windows-specific * VolatileSurfaceManager. */ public VolatileSurfaceManager createVolatileManager(SunVolatileImage vImg, Object context) { GraphicsConfiguration gc = vImg.getGraphicsConfig(); if (gc instanceof D3DGraphicsConfig) { return new D3DVolatileSurfaceManager(vImg, context); } else if (gc instanceof WGLGraphicsConfig) { return new WGLVolatileSurfaceManager(vImg, context); } else { return new BufImgVolatileSurfaceManager(vImg, context); } }