From c3c8d423de89f511ce9997a67c97a4fb371f2213 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Tue, 30 Jan 2018 18:07:27 -0800 Subject: New NDK APIs for SurfaceTexture 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 --- native/android/libandroid.map.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'native/android/libandroid.map.txt') diff --git a/native/android/libandroid.map.txt b/native/android/libandroid.map.txt index 3d5ee39e37d3..d6dcd723e721 100644 --- a/native/android/libandroid.map.txt +++ b/native/android/libandroid.map.txt @@ -205,6 +205,14 @@ LIBANDROID { AStorageManager_mountObb; AStorageManager_new; AStorageManager_unmountObb; + ASurfaceTexture_acquireANativeWindow; # introduced=28 + ASurfaceTexture_attachToGLContext; # introduced=28 + ASurfaceTexture_detachFromGLContext; # introduced=28 + ASurfaceTexture_fromSurfaceTexture; # introduced=28 + ASurfaceTexture_getTimestamp; # introduced=28 + ASurfaceTexture_getTransformMatrix; # introduced=28 + ASurfaceTexture_release; # introduced=28 + ASurfaceTexture_updateTexImage; # introduced=28 ATrace_beginSection; # introduced=23 ATrace_endSection; # introduced=23 ATrace_isEnabled; # introduced=23 -- cgit v1.2.3-59-g8ed1b