Loading libs/hwui/renderthread/RenderThread.cpp +5 −4 Original line number Diff line number Diff line Loading @@ -323,6 +323,7 @@ void RenderThread::initGrContextOptions(GrContextOptions& options) { } void RenderThread::destroyRenderingContext() { ATRACE_CALL(); mFunctorManager.onContextDestroyed(); if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaGL) { if (mEglManager->hasEglContext()) { Loading Loading @@ -520,7 +521,10 @@ void RenderThread::preload() { // EGL driver is always preloaded only if HWUI renders with GL. if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaGL) { if (Properties::earlyPreloadGlContext()) { queue().post([this]() { requireGlContext(); }); queue().post([this]() { ATRACE_NAME("earlyPreloadGlContext"); requireGlContext(); }); } else { std::thread eglInitThread([]() { eglGetDisplay(EGL_DEFAULT_DISPLAY); }); eglInitThread.detach(); Loading @@ -528,9 +532,6 @@ void RenderThread::preload() { } else { requireVkContext(); } if (Properties::earlyPreloadGlContext()) { queue().post([]() { GraphicBufferAllocator::getInstance(); }); } HardwareBitmapUploader::initialize(); } Loading Loading
libs/hwui/renderthread/RenderThread.cpp +5 −4 Original line number Diff line number Diff line Loading @@ -323,6 +323,7 @@ void RenderThread::initGrContextOptions(GrContextOptions& options) { } void RenderThread::destroyRenderingContext() { ATRACE_CALL(); mFunctorManager.onContextDestroyed(); if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaGL) { if (mEglManager->hasEglContext()) { Loading Loading @@ -520,7 +521,10 @@ void RenderThread::preload() { // EGL driver is always preloaded only if HWUI renders with GL. if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaGL) { if (Properties::earlyPreloadGlContext()) { queue().post([this]() { requireGlContext(); }); queue().post([this]() { ATRACE_NAME("earlyPreloadGlContext"); requireGlContext(); }); } else { std::thread eglInitThread([]() { eglGetDisplay(EGL_DEFAULT_DISPLAY); }); eglInitThread.detach(); Loading @@ -528,9 +532,6 @@ void RenderThread::preload() { } else { requireVkContext(); } if (Properties::earlyPreloadGlContext()) { queue().post([]() { GraphicBufferAllocator::getInstance(); }); } HardwareBitmapUploader::initialize(); } Loading