Android native code: Assigning a Surface to a specific display
问题 I’m looking for a way to assign a Surface (native window) object to a display so that the buffers submitted to that native window would be rendered to that specific display rather than to the main display. I would like to do that in native code. In Java, it can be done by using the Presentation API. In native code I tried to call SurfaceComposerClient::setDisplaySurface() , passing to it the display's IBinder object (returned by SurfaceComposerClient::getBuiltInDisplay() ), and the