< prev index next >
src/java.desktop/share/classes/sun/java2d/opengl/OGLUtilities.java
Print this page
*** 79,89 ****
* make the client's OpenGL rendering appear in the correct place
* relative to the scissor region.
*
* In order to avoid deadlock, it is important that the given Runnable
* does not attempt to acquire the AWT lock, as that will be handled
! * automatically as part of the <code>rq.flushAndInvokeNow()</code> step.
*
* @param g the Graphics object for the corresponding destination surface;
* if null, the step making a context current to the destination surface
* will be skipped
* @param r the action to be performed on the QFT; cannot be null
--- 79,89 ----
* make the client's OpenGL rendering appear in the correct place
* relative to the scissor region.
*
* In order to avoid deadlock, it is important that the given Runnable
* does not attempt to acquire the AWT lock, as that will be handled
! * automatically as part of the {@code rq.flushAndInvokeNow()} step.
*
* @param g the Graphics object for the corresponding destination surface;
* if null, the step making a context current to the destination surface
* will be skipped
* @param r the action to be performed on the QFT; cannot be null
*** 132,142 ****
* of the given GraphicsConfiguration, without making a context current
* to a dummy surface (or similar hacky techniques).
*
* In order to avoid deadlock, it is important that the given Runnable
* does not attempt to acquire the AWT lock, as that will be handled
! * automatically as part of the <code>rq.flushAndInvokeNow()</code> step.
*
* @param config the GraphicsConfiguration object whose "shared"
* context will be made current during this operation; if this value is
* null or if OpenGL is not enabled for the GraphicsConfiguration, this
* method will return false
--- 132,142 ----
* of the given GraphicsConfiguration, without making a context current
* to a dummy surface (or similar hacky techniques).
*
* In order to avoid deadlock, it is important that the given Runnable
* does not attempt to acquire the AWT lock, as that will be handled
! * automatically as part of the {@code rq.flushAndInvokeNow()} step.
*
* @param config the GraphicsConfiguration object whose "shared"
* context will be made current during this operation; if this value is
* null or if OpenGL is not enabled for the GraphicsConfiguration, this
* method will return false
*** 295,305 ****
* @param g the Graphics object for the corresponding destination surface;
* cannot be null
* @return a constant that describes the surface associated with the
* given Graphics object; if the given Graphics object is invalid (i.e.
* is not associated with an OpenGL surface) this method will return
! * <code>OGLUtilities.UNDEFINED</code>
*/
public static int getOGLSurfaceType(Graphics g) {
if (!(g instanceof SunGraphics2D)) {
return UNDEFINED;
}
--- 295,305 ----
* @param g the Graphics object for the corresponding destination surface;
* cannot be null
* @return a constant that describes the surface associated with the
* given Graphics object; if the given Graphics object is invalid (i.e.
* is not associated with an OpenGL surface) this method will return
! * {@code OGLUtilities.UNDEFINED}
*/
public static int getOGLSurfaceType(Graphics g) {
if (!(g instanceof SunGraphics2D)) {
return UNDEFINED;
}
< prev index next >