public void resizeCanvas(int width, int height) { if (renderer != null) renderer.reinit(width, height);
public void resizeCanvas(final int width, final int height) { RenderThreadExecutable exe = new RenderThreadExecutable() { public void doAction() { if (renderer != null) renderer.reinit(width, height); } }; RenderThreadActionQueue.addToQueue(exe);
    public void resizeCanvas(int width, int height) {        if (renderer != null)            renderer.reinit(width, height);    }