equal
deleted
inserted
replaced
28 * and open the template in the editor. |
28 * and open the template in the editor. |
29 */ |
29 */ |
30 |
30 |
31 package sun.java2d.xr; |
31 package sun.java2d.xr; |
32 |
32 |
33 import sun.awt.*; |
33 import java.awt.Transparency; |
34 import sun.awt.image.*; |
34 import sun.awt.X11GraphicsConfig; |
35 import sun.java2d.*; |
35 import sun.awt.X11ComponentPeer; |
|
36 import sun.awt.X11GraphicsDevice; |
|
37 import sun.awt.X11GraphicsEnvironment; |
|
38 import sun.awt.image.SurfaceManager; |
|
39 import sun.java2d.SurfaceData; |
|
40 import sun.java2d.loops.SurfaceType; |
36 |
41 |
37 public class XRGraphicsConfig extends X11GraphicsConfig implements |
42 public class XRGraphicsConfig extends X11GraphicsConfig implements |
38 SurfaceManager.ProxiedGraphicsConfig { |
43 SurfaceManager.ProxiedGraphicsConfig { |
39 private XRGraphicsConfig(X11GraphicsDevice device, int visualnum, |
44 private XRGraphicsConfig(X11GraphicsDevice device, int visualnum, |
40 int depth, int colormap, boolean doubleBuffer) { |
45 int depth, int colormap, boolean doubleBuffer) { |
56 } |
61 } |
57 |
62 |
58 public Object getProxyKey() { |
63 public Object getProxyKey() { |
59 return this; |
64 return this; |
60 } |
65 } |
|
66 |
|
67 public synchronized SurfaceType getSurfaceType() { |
|
68 if (surfaceType != null) { |
|
69 return surfaceType; |
|
70 } |
|
71 |
|
72 surfaceType = XRSurfaceData.getSurfaceType(this, Transparency.OPAQUE); |
|
73 return surfaceType; |
|
74 } |
|
75 |
61 } |
76 } |