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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user