diff options
| author | 2019-01-10 18:31:55 -0500 | |
|---|---|---|
| committer | 2019-01-10 18:31:55 -0500 | |
| commit | 150001aaa7ff4b1bd0ac169f21cf9107caa03d65 (patch) | |
| tree | 5945b28029eb34d7111fe40290ab0c032d734a3b | |
| parent | 266d408daef1bf5a33b2d9f2d8ca151160425a91 (diff) | |
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
| -rw-r--r-- | libs/hwui/renderthread/RenderThread.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/RenderThread.cpp b/libs/hwui/renderthread/RenderThread.cpp index c06faddf7fa6..8bef35915c4d 100644 --- a/libs/hwui/renderthread/RenderThread.cpp +++ b/libs/hwui/renderthread/RenderThread.cpp @@ -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() { |