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

Commit f8cc08fa authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Merge cherrypicks of ['android-review.googlesource.com/3147277'] into 24Q3-release.

Change-Id: I388c7f4ea6e4bf14c1fdd6202c7bc2703bd06fe2
parents 29bd5a22 f5df9718
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -383,14 +383,6 @@ EGLBoolean egl_display_t::initialize(EGLint* major, EGLint* minor) {
        // before using cnx->major & cnx->minor
        if (major != nullptr) *major = cnx->major;
        if (minor != nullptr) *minor = cnx->minor;
    }

    { // scope for refLock
        std::unique_lock<std::mutex> _l(refLock);
        eglIsInitialized = true;
        refCond.notify_all();
    }

        auto mergeExtensionStrings = [](const std::vector<std::string>& strings) {
            std::ostringstream combinedStringStream;
            std::copy(strings.begin(), strings.end(),
@@ -399,6 +391,14 @@ EGLBoolean egl_display_t::initialize(EGLint* major, EGLint* minor) {
            return gBuiltinExtensionString + combinedStringStream.str();
        };
        mExtensionString = mergeExtensionStrings(extensionStrings);
    }

    { // scope for refLock
        std::unique_lock<std::mutex> _l(refLock);
        eglIsInitialized = true;
        refCond.notify_all();
    }

    return EGL_TRUE;
}