src/solaris/classes/sun/awt/X11GraphicsDevice.java
Print this page
rev 9717 : 8039642: Fix raw and unchecked warnings in sun.awt.*
Reviewed-by:
*** 52,62 ****
public class X11GraphicsDevice
extends GraphicsDevice
implements DisplayChangedListener
{
int screen;
! HashMap x11ProxyKeyMap = new HashMap();
private static AWTPermission fullScreenExclusivePermission;
private static Boolean xrandrExtSupported;
private final Object configLock = new Object();
private SunDisplayChanger topLevels = new SunDisplayChanger();
--- 52,62 ----
public class X11GraphicsDevice
extends GraphicsDevice
implements DisplayChangedListener
{
int screen;
! HashMap<SurfaceType, Object> x11ProxyKeyMap = new HashMap<>();
private static AWTPermission fullScreenExclusivePermission;
private static Boolean xrandrExtSupported;
private final Object configLock = new Object();
private SunDisplayChanger topLevels = new SunDisplayChanger();
*** 123,133 ****
}
GraphicsConfiguration[] configs;
GraphicsConfiguration defaultConfig;
! HashSet doubleBufferVisuals;
/**
* Returns all of the graphics
* configurations associated with this graphics device.
*/
--- 123,133 ----
}
GraphicsConfiguration[] configs;
GraphicsConfiguration defaultConfig;
! HashSet<Integer> doubleBufferVisuals;
/**
* Returns all of the graphics
* configurations associated with this graphics device.
*/
*** 155,165 ****
boolean glxSupported = X11GraphicsEnvironment.isGLXAvailable();
boolean xrenderSupported = X11GraphicsEnvironment.isXRenderAvailable();
boolean dbeSupported = isDBESupported();
if (dbeSupported && doubleBufferVisuals == null) {
! doubleBufferVisuals = new HashSet();
getDoubleBufferVisuals(screen);
}
for ( ; i < num; i++) {
int visNum = getConfigVisualId(i, screen);
int depth = getConfigDepth (i, screen);
--- 155,165 ----
boolean glxSupported = X11GraphicsEnvironment.isGLXAvailable();
boolean xrenderSupported = X11GraphicsEnvironment.isXRenderAvailable();
boolean dbeSupported = isDBESupported();
if (dbeSupported && doubleBufferVisuals == null) {
! doubleBufferVisuals = new HashSet<>();
getDoubleBufferVisuals(screen);
}
for ( ; i < num; i++) {
int visNum = getConfigVisualId(i, screen);
int depth = getConfigDepth (i, screen);
*** 245,255 ****
}
if (defaultConfig == null) {
int depth = getConfigDepth(0, screen);
boolean doubleBuffer = false;
if (isDBESupported() && doubleBufferVisuals == null) {
! doubleBufferVisuals = new HashSet();
getDoubleBufferVisuals(screen);
doubleBuffer =
doubleBufferVisuals.contains(Integer.valueOf(visNum));
}
--- 245,255 ----
}
if (defaultConfig == null) {
int depth = getConfigDepth(0, screen);
boolean doubleBuffer = false;
if (isDBESupported() && doubleBufferVisuals == null) {
! doubleBufferVisuals = new HashSet<>();
getDoubleBufferVisuals(screen);
doubleBuffer =
doubleBufferVisuals.contains(Integer.valueOf(visNum));
}