src/java.desktop/unix/classes/sun/java2d/opengl/GLXSurfaceData.java
changeset 58315 07556f8cd819
parent 47216 71c04702a3d5
equal deleted inserted replaced
58314:170b727a240a 58315:07556f8cd819
    38 public abstract class GLXSurfaceData extends OGLSurfaceData {
    38 public abstract class GLXSurfaceData extends OGLSurfaceData {
    39 
    39 
    40     protected X11ComponentPeer peer;
    40     protected X11ComponentPeer peer;
    41     private GLXGraphicsConfig graphicsConfig;
    41     private GLXGraphicsConfig graphicsConfig;
    42 
    42 
    43     private native void initOps(X11ComponentPeer peer, long aData);
    43     private native void initOps(OGLGraphicsConfig gc, X11ComponentPeer peer,
       
    44                                 long aData);
    44 
    45 
    45     protected GLXSurfaceData(X11ComponentPeer peer, GLXGraphicsConfig gc,
    46     protected GLXSurfaceData(X11ComponentPeer peer, GLXGraphicsConfig gc,
    46                              ColorModel cm, int type)
    47                              ColorModel cm, int type)
    47     {
    48     {
    48         super(gc, cm, type);
    49         super(gc, cm, type);
    49         this.peer = peer;
    50         this.peer = peer;
    50         this.graphicsConfig = gc;
    51         this.graphicsConfig = gc;
    51         initOps(peer, graphicsConfig.getAData());
    52         initOps(gc, peer, graphicsConfig.getAData());
    52     }
    53     }
    53 
    54 
    54     public GraphicsConfiguration getDeviceConfiguration() {
    55     public GraphicsConfiguration getDeviceConfiguration() {
    55         return graphicsConfig;
    56         return graphicsConfig;
    56     }
    57     }