GLAutoDrawable components crucial
to relocating all its GLEventListener w/ their operating GLContext, etc.
The components are:
GLContextGLEventListener, incl. their init stateGLAnimatorControlAbstractGraphicsDevice for compatibility check and preserving the native device handle incl. ownership
A GLEventListenerState instance can be created while components are moved from a GLAutoDrawable
to the new instance, which gains ownership of the moved components.
A GLEventListenerState instance's components can be moved to a GLAutoDrawable,
while loosing ownership of the moved components.
| Modifier and Type | Field and Description |
|---|---|
| public final GLAnimatorControl | |
| public final boolean | |
| public final GLCapabilitiesImmutable | |
| public final GLContext | |
| private static final boolean | |
| public final AbstractGraphicsDevice | |
| private static final GLRunnable | |
| public final GLEventListener[] | |
| public final boolean[] | |
| private volatile NativeSurface | |
| private volatile boolean | |
| public final boolean | |
| private static final GLRunnable | |
| private final Runnable | |
| public final AbstractGraphicsDevice | |
| private volatile RecursiveLock |
| Access | Constructor and Description |
|---|---|
| private | GLEventListenerState(final AbstractGraphicsDevice upstreamDevice, final boolean proxyOwnsUpstreamDevice, final AbstractGraphicsDevice device, final GLCapabilitiesImmutable caps, final RecursiveLock upstreamLock, final NativeSurface lockedSurface, final GLContext context, final int count, final GLAnimatorControl anim, final boolean animStarted)
|
| Modifier and Type | Method and Description |
|---|---|
| private static AbstractGraphicsDevice | |
| public void | |
| public Runnable | getUnlockSurfaceOp()
Returns a |
| public final boolean | |
| public final int | |
| public static GLEventListenerState | Returns: new GLEventListenerState instanceowning moved components.GLAutoDrawable source to move components fromMoves all GLEventListenerState components from the given |
| public static GLEventListenerState | Returns: new GLEventListenerState instanceowning moved components.GLAutoDrawable source to move components fromkeep keepLocked)upstream-lock and surface locked, see aboveMoves all GLEventListenerState components from the given |
| public final void | moveTo(final GLAutoDrawable
GLAutoDrawable destination to move GLEventListenerState components toMoves all GLEventListenerState components to the given |
| public final void | moveTo(final GLAutoDrawable
GLAutoDrawable destination to move GLEventListenerState components tooptional unlock operation for destUnlockOperation)dest, see moveFrom(GLAutoDrawable, boolean).Moves all GLEventListenerState components to the given |
| anim | back to summary |
|---|---|
| public final GLAnimatorControl anim | |
| animStarted | back to summary |
|---|---|
| public final boolean animStarted | |
| caps | back to summary |
|---|---|
| public final GLCapabilitiesImmutable caps | |
| context | back to summary |
|---|---|
| public final GLContext context | |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| device | back to summary |
|---|---|
| public final AbstractGraphicsDevice device | |
| glFinish | back to summary |
|---|---|
| private static final GLRunnable glFinish | |
| listeners | back to summary |
|---|---|
| public final GLEventListener[] listeners | |
| listenersInit | back to summary |
|---|---|
| public final boolean[] listenersInit | |
| lockedSurface | back to summary |
|---|---|
| private volatile NativeSurface lockedSurface | |
| owner | back to summary |
|---|---|
| private volatile boolean owner | |
| proxyOwnsUpstreamDevice | back to summary |
|---|---|
| public final boolean proxyOwnsUpstreamDevice | |
| setViewport | back to summary |
|---|---|
| private static final GLRunnable setViewport | |
| unlockOp | back to summary |
|---|---|
| private final Runnable unlockOp | |
| upstreamDevice | back to summary |
|---|---|
| public final AbstractGraphicsDevice upstreamDevice | |
| upstreamLock | back to summary |
|---|---|
| private volatile RecursiveLock upstreamLock | |
| GLEventListenerState | back to summary |
|---|---|
| private GLEventListenerState(final AbstractGraphicsDevice upstreamDevice, final boolean proxyOwnsUpstreamDevice, final AbstractGraphicsDevice device, final GLCapabilitiesImmutable caps, final RecursiveLock upstreamLock, final NativeSurface lockedSurface, final GLContext context, final int count, final GLAnimatorControl anim, final boolean animStarted) | |
| cloneDevice | back to summary |
|---|---|
| private static AbstractGraphicsDevice cloneDevice(final AbstractGraphicsDevice aDevice) | |
| destroy | back to summary |
|---|---|
| public void destroy() Last resort to destroy and loose ownership | |
| getUnlockSurfaceOp | back to summary |
|---|---|
| public Runnable getUnlockSurfaceOp() Returns a | |
| isOwner | back to summary |
|---|---|
| public final boolean isOwner() Returns
Ownership is lost if | |
| listenerCount | back to summary |
|---|---|
| public final int listenerCount() | |
| moveFrom | back to summary |
|---|---|
| public static GLEventListenerState moveFrom(final GLAutoDrawable src) Moves all GLEventListenerState components from the given
Note that all components are removed from the
If the
The returned GLEventListenerState instance is the
Locking is performed on the
| |
| moveFrom | back to summary |
|---|---|
| public static GLEventListenerState moveFrom(final GLAutoDrawable src, final boolean keepLocked) Moves all GLEventListenerState components from the given
Note that all components are removed from the
If the
The returned GLEventListenerState instance is the
Locking is performed on the
| |
| moveTo | back to summary |
|---|---|
| public final void moveTo(final GLAutoDrawable dest) throws GLException Moves all GLEventListenerState components to the given
If the previous
Locking is performed on the Note After this operation, the GLEventListenerState reference should be released.
| |
| moveTo | back to summary |
|---|---|
| public final void moveTo(final GLAutoDrawable dest, final Runnable destUnlockOperation) throws GLException Moves all GLEventListenerState components to the given
If the previous
Locking is performed on the
If the Note After this operation, the GLEventListenerState reference should be released.
| |