public class WrappedSurface extends ProxySurface
ProxySurface.UpstreamSurfaceHookDEBUG, initialHeight, initialWidth, INVISIBLE_WINDOW, OWN_DEVICELOCK_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, validateSurfaceLockedpublic 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 NativeSurfacegetSurfaceHandle in class ProxySurfacepublic final void setSurfaceHandle(long surfaceHandle)
MutableSurfacesetSurfaceHandle in interface MutableSurfacesetSurfaceHandle in class ProxySurfacepublic String toString()
toString in class ProxySurfaceCopyright 2010 JogAmp Community.