Connecting a Surface to a Screen
You must use an EGLStream to connect a surface (i.e., a stream surface) to a screen. The surface is the stream producer, and the screen is the stream consumer.
-
eglGetPlatformDisplayEXTreturns an EGLDisplay handle belonging to a screen as specified by platform argument in the function call. -
eglMakeCurrentattaches an EGL rendering context to draw and read an EGL surface. It also binds a context and a surface to the current rendering thread. - Steps 6 through 9 in Creating a Stream Surface are required for connecting a stream surface to a screen.
-
eglGetPlatformDisplayEXTreturns a handle to screen. -
eglMakeCurrentbinds the handle to the current context and surface.