static { AccessController.doPrivileged( (PrivilegedAction<Void>) () -> { String libName = "prism_es2"; String eglType = PlatformUtil.getEmbeddedType(); if ("eglfb".equals(eglType)) { isEglfb = true; libName = "prism_es2_eglfb"; } else if ("monocle".equals(eglType)) { isEglfb = true; libName = "prism_es2_monocle"; } else if ("eglx11".equals(eglType)) libName = "prism_es2_eglx11"; if (PrismSettings.verbose) { System.out.println("Loading ES2 native library ... " + libName); } NativeLibLoader.loadLibrary(libName); if (PrismSettings.verbose) { System.out.println("\tsucceeded."); } return null; }); // Initialize the prism-es2 pipe and a handler of it glFactory = GLFactory.getFactory(); creator = Thread.currentThread(); if (glFactory != null) { es2Enabled = glFactory.initialize(PrismSettings.class, pixelFormatAttributes); } else { es2Enabled = false; } if (es2Enabled) { theInstance = new ES2Pipeline(); factories = new ES2ResourceFactory[glFactory.getAdapterCount()]; msaa = glFactory.isGLExtensionSupported("GL_ARB_multisample"); npotSupported = glFactory.isNPOTSupported(); } else { theInstance = null; msaa = false; npotSupported = false; } }
/* */ private boolean isColumnResizingEnabled() /* */ { /* 378 */ return !PlatformUtil.isEmbedded(); /* */ }