Top Inners Fields Constructors Methods
com.sun.prism.es2

pack-priv abstract Class GLFactory

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.prism.es2.IOSGLFactory, com.sun.prism.es2.MacGLFactory, com.sun.prism.es2.MonocleGLFactory, com.sun.prism.es2.WinGLFactory, com.sun.prism.es2.X11GLFactory
Imports
com.sun.prism.impl.PrismSettings, com.sun.javafx.PlatformUtil, java.security.AccessController, .PrivilegedAction, java.util.HashMap

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv long
private static final GLFactory
private GLContext

Constructor Summary

AccessConstructor and Description
pack-priv
GLFactory()

Creates a new GLFactory instance.

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract GLDrawable
pack-priv abstract GLContext
createGLContext(long nativeCtxInfo)

pack-priv abstract GLContext
createGLContext(GLDrawable drawable, GLPixelFormat pixelFormat, GLContext shareCtx, boolean vSyncRequest)

pack-priv abstract GLDrawable
createGLDrawable(long nativeWindow, GLPixelFormat pixelFormat)

pack-priv abstract GLPixelFormat
createGLPixelFormat(long nativeScreen, GLPixelFormat.Attributes attrs)

pack-priv abstract int
pack-priv abstract int
getAdapterOrdinal(long nativeScreen)

pack-priv static GLFactory
getFactory()

Returns the sole GLFactory instance.

pack-priv abstract GLGPUInfo[]
pack-priv abstract GLGPUInfo[]
pack-priv GLContext
pack-priv abstract boolean
private boolean
private boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean
isQualified(long nativeCtxInfo)

private static boolean
matches(GLGPUInfo gpuInfo, GLGPUInfo[] gpuInfoArr)

private static native String
nGetGLRenderer(long nativeCtxInfo)

private static native String
nGetGLVendor(long nativeCtxInfo)

private static native String
nGetGLVersion(long nativeCtxInfo)

private static native boolean
nIsGLExtensionSupported(long nativeContextObject, String glExtStr)

pack-priv void
private static GLGPUInfo
readGPUInfo(long nativeCtxInfo)

pack-priv abstract void
updateDeviceDetails(HashMap<K, V> deviceDetails)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

gl2back to summary
pack-priv boolean gl2
nativeCtxInfoback to summary
pack-priv long nativeCtxInfo
platformFactoryback to summary
private static final GLFactory platformFactory
shareCtxback to summary
private GLContext shareCtx

Constructor Detail

GLFactoryback to summary
pack-priv GLFactory()

Creates a new GLFactory instance. End users do not need to call this method.

Method Detail

createDummyGLDrawableback to summary
pack-priv abstract GLDrawable createDummyGLDrawable(GLPixelFormat pixelFormat)
createGLContextback to summary
pack-priv abstract GLContext createGLContext(long nativeCtxInfo)
createGLContextback to summary
pack-priv abstract GLContext createGLContext(GLDrawable drawable, GLPixelFormat pixelFormat, GLContext shareCtx, boolean vSyncRequest)
createGLDrawableback to summary
pack-priv abstract GLDrawable createGLDrawable(long nativeWindow, GLPixelFormat pixelFormat)
createGLPixelFormatback to summary
pack-priv abstract GLPixelFormat createGLPixelFormat(long nativeScreen, GLPixelFormat.Attributes attrs)
getAdapterCountback to summary
pack-priv abstract int getAdapterCount()
getAdapterOrdinalback to summary
pack-priv abstract int getAdapterOrdinal(long nativeScreen)
getFactoryback to summary
pack-priv static GLFactory getFactory() throws RuntimeException

Returns the sole GLFactory instance.

getPreQualificationFilterback to summary
pack-priv abstract GLGPUInfo[] getPreQualificationFilter()
getRejectListback to summary
pack-priv abstract GLGPUInfo[] getRejectList()
getShareContextback to summary
pack-priv GLContext getShareContext()
initializeback to summary
pack-priv abstract boolean initialize(Class<T> psClass, GLPixelFormat.Attributes attrs)
inPreQualificationFilterback to summary
private boolean inPreQualificationFilter(GLGPUInfo gpuInfo)
inRejectListback to summary
private boolean inRejectList(GLGPUInfo gpuInfo)
isGL2back to summary
pack-priv boolean isGL2()
isGLExtensionSupportedback to summary
pack-priv boolean isGLExtensionSupported(String sglExtStr)
isGLGPUQualifyback to summary
pack-priv boolean isGLGPUQualify()
isNPOTSupportedback to summary
pack-priv boolean isNPOTSupported()
isQualifiedback to summary
pack-priv boolean isQualified(long nativeCtxInfo)
matchesback to summary
private static boolean matches(GLGPUInfo gpuInfo, GLGPUInfo[] gpuInfoArr)
nGetGLRendererback to summary
private static native String nGetGLRenderer(long nativeCtxInfo)
nGetGLVendorback to summary
private static native String nGetGLVendor(long nativeCtxInfo)
nGetGLVersionback to summary
private static native String nGetGLVersion(long nativeCtxInfo)
nIsGLExtensionSupportedback to summary
private static native boolean nIsGLExtensionSupported(long nativeContextObject, String glExtStr)
printDriverInformationback to summary
pack-priv void printDriverInformation(int adapter)
readGPUInfoback to summary
private static GLGPUInfo readGPUInfo(long nativeCtxInfo)
updateDeviceDetailsback to summary
pack-priv abstract void updateDeviceDetails(HashMap<K, V> deviceDetails)
com.sun.prism.es2 back to summary

private Class GLFactory.FactoryLoader

extends Object
implements PrivilegedAction<GLFactory>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedAction

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
pack-priv
FactoryLoader(String factoryClassName)

Method Summary

Modifier and TypeMethod and Description
public GLFactory
run()

Implements java.security.PrivilegedAction.run.

Performs the computation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

factoryClassNameback to summary
private final String factoryClassName

Constructor Detail

FactoryLoaderback to summary
pack-priv FactoryLoader(String factoryClassName)

Method Detail

runback to summary
public GLFactory run()

Implements java.security.PrivilegedAction.run.

Doc from java.security.PrivilegedAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:GLFactory

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedAction should document what (if anything) this value represents.

Annotations
@Override