final class WCPageBackBufferImpl extends WCPageBackBuffer implements ResourceFactoryListener
Modifier and Type | Field and Description |
---|---|
private boolean |
listenerAdded |
private float |
pixelScale |
private RTTexture |
texture |
Constructor and Description |
---|
WCPageBackBufferImpl(float pixelScale) |
Modifier and Type | Method and Description |
---|---|
protected void |
copyArea(int x,
int y,
int w,
int h,
int dx,
int dy) |
WCGraphicsContext |
createGraphics() |
private static RTTexture |
createTexture(int w,
int h) |
void |
disposeGraphics(WCGraphicsContext gc) |
void |
factoryReleased()
Called when the factory is released.
|
void |
factoryReset()
Called when the factory is lost and about to be reset.
|
void |
flush(WCGraphicsContext gc,
int x,
int y,
int w,
int h) |
boolean |
validate(int width,
int height) |
private RTTexture texture
private boolean listenerAdded
private float pixelScale
private static RTTexture createTexture(int w, int h)
public WCGraphicsContext createGraphics()
createGraphics
in class WCPageBackBuffer
public void disposeGraphics(WCGraphicsContext gc)
disposeGraphics
in class WCPageBackBuffer
public void flush(WCGraphicsContext gc, int x, int y, int w, int h)
flush
in class WCPageBackBuffer
protected void copyArea(int x, int y, int w, int h, int dx, int dy)
copyArea
in class WCPageBackBuffer
public boolean validate(int width, int height)
validate
in class WCPageBackBuffer
public void factoryReset()
ResourceFactoryListener
factoryReset
in interface ResourceFactoryListener
public void factoryReleased()
ResourceFactoryListener
factoryReleased
in interface ResourceFactoryListener