public class GenericUpstreamSurfacelessHook extends UpstreamSurfaceHookMutableSize
UpstreamSurfaceHook.MutableSize
Constructor and Description |
---|
GenericUpstreamSurfacelessHook(int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
create(ProxySurface s)
called within
ProxySurface.createNotify() within lock, before using surface. |
void |
destroy(ProxySurface s)
called within
ProxySurface.destroyNotify() within lock, before clearing fields. |
getSurfaceHeight, getSurfaceWidth, getUpstreamSurface, setSurfaceSize, toString
public GenericUpstreamSurfacelessHook(int width, int height)
width
- the initial width as returned by NativeSurface.getSurfaceWidth()
via UpstreamSurfaceHook.getSurfaceWidth(ProxySurface)
,
not the actual dummy surface width.
The latter is platform specific and smallheight
- the initial height as returned by NativeSurface.getSurfaceHeight()
via UpstreamSurfaceHook.getSurfaceHeight(ProxySurface)
,
not the actual dummy surface height,
The latter is platform specific and smallpublic final void create(ProxySurface s)
UpstreamSurfaceHook
ProxySurface.createNotify()
within lock, before using surface.create
in interface UpstreamSurfaceHook
create
in class UpstreamSurfaceHookMutableSize
public final void destroy(ProxySurface s)
UpstreamSurfaceHook
ProxySurface.destroyNotify()
within lock, before clearing fields.destroy
in interface UpstreamSurfaceHook
destroy
in class UpstreamSurfaceHookMutableSize
Copyright 2010 JogAmp Community.