static void nativeRelease(JNIEnv* env, jclass clazz, jlong nativeObject) { sp<Surface> sur(reinterpret_cast<Surface *>(nativeObject)); sur->decStrong(&sRefBaseOwner); }
通过 nativeObject 获取 Surface native 指针,调用 decStrong() 递减强引用计数。
nativeObject
decStrong()