public class UpstreamSurfaceHookMutableSize extends Object implements UpstreamSurfaceHook.MutableSize
UpstreamSurfaceHook.MutableSize
Constructor and Description |
---|
UpstreamSurfaceHookMutableSize(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. |
int |
getHeight(ProxySurface s)
Returns the height of the upstream surface, used if
ProxySurface#UPSTREAM_PROVIDES_SIZE is set. |
int |
getWidth(ProxySurface s)
Returns the width of the upstream surface, used if
ProxySurface#UPSTREAM_PROVIDES_SIZE is set. |
void |
setSize(int width,
int height) |
String |
toString() |
public UpstreamSurfaceHookMutableSize(int width, int height)
width
- initial widthheight
- initial heightpublic final void setSize(int width, int height)
setSize
in interface UpstreamSurfaceHook.MutableSize
public final int getWidth(ProxySurface s)
UpstreamSurfaceHook
ProxySurface#UPSTREAM_PROVIDES_SIZE
is set.getWidth
in interface UpstreamSurfaceHook
public final int getHeight(ProxySurface s)
UpstreamSurfaceHook
ProxySurface#UPSTREAM_PROVIDES_SIZE
is set.getHeight
in interface UpstreamSurfaceHook
public void create(ProxySurface s)
UpstreamSurfaceHook
ProxySurface.createNotify()
within lock, before using surface.create
in interface UpstreamSurfaceHook
public void destroy(ProxySurface s)
UpstreamSurfaceHook
ProxySurface.destroyNotify()
within lock, before clearing fields.destroy
in interface UpstreamSurfaceHook
Copyright 2010 JogAmp Community.