public class DelegatedUpstreamSurfaceHookMutableSize extends UpstreamSurfaceHookMutableSize
UpstreamSurfaceHook.MutableSize
Constructor and Description |
---|
DelegatedUpstreamSurfaceHookMutableSize(UpstreamSurfaceHook upstream,
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. |
String |
toString() |
getSurfaceHeight, getSurfaceWidth, getUpstreamSurface, setSurfaceSize
public DelegatedUpstreamSurfaceHookMutableSize(UpstreamSurfaceHook upstream, int width, int height)
upstream
- optional upstream UpstreamSurfaceHook used for create(ProxySurface)
and destroy(ProxySurface)
.width
- initial widthheight
- initial heightpublic 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
public String toString()
toString
in class UpstreamSurfaceHookMutableSize
Copyright 2010 JogAmp Community.