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

Commit d91a716c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't load EGL driver always"

parents e0d9a16d 30b90963
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -408,12 +408,13 @@ bool RenderThread::isCurrent() {
}

void RenderThread::preload() {
    // EGL driver is always preloaded only if HWUI renders with GL.
    if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaGL) {
        std::thread eglInitThread([]() {
        //TODO: don't load EGL drivers for Vulkan, when HW bitmap uploader is refactored.
            eglGetDisplay(EGL_DEFAULT_DISPLAY);
        });
        eglInitThread.detach();
    if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaVulkan) {
    } else {
        requireVkContext();
    }
    HardwareBitmapUploader::initialize();