| java.lang.Object sun.java2d.pipe.RenderQueue sun.java2d.opengl.OGLRenderQueue
OGLRenderQueue | public class OGLRenderQueue extends RenderQueue (Code) | | OGL-specific implementation of RenderQueue. This class provides a
single (daemon) thread that is responsible for periodically flushing
the queue, thus ensuring that only one thread communicates with the native
OpenGL libraries for the entire process.
|
Method Summary | |
public static void | disposeGraphicsConfig(long pConfigInfo) Disposes the native memory associated with the given native
graphics config info pointer on the single queue flushing thread. | public void | flushAndInvokeNow(Runnable r) | public void | flushNow() | public static synchronized OGLRenderQueue | getInstance() Returns the single OGLRenderQueue instance. | public static boolean | isQueueFlusherThread() Returns true if the current thread is the OGL QueueFlusher thread. | public static void | sync() Flushes the single OGLRenderQueue instance synchronously. |
disposeGraphicsConfig | public static void disposeGraphicsConfig(long pConfigInfo)(Code) | | Disposes the native memory associated with the given native
graphics config info pointer on the single queue flushing thread.
|
flushNow | public void flushNow()(Code) | | |
getInstance | public static synchronized OGLRenderQueue getInstance()(Code) | | Returns the single OGLRenderQueue instance. If it has not yet been
initialized, this method will first construct the single instance
before returning it.
|
isQueueFlusherThread | public static boolean isQueueFlusherThread()(Code) | | Returns true if the current thread is the OGL QueueFlusher thread.
|
sync | public static void sync()(Code) | | Flushes the single OGLRenderQueue instance synchronously. If an
OGLRenderQueue has not yet been instantiated, this method is a no-op.
This method is useful in the case of Toolkit.sync(), in which we want
to flush the OGL pipeline, but only if the OGL pipeline is currently
enabled. Since this class has few external dependencies, callers need
not be concerned that calling this method will trigger initialization
of the OGL pipeline and related classes.
|
|
|