public int swap(){
  if (!mEgl.eglSwapBuffers(mEglDisplay,mEglSurface)) {
    return mEgl.eglGetError();
  }
  return EGL10.EGL_SUCCESS;
}

public int swap ( ) { if ( ! mEgl . eglSwapBuffers ( mEglDisplay , mEglSurface ) ) { return mEgl . eglGetError ( ) ; } return EGL10 . EGL_SUCCESS ; }
display the current render surface .
