--- old/src/java.desktop/unix/classes/sun/java2d/x11/X11SurfaceData.java 2017-08-15 12:14:02.816964348 -0700 +++ new/src/java.desktop/unix/classes/sun/java2d/x11/X11SurfaceData.java 2017-08-15 12:14:02.488964357 -0700 @@ -72,7 +72,7 @@ protected int depth; - private static native void initIDs(Class xorComp, boolean tryDGA); + private static native void initIDs(Class xorComp); protected native void initSurface(int depth, int width, int height, long drawable); @@ -213,12 +213,8 @@ static { if (!isX11SurfaceDataInitialized() && !GraphicsEnvironment.isHeadless()) { - // If a screen magnifier is present, don't attempt to use DGA - String magPresent = java.security.AccessController.doPrivileged - (new sun.security.action.GetPropertyAction("javax.accessibility.screen_magnifier_present")); - boolean tryDGA = magPresent == null || !"true".equals(magPresent); - initIDs(XORComposite.class, tryDGA); + initIDs(XORComposite.class); String xtextpipe = java.security.AccessController.doPrivileged (new sun.security.action.GetPropertyAction("sun.java2d.xtextpipe")); @@ -239,8 +235,6 @@ x11textpipe = solidTextRenderer; } - dgaAvailable = isDgaAvailable(); - if (isAccelerationEnabled()) { X11PMBlitLoops.register(); X11PMBlitBgLoops.register(); @@ -249,11 +243,6 @@ } /** - * Returns true if we can use DGA on any of the screens - */ - public static native boolean isDgaAvailable(); - - /** * Returns true if shared memory pixmaps are available */ private static native boolean isShmPMAvailable(); @@ -277,10 +266,9 @@ } // EXA based drivers tend to place pixmaps in VRAM, slowing down readbacks. - // Don't use pixmaps if dga is available, - // or we are local and shared memory Pixmaps are not available. - accelerationEnabled = - !(isDgaAvailable() || (isDisplayLocal && !isShmPMAvailable())); + // Don't use pixmaps if we are local and shared memory Pixmaps + // are not available. + accelerationEnabled = !(isDisplayLocal && !isShmPMAvailable()); } } }