public int swap(){
  if (!egl.eglSwapBuffers(eglDisplay,eglSurface)) {
    return egl.eglGetError();
  }
  return EGL10.EGL_SUCCESS;
}

public int swap ( ) { if ( ! egl . eglSwapBuffers ( eglDisplay , eglSurface ) ) { return egl . eglGetError ( ) ; } return EGL10 . EGL_SUCCESS ; }
display the current render surface .
