Merge "[RenderScript] Connect ANativeWindow to BufferQueue before calling AllocationSetSurface." into oc-dev
am: 8788f64b8d
Change-Id: If4033d7c453446d32124ca67246b371817c56772
This commit is contained in:
@@ -1282,7 +1282,9 @@ nAllocationSetSurface(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobje
|
||||
|
||||
ANativeWindow *anw = nullptr;
|
||||
if (sur != 0) {
|
||||
// Connect the native window handle to buffer queue.
|
||||
anw = ANativeWindow_fromSurface(_env, sur);
|
||||
native_window_api_connect(anw, NATIVE_WINDOW_API_CPU);
|
||||
}
|
||||
|
||||
rsAllocationSetSurface((RsContext)con, (RsAllocation)alloc, anw);
|
||||
|
||||
Reference in New Issue
Block a user