Rendering to EGLDevice

These are the steps to render to an EGL device (more detailed steps follow):

  1. Create an EGL display from an EGL device.
  2. Create an EGL context from the EGL display.
  3. Create an EGL stream producer surface.
  4. Bind a GL context to the stream surface, i.e. make current.
  5. Post the surface contents to the stream using swap buffers.