equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
52 import sun.java2d.pipe.PixelToShapeConverter; |
52 import sun.java2d.pipe.PixelToShapeConverter; |
53 import sun.java2d.pipe.Region; |
53 import sun.java2d.pipe.Region; |
54 import sun.java2d.pipe.ShapeDrawPipe; |
54 import sun.java2d.pipe.ShapeDrawPipe; |
55 import sun.java2d.pipe.TextPipe; |
55 import sun.java2d.pipe.TextPipe; |
56 import sun.java2d.pipe.ValidatePipe; |
56 import sun.java2d.pipe.ValidatePipe; |
|
57 import sun.java2d.x11.X11SurfaceData; |
57 import sun.java2d.x11.XSurfaceData; |
58 import sun.java2d.x11.XSurfaceData; |
58 import sun.font.FontManagerNativeLibrary; |
59 import sun.font.FontManagerNativeLibrary; |
59 |
60 |
60 public abstract class XRSurfaceData extends XSurfaceData { |
61 public abstract class XRSurfaceData extends XSurfaceData { |
61 X11ComponentPeer peer; |
62 X11ComponentPeer peer; |
241 /** |
242 /** |
242 * Method for instantiating a Window SurfaceData |
243 * Method for instantiating a Window SurfaceData |
243 */ |
244 */ |
244 public static XRWindowSurfaceData createData(X11ComponentPeer peer) { |
245 public static XRWindowSurfaceData createData(X11ComponentPeer peer) { |
245 XRGraphicsConfig gc = getGC(peer); |
246 XRGraphicsConfig gc = getGC(peer); |
246 return new XRWindowSurfaceData(peer, gc, gc.getSurfaceType()); |
247 return new XRWindowSurfaceData(peer, gc, X11SurfaceData.getSurfaceType(gc, Transparency.OPAQUE)); |
247 } |
248 } |
248 |
249 |
249 /** |
250 /** |
250 * Method for instantiating a Pixmap SurfaceData (offscreen). |
251 * Method for instantiating a Pixmap SurfaceData (offscreen). |
251 * If the surface * is opaque a 24-bit/RGB surface is chosen, |
252 * If the surface * is opaque a 24-bit/RGB surface is chosen, |