< prev index next >
src/windows/classes/sun/java2d/opengl/WGLSurfaceData.java
Print this page
rev 13714 : 8146238: [macosx] Java2D Queue Flusher crash on OSX after switching between user accounts
Reviewed-by: prr, avu
*** 39,50 ****
public abstract class WGLSurfaceData extends OGLSurfaceData {
protected WComponentPeer peer;
private WGLGraphicsConfig graphicsConfig;
! private native void initOps(long pConfigInfo, WComponentPeer peer,
! long hwnd);
protected native boolean initPbuffer(long pData, long pConfigInfo,
boolean isOpaque,
int width, int height);
protected WGLSurfaceData(WComponentPeer peer, WGLGraphicsConfig gc,
--- 39,50 ----
public abstract class WGLSurfaceData extends OGLSurfaceData {
protected WComponentPeer peer;
private WGLGraphicsConfig graphicsConfig;
! private native void initOps(OGLGraphicsConfig gc, long pConfigInfo,
! WComponentPeer peer, long hwnd);
protected native boolean initPbuffer(long pData, long pConfigInfo,
boolean isOpaque,
int width, int height);
protected WGLSurfaceData(WComponentPeer peer, WGLGraphicsConfig gc,
*** 55,65 ****
this.graphicsConfig = gc;
long pConfigInfo = gc.getNativeConfigInfo();
long hwnd = peer != null ? peer.getHWnd() : 0L;
! initOps(pConfigInfo, peer, hwnd);
}
public GraphicsConfiguration getDeviceConfiguration() {
return graphicsConfig;
}
--- 55,65 ----
this.graphicsConfig = gc;
long pConfigInfo = gc.getNativeConfigInfo();
long hwnd = peer != null ? peer.getHWnd() : 0L;
! initOps(gc, pConfigInfo, peer, hwnd);
}
public GraphicsConfiguration getDeviceConfiguration() {
return graphicsConfig;
}
< prev index next >