| Modifier and Type | Field and Description |
|---|---|
| pack-priv final NativeSurface | |
| pack-priv final UpstreamSurfaceHook |
| Access | Constructor and Description |
|---|---|
| public | DelegatedUpstreamSurfaceHookWithSurfaceSize(final UpstreamSurfaceHook
optional upstream UpstreamSurfaceHook used for upstream, final NativeSurface create(ProxySurface) and destroy(ProxySurface).mandatory surface)NativeSurface used for getSurfaceWidth(ProxySurface) and getSurfaceHeight(ProxySurface), not used for getUpstreamSurface().
|
| Modifier and Type | Method and Description |
|---|---|
| public final void | create(final ProxySurface s)
Implements com. ProxySurface#createNotify() within lock, before using surface.
|
| public final void | destroy(final ProxySurface s)
Implements com. ProxySurface#destroyNotify() within lock, before clearing fields.
|
| 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.
|
| public final NativeSurface | getUpstreamSurface()
Implements com. NativeSurface if used by implementation, otherwise null.
|
| public String |
| surface | back to summary |
|---|---|
| pack-priv final NativeSurface surface | |
| upstream | back to summary |
|---|---|
| pack-priv final UpstreamSurfaceHook upstream | |
| DelegatedUpstreamSurfaceHookWithSurfaceSize | back to summary |
|---|---|
public DelegatedUpstreamSurfaceHookWithSurfaceSize(final UpstreamSurfaceHook upstream, final NativeSurface surface)
| |
| create | back to summary |
|---|---|
| public final void create(final ProxySurface s) Implements com. Doc from com. called within
| |
| destroy | back to summary |
|---|---|
| public final void destroy(final ProxySurface s) Implements com. Doc from com. called within
| |
| 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
| |
| 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
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |