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

Commit 150001aa authored by Stan Iliev's avatar Stan Iliev
Browse files

Invoke Vulkan initialize earlier

Invoke VulkanManager::initialize as soon as the RenderThread is
started. This reduces time spent in the first call to
CanvasContext::setSurface by ~20ms.

Test: Ran Hermetic Startup: EmptyActivity
BUg: 122659224
Change-Id: Ifa160b0b0bbe43adc82f061fac51082878164804
parent 266d408d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -171,6 +171,9 @@ void RenderThread::initThreadLocals() {
    mRenderState = new RenderState(*this);
    mVkManager = new VulkanManager(*this);
    mCacheManager = new CacheManager(mDisplayInfo);
    if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaVulkan) {
        mVkManager->initialize();
    }
}

void RenderThread::requireGlContext() {