src/java.desktop/windows/classes/sun/java2d/opengl/WGLGraphicsConfig.java
changeset 58324 0aba35254e00
parent 53673 e04d39094915
equal deleted inserted replaced
58323:7b3101216e61 58324:0aba35254e00
    69     private static ImageCapabilities imageCaps = new WGLImageCaps();
    69     private static ImageCapabilities imageCaps = new WGLImageCaps();
    70 
    70 
    71     private BufferCapabilities bufferCaps;
    71     private BufferCapabilities bufferCaps;
    72     private long pConfigInfo;
    72     private long pConfigInfo;
    73     private ContextCapabilities oglCaps;
    73     private ContextCapabilities oglCaps;
    74     private OGLContext context;
    74     private final OGLContext context;
    75     private Object disposerReferent = new Object();
    75     private Object disposerReferent = new Object();
    76 
    76 
    77     public static native int getDefaultPixFmt(int screennum);
    77     public static native int getDefaultPixFmt(int screennum);
    78     private static native boolean initWGL();
    78     private static native boolean initWGL();
    79     private static native long getWGLConfigInfo(int screennum, int visualnum);
    79     private static native long getWGLConfigInfo(int screennum, int visualnum);
    88                                 long configInfo, ContextCapabilities oglCaps)
    88                                 long configInfo, ContextCapabilities oglCaps)
    89     {
    89     {
    90         super(device, visualnum);
    90         super(device, visualnum);
    91         this.pConfigInfo = configInfo;
    91         this.pConfigInfo = configInfo;
    92         this.oglCaps = oglCaps;
    92         this.oglCaps = oglCaps;
    93         context = new OGLContext(OGLRenderQueue.getInstance(), this);
    93         context = new OGLContext(OGLRenderQueue.getInstance());
    94 
    94 
    95         // add a record to the Disposer so that we destroy the native
    95         // add a record to the Disposer so that we destroy the native
    96         // WGLGraphicsConfigInfo data when this object goes away
    96         // WGLGraphicsConfigInfo data when this object goes away
    97         Disposer.addRecord(disposerReferent,
    97         Disposer.addRecord(disposerReferent,
    98                            new WGLGCDisposerRecord(pConfigInfo));
    98                            new WGLGCDisposerRecord(pConfigInfo));