7127827: JRE8: javaws fails to launch on oracle linux due to XRender
Reviewed-by: bae, jgodinez
This commit is contained in:
parent
2c60c1d450
commit
3b8a1fee1d
@ -28,6 +28,9 @@ package sun.java2d.xr;
|
|||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.awt.geom.*;
|
import java.awt.geom.*;
|
||||||
|
|
||||||
|
import java.security.AccessController;
|
||||||
|
import java.security.PrivilegedAction;
|
||||||
|
|
||||||
import sun.font.*;
|
import sun.font.*;
|
||||||
import sun.java2d.*;
|
import sun.java2d.*;
|
||||||
import sun.java2d.jules.*;
|
import sun.java2d.jules.*;
|
||||||
@ -83,7 +86,13 @@ public class XRCompositeManager {
|
|||||||
con = new XRBackendNative();
|
con = new XRBackendNative();
|
||||||
// con = XRBackendJava.getInstance();
|
// con = XRBackendJava.getInstance();
|
||||||
|
|
||||||
String gradProp = System.getProperty("sun.java2d.xrgradcache");
|
String gradProp =
|
||||||
|
AccessController.doPrivileged(new PrivilegedAction<String>() {
|
||||||
|
public String run() {
|
||||||
|
return System.getProperty("sun.java2d.xrgradcache");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
enableGradCache = gradProp == null ||
|
enableGradCache = gradProp == null ||
|
||||||
!(gradProp.equalsIgnoreCase("false") ||
|
!(gradProp.equalsIgnoreCase("false") ||
|
||||||
gradProp.equalsIgnoreCase("f"));
|
gradProp.equalsIgnoreCase("f"));
|
||||||
|
Loading…
Reference in New Issue
Block a user