aboutsummaryrefslogtreecommitdiff
path: root/src/gpu/graphite/vk/VulkanCaps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/graphite/vk/VulkanCaps.cpp')
-rw-r--r--src/gpu/graphite/vk/VulkanCaps.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gpu/graphite/vk/VulkanCaps.cpp b/src/gpu/graphite/vk/VulkanCaps.cpp
index e4f7c5adcd..95e900da83 100644
--- a/src/gpu/graphite/vk/VulkanCaps.cpp
+++ b/src/gpu/graphite/vk/VulkanCaps.cpp
@@ -128,6 +128,13 @@ void VulkanCaps::init(const ContextOptions& contextOptions,
}
fMaxUniformBufferRange = physDevProperties.limits.maxUniformBufferRange;
+#ifdef SK_BUILD_FOR_ANDROID
+ if (extensions->hasExtension(
+ VK_ANDROID_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_EXTENSION_NAME, 2)) {
+ fSupportsAHardwareBufferImages = true;
+ }
+#endif
+
// Determine whether the client enabled certain physical device features.
if (features) {
auto ycbcrFeatures =