| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final OGLRenderQueue. | |
| private static OGLRenderQueue |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| 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)
Implements abstract sun. Immediately processes each operation currently pending on the buffer, and then invokes the provided task. |
| private native void | |
| private void | |
| public void | flushNow()
Implements abstract sun. Immediately processes each operation currently pending on the buffer. |
| public static synchronized OGLRenderQueue | |
| public static boolean | |
| public static void |
| flusher | back to summary |
|---|---|
| private final OGLRenderQueue. | |
| theInstance | back to summary |
|---|---|
| private static OGLRenderQueue theInstance | |
| OGLRenderQueue | back to summary |
|---|---|
| private OGLRenderQueue() | |
| disposeGraphicsConfig | back to 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. | |
| flushAndInvokeNow | back to summary |
|---|---|
| public void flushAndInvokeNow(Runnable r) Implements abstract sun. Doc from sun. Immediately processes each operation currently pending on the buffer, and then invokes the provided task. This method will block until the entire buffer has been flushed and the provided task has been executed. The queue lock must be acquired before calling this method. | |
| flushBuffer | back to summary |
|---|---|
| private native void flushBuffer(long buf, int limit) | |
| flushBuffer | back to summary |
|---|---|
| private void flushBuffer() | |
| flushNow | back to summary |
|---|---|
| public void flushNow() Implements abstract sun. Doc from sun. Immediately processes each operation currently pending on the buffer. This method will block until the entire buffer has been flushed. The queue lock must be acquired before calling this method. | |
| getInstance | back to summary |
|---|---|
| public static synchronized OGLRenderQueue getInstance() Returns the single OGLRenderQueue instance. If it has not yet been initialized, this method will first construct the single instance before returning it. | |
| isQueueFlusherThread | back to summary |
|---|---|
| public static boolean isQueueFlusherThread() Returns true if the current thread is the OGL QueueFlusher thread. | |
| sync | back to summary |
|---|---|
| public static void sync() 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. | |
| Modifier and Type | Field and Description |
|---|---|
| private Error | |
| private boolean | |
| private Runnable | |
| private final Thread |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| public synchronized void | |
| public synchronized void |
| error | back to summary |
|---|---|
| private Error error | |
| needsFlush | back to summary |
|---|---|
| private boolean needsFlush | |
| task | back to summary |
|---|---|
| private Runnable task | |
| thread | back to summary |
|---|---|
| private final Thread thread | |
| QueueFlusher | back to summary |
|---|---|
| public QueueFlusher() | |
| flushAndInvokeNow | back to summary |
|---|---|
| public synchronized void flushAndInvokeNow(Runnable task) | |
| flushNow | back to summary |
|---|---|
| public synchronized void flushNow() | |
| run | back to summary |
|---|---|
| public synchronized void run() Implements java. Doc from java. Runs this operation. | |