diff options
author | Stan Iliev <stani@google.com> | 2019-02-13 14:24:33 -0500 |
---|---|---|
committer | Stan Iliev <stani@google.com> | 2019-02-13 15:55:45 -0500 |
commit | 981afe773aa5b7535f36b126a0b7d6fd4cc78d03 (patch) | |
tree | c0d8584bbd28f485b9435a69373d052f3b09a2bf /libs/hwui/Readback.cpp | |
parent | 74d6997124a55043cccf505e7091ba326d51d6f8 (diff) |
Decouple VulkanManager from RenderThread
This CL allows for more than one VulkanManager to exist.
VulkanManager ctor are public allowing for classes other
than RenderThread to instantiate it.
Secondary VulkanManager can be used to render on a thread
other than RT.
Test: Ran HWUI unit tests and several apps
Change-Id: Ibfd76c86ff67e01617a500902bba7431b928f5c0
Diffstat (limited to 'libs/hwui/Readback.cpp')
-rw-r--r-- | libs/hwui/Readback.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/Readback.cpp b/libs/hwui/Readback.cpp index 76c56609ef47..2ffda839c210 100644 --- a/libs/hwui/Readback.cpp +++ b/libs/hwui/Readback.cpp @@ -107,7 +107,7 @@ CopyResult Readback::copyImageInto(const sk_sp<SkImage>& image, Matrix4& texTran if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaGL) { mRenderThread.requireGlContext(); } else { - mRenderThread.vulkanManager().initialize(); + mRenderThread.requireVkContext(); } if (!image.get()) { return CopyResult::UnknownError; |