I\'m making a virtual reality application where the camera should detect faces, locate them and show their location on the camera preview.
I know of 3 ways to do it,
The lockcanvas/unlockcanvasandpost approach is not appropriate when using openGL as the openGL code is controlling and locking the surface. If you want to use the standard 2d APIs, don't use OpenGL.