public class WrappedSurface extends ProxySurface
ProxySurface.UpstreamSurfaceHook
DEBUG, initialHeight, initialWidth, INVISIBLE_WINDOW, OWN_DEVICE
LOCK_SUCCESS, LOCK_SURFACE_CHANGED, LOCK_SURFACE_NOT_READY, LOCK_SURFACE_UNLOCKED
Constructor and Description |
---|
WrappedSurface(AbstractGraphicsConfiguration cfg,
long handle,
int initialWidth,
int initialHeight,
ProxySurface.UpstreamSurfaceHook upstream) |
Modifier and Type | Method and Description |
---|---|
long |
getSurfaceHandle()
Returns the handle to the surface for this NativeSurface.
|
void |
setSurfaceHandle(long surfaceHandle)
Sets the surface handle which is created outside of this implementation.
|
String |
toString() |
addSurfaceUpdatedListener, addSurfaceUpdatedListener, createNotify, destroyNotify, getDisplayHandle, getGraphicsConfiguration, getHeight, getImplBitfield, getScreenIndex, getSurfaceLockOwner, getUpstreamSurfaceHook, getWidth, isSurfaceLockedByOtherThread, lockSurface, removeSurfaceUpdatedListener, setImplBitfield, surfaceSwap, surfaceUpdated, unlockSurface, validateSurfaceLocked
public WrappedSurface(AbstractGraphicsConfiguration cfg, long handle, int initialWidth, int initialHeight, ProxySurface.UpstreamSurfaceHook upstream)
public final long getSurfaceHandle()
NativeSurface
The surface handle should be set/update by NativeSurface.lockSurface()
,
where NativeSurface.unlockSurface()
is not allowed to modify it.
After NativeSurface.unlockSurface()
it is no more guaranteed
that the surface handle is still valid.
The surface handle shall reflect the platform one
for all drawable surface operations, e.g. opengl, swap-buffer.
On X11 this returns an entity of type Window,
since there is no differentiation of surface and window there.
On Microsoft Windows this returns an entity of type HDC.
getSurfaceHandle
in interface NativeSurface
getSurfaceHandle
in class ProxySurface
public final void setSurfaceHandle(long surfaceHandle)
MutableSurface
setSurfaceHandle
in interface MutableSurface
setSurfaceHandle
in class ProxySurface
public String toString()
toString
in class ProxySurface
Copyright 2010 JogAmp Community.