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

Commit f35ddc98 authored by Miao Wang's avatar Miao Wang
Browse files

[RenderScript] Connect ANativeWindow to BufferQueue before calling

AllocationSetSurface.

Bug: 34334222
Test: mm, boot Sailfish, CTS pass and ImageProcessingJB works well.
Change-Id: I77e7fb69987a347862286299622343b4f7879ab0
parent f2764a4a
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);