equal
deleted
inserted
replaced
26 package sun.java2d.xr; |
26 package sun.java2d.xr; |
27 |
27 |
28 import java.awt.*; |
28 import java.awt.*; |
29 import java.awt.geom.*; |
29 import java.awt.geom.*; |
30 |
30 |
|
31 import java.security.AccessController; |
|
32 import java.security.PrivilegedAction; |
|
33 |
31 import sun.font.*; |
34 import sun.font.*; |
32 import sun.java2d.*; |
35 import sun.java2d.*; |
33 import sun.java2d.jules.*; |
36 import sun.java2d.jules.*; |
34 import sun.java2d.loops.*; |
37 import sun.java2d.loops.*; |
35 |
38 |
81 |
84 |
82 private XRCompositeManager(XRSurfaceData surface) { |
85 private XRCompositeManager(XRSurfaceData surface) { |
83 con = new XRBackendNative(); |
86 con = new XRBackendNative(); |
84 // con = XRBackendJava.getInstance(); |
87 // con = XRBackendJava.getInstance(); |
85 |
88 |
86 String gradProp = System.getProperty("sun.java2d.xrgradcache"); |
89 String gradProp = |
|
90 AccessController.doPrivileged(new PrivilegedAction<String>() { |
|
91 public String run() { |
|
92 return System.getProperty("sun.java2d.xrgradcache"); |
|
93 } |
|
94 }); |
|
95 |
87 enableGradCache = gradProp == null || |
96 enableGradCache = gradProp == null || |
88 !(gradProp.equalsIgnoreCase("false") || |
97 !(gradProp.equalsIgnoreCase("false") || |
89 gradProp.equalsIgnoreCase("f")); |
98 gradProp.equalsIgnoreCase("f")); |
90 |
99 |
91 XRPaints.register(this); |
100 XRPaints.register(this); |