[14/n] ResourceTracker: Store feature bits and threading callbacks statically
Bug: 177241396
Get rid of the indirection through the ResourceTracker object.
Also enable the VulkanQueueSubmitWithCommands feature bit if the host
advertises.
Change-Id: I5b47c058f2f077c03829a6150ec99a6d3e2347fe
diff --git a/system/vulkan_enc/ResourceTracker.h b/system/vulkan_enc/ResourceTracker.h
index 200150f..8b2d1a2 100644
--- a/system/vulkan_enc/ResourceTracker.h
+++ b/system/vulkan_enc/ResourceTracker.h
@@ -38,6 +38,7 @@
ResourceTracker();
virtual ~ResourceTracker();
static ResourceTracker* get();
+
VulkanHandleMapping* createMapping();
VulkanHandleMapping* unwrapMapping();
VulkanHandleMapping* destroyMapping();
@@ -52,6 +53,9 @@
VkEncoderGetFunc vkEncoderGetFunc = 0;
};
+ static uint32_t streamFeatureBits;
+ static ThreadingCallbacks threadingCallbacks;
+
#define HANDLE_REGISTER_DECL(type) \
void register_##type(type); \
void unregister_##type(type); \