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/renderthread/RenderThread.h | |
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/renderthread/RenderThread.h')
-rw-r--r-- | libs/hwui/renderthread/RenderThread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/RenderThread.h b/libs/hwui/renderthread/RenderThread.h index b18292820c6b..419e7c7a6b51 100644 --- a/libs/hwui/renderthread/RenderThread.h +++ b/libs/hwui/renderthread/RenderThread.h @@ -112,6 +112,7 @@ public: void dumpGraphicsMemory(int fd); void requireGlContext(); + void requireVkContext(); void destroyRenderingContext(); /** @@ -122,6 +123,8 @@ public: */ static bool isCurrent(); + static void initGrContextOptions(GrContextOptions& options); + protected: virtual bool threadLoop() override; |