Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e83d5cad authored by Miao Wang's avatar Miao Wang Committed by android-build-merger
Browse files

Merge "[RenderScript] Connect ANativeWindow to BufferQueue before calling...

Merge "[RenderScript] Connect ANativeWindow to BufferQueue before calling AllocationSetSurface." into oc-dev am: 8788f64b
am: 92dde2e2

Change-Id: Ia3dfc3c799160edd50590ef13df22cba50205b1d
parents 9d64a418 92dde2e2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);