Fix plumbing of features and extensions to GrContext
Switch from the deprecated fields fExtensions and fFeatures to
fVkExtensions and fDeviceFeatures. This ensures all features and
extensions are properly declared to Skia. Currently the set of features
is hard-coded and the set of extensions might be incomplete.
Bug: 970231,963446
Change-Id: Iaa3a90fdd80acff8024e75c8051a36f58fbb16fa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1642977
Commit-Queue: Saman Sami <[email protected]>
Reviewed-by: Antoine Labour <[email protected]>
Cr-Commit-Position: refs/heads/master@{#666879}
diff --git a/gpu/vulkan/vulkan_device_queue.h b/gpu/vulkan/vulkan_device_queue.h
index 735c235..f026fd2 100644
--- a/gpu/vulkan/vulkan_device_queue.h
+++ b/gpu/vulkan/vulkan_device_queue.h
@@ -80,6 +80,10 @@
VulkanFenceHelper* GetFenceHelper() const { return cleanup_helper_.get(); }
+ const VkPhysicalDeviceFeatures& enabled_device_features() const {
+ return enabled_device_features_;
+ }
+
private:
gfx::ExtensionSet enabled_extensions_;
VkPhysicalDevice vk_physical_device_ = VK_NULL_HANDLE;
@@ -90,6 +94,7 @@
uint32_t vk_queue_index_ = 0;
const VkInstance vk_instance_;
std::unique_ptr<VulkanFenceHelper> cleanup_helper_;
+ VkPhysicalDeviceFeatures enabled_device_features_ = {};
DISALLOW_COPY_AND_ASSIGN(VulkanDeviceQueue);
};