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
This commit is contained in:
Stan Iliev
2019-01-10 18:31:55 -05:00
parent 266d408dae
commit 150001aaa7

View File

@@ -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() {