Merge "ANativeWindow_fromSurface: Use acquire not incStrong" into sc-dev

This commit is contained in:
Rob Carr
2021-05-06 18:44:36 +00:00
committed by Android (Google) Code Review

View File

@@ -30,7 +30,7 @@ using namespace android;
ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface) {
sp<ANativeWindow> win = android_view_Surface_getNativeWindow(env, surface);
if (win != NULL) {
win->incStrong((void*)ANativeWindow_fromSurface);
ANativeWindow_acquire(win.get());
}
return win.get();
}