c++后台若使用ANativeWindow_fromSurface将surface转化为ANativeWindow; 需要头文件:#include <android/native_window_jni.h>