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

Print this page




  39 public class ES2Pipeline extends GraphicsPipeline {
  40 
  41     public static final GLFactory glFactory;
  42     public static final GLPixelFormat.Attributes
  43             pixelFormatAttributes = new GLPixelFormat.Attributes();
  44     static final boolean antiAliasingSupported;
  45     private static boolean es2Enabled;
  46     private static boolean isEglfb = false;
  47 
  48     static {
  49         AccessController.doPrivileged(new PrivilegedAction<Void>() {
  50 
  51             public Void run() {
  52                 String libName = "prism_es2";
  53 
  54                 String eglType = PlatformUtil.getEmbeddedType();
  55                 if ("eglfb".equals(eglType)) {
  56                     isEglfb = true;
  57                     libName = "prism_es2_eglfb";
  58                 }




  59                 else if ("eglx11".equals(eglType))
  60                     libName = "prism_es2_eglx11";
  61 
  62                 if (PrismSettings.verbose) {
  63                     System.out.println("Loading ES2 native library ... " + libName);
  64                 }
  65                 NativeLibLoader.loadLibrary(libName);
  66                 if (PrismSettings.verbose) {
  67                     System.out.println("\tsucceeded.");
  68                 }
  69                 return null;
  70             }
  71         });
  72 
  73         // Initialize the prism-es2 pipe and a handler of it
  74         glFactory = GLFactory.getFactory();
  75 
  76         creator = Thread.currentThread();
  77 
  78         if (glFactory != null) {




  39 public class ES2Pipeline extends GraphicsPipeline {
  40 
  41     public static final GLFactory glFactory;
  42     public static final GLPixelFormat.Attributes
  43             pixelFormatAttributes = new GLPixelFormat.Attributes();
  44     static final boolean antiAliasingSupported;
  45     private static boolean es2Enabled;
  46     private static boolean isEglfb = false;
  47 
  48     static {
  49         AccessController.doPrivileged(new PrivilegedAction<Void>() {
  50 
  51             public Void run() {
  52                 String libName = "prism_es2";
  53 
  54                 String eglType = PlatformUtil.getEmbeddedType();
  55                 if ("eglfb".equals(eglType)) {
  56                     isEglfb = true;
  57                     libName = "prism_es2_eglfb";
  58                 }
  59                 else if ("monocle".equals(eglType)) {
  60                     isEglfb = true;
  61                     libName = "prism_es2_monocle";
  62                 }
  63                 else if ("eglx11".equals(eglType))
  64                     libName = "prism_es2_eglx11";
  65 
  66                 if (PrismSettings.verbose) {
  67                     System.out.println("Loading ES2 native library ... " + libName);
  68                 }
  69                 NativeLibLoader.loadLibrary(libName);
  70                 if (PrismSettings.verbose) {
  71                     System.out.println("\tsucceeded.");
  72                 }
  73                 return null;
  74             }
  75         });
  76 
  77         // Initialize the prism-es2 pipe and a handler of it
  78         glFactory = GLFactory.getFactory();
  79 
  80         creator = Thread.currentThread();
  81 
  82         if (glFactory != null) {