EGLSurface [ is_a -> WrappedSurface -> ProxySurfaceImpl -> ProxySurface -> MutableSurface -> NativeSurface] has_a
EGLUpstreamSurfaceHook [ is_a -> UpstreamSurfaceHook.MutableSize -> UpstreamSurfaceHook ] has_a
NativeSurface (e.g. native [X11, WGL, ..] surface, or WrappedSurface, ..)
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| private final NativeSurface | |
| private final UpstreamSurfaceHook. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | EGLUpstreamSurfaceHook(final EGLGraphicsConfiguration cfg, final long handle, final UpstreamSurfaceHook upstream, final boolean ownsDevice)
|
| Modifier and Type | Method and Description |
|---|---|
| public final void | create(final ProxySurface surface)
Implements com. ProxySurface#createNotify() within lock, before using surface.
|
| public final void | destroy(final ProxySurface surface)
Implements com. ProxySurface#destroyNotify() within lock, before clearing fields.
|
| private final void | |
| public final int | getSurfaceHeight(final ProxySurface s)
Implements com. ProxySurface#UPSTREAM_PROVIDES_SIZE is set.
|
| public final int | getSurfaceWidth(final ProxySurface s)
Implements com. ProxySurface#UPSTREAM_PROVIDES_SIZE is set.
|
| pack-priv static String | |
| public final NativeSurface | getUpstreamSurface()
Implements com. NativeSurface if used by implementation, otherwise null.
|
| public final void | setSurfaceSize(final int
new width in pixel units width, final int new height in pixel units height)Implements com. |
| public String |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| upstreamSurface | back to summary |
|---|---|
| private final NativeSurface upstreamSurface | |
| upstreamSurfaceHookMutableSize | back to summary |
|---|---|
| private final UpstreamSurfaceHook. | |
| EGLUpstreamSurfaceHook | back to summary |
|---|---|
| public EGLUpstreamSurfaceHook(final NativeSurface upstream) | |
| EGLUpstreamSurfaceHook | back to summary |
|---|---|
| public EGLUpstreamSurfaceHook(final EGLGraphicsConfiguration cfg, final long handle, final UpstreamSurfaceHook upstream, final boolean ownsDevice) | |
| create | back to summary |
|---|---|
| public final void create(final ProxySurface surface) Implements com. Doc from com. called within
| |
| destroy | back to summary |
|---|---|
| public final void destroy(final ProxySurface surface) Implements com. Doc from com. called within
| |
| evalUpstreamSurface | back to summary |
|---|---|
| private final void evalUpstreamSurface(final String dbgPrefix, final ProxySurface surface) | |
| getSurfaceHeight | back to summary |
|---|---|
| public final int getSurfaceHeight(final ProxySurface s) Implements com. Doc from com. Returns the height of the upstream surface in pixels, used if
| |
| getSurfaceWidth | back to summary |
|---|---|
| public final int getSurfaceWidth(final ProxySurface s) Implements com. Doc from com. Returns the width of the upstream surface in pixels, used if
| |
| getThreadName | back to summary |
|---|---|
| pack-priv static String getThreadName() | |
| getUpstreamSurface | back to summary |
|---|---|
| public final NativeSurface getUpstreamSurface() Implements com. Doc from com. Returns the optional upstream One example is the JOGL EGLWrappedSurface, which might be backed up by a native platform NativeSurface (X11, WGL, CGL, ..).
Returns the actual upstream
| |
| setSurfaceSize | back to summary |
|---|---|
| public final void setSurfaceSize(final int width, final int height) Implements com. Doc from com. Resizes the upstream surface.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |