modules/graphics/src/main/java/com/sun/prism/es2/X11GLFactory.java

Print this page




  26 package com.sun.prism.es2;
  27 
  28 import com.sun.prism.es2.GLPixelFormat.Attributes;
  29 import java.util.HashMap;
  30 
  31 class X11GLFactory extends GLFactory {
  32 
  33     private static native long nInitialize(int[] attrArr);
  34     private static native int nGetAdapterOrdinal(long nativeScreen);
  35     private static native int nGetAdapterCount();
  36     private static native int nGetDefaultScreen(long nativeCtxInfo);
  37     private static native long nGetDisplay(long nativeCtxInfo);
  38     private static native long nGetVisualID(long nativeCtxInfo);
  39 
  40     // Entries must be in lowercase and null string is a wild card
  41     // Limit es2 pipe qualification check to supported drivers and GPUs
  42     private GLGPUInfo preQualificationFilter[] = {
  43         new GLGPUInfo("advanced micro devices", null),
  44         new GLGPUInfo("ati", null),
  45         new GLGPUInfo("intel open source technology center", null),
  46         new GLGPUInfo("nvidia", null)

  47     };
  48 
  49     private GLGPUInfo blackList[] = null;
  50 
  51     @Override
  52     GLGPUInfo[] getPreQualificationFilter() {
  53         return preQualificationFilter;
  54     }
  55 
  56     @Override
  57     GLGPUInfo[] getBlackList() {
  58         return blackList;
  59     }
  60 
  61     @Override
  62     GLContext createGLContext(long nativeCtxInfo) {
  63         return new X11GLContext(nativeCtxInfo);
  64     }
  65 
  66     @Override




  26 package com.sun.prism.es2;
  27 
  28 import com.sun.prism.es2.GLPixelFormat.Attributes;
  29 import java.util.HashMap;
  30 
  31 class X11GLFactory extends GLFactory {
  32 
  33     private static native long nInitialize(int[] attrArr);
  34     private static native int nGetAdapterOrdinal(long nativeScreen);
  35     private static native int nGetAdapterCount();
  36     private static native int nGetDefaultScreen(long nativeCtxInfo);
  37     private static native long nGetDisplay(long nativeCtxInfo);
  38     private static native long nGetVisualID(long nativeCtxInfo);
  39 
  40     // Entries must be in lowercase and null string is a wild card
  41     // Limit es2 pipe qualification check to supported drivers and GPUs
  42     private GLGPUInfo preQualificationFilter[] = {
  43         new GLGPUInfo("advanced micro devices", null),
  44         new GLGPUInfo("ati", null),
  45         new GLGPUInfo("intel open source technology center", null),
  46         new GLGPUInfo("nvidia", null),
  47         new GLGPUInfo("x.org", null)
  48     };
  49 
  50     private GLGPUInfo blackList[] = null;
  51 
  52     @Override
  53     GLGPUInfo[] getPreQualificationFilter() {
  54         return preQualificationFilter;
  55     }
  56 
  57     @Override
  58     GLGPUInfo[] getBlackList() {
  59         return blackList;
  60     }
  61 
  62     @Override
  63     GLContext createGLContext(long nativeCtxInfo) {
  64         return new X11GLContext(nativeCtxInfo);
  65     }
  66 
  67     @Override