These native APIs give access to most SurfaceTexture java APIs from native code. In addition to java APIs it also gives access to the current buffer using AHardwareBuffer. The main goal of this is to allow game engines (mostly) to access things like camera or video without having to call back into java from their GL thread. Test: Manual with filament. Created a SurfaceTexture from java pointed to a camera stream. Visualized the camera stream on a 3D mesh. Change-Id: I0aa104c38553b00f9dadbbaecca06be5dd2868ea
2.2 KiB
2.2 KiB