1 // Copyright 2016 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef COMPONENTS_VIZ_COMMON_RESOURCES_RESOURCE_FORMAT_UTILS_VULKAN_H_ 6 #define COMPONENTS_VIZ_COMMON_RESOURCES_RESOURCE_FORMAT_UTILS_VULKAN_H_ 7 8 #include "components/viz/common/resources/resource_format_utils.h" 9 10 #if BUILDFLAG(ENABLE_VULKAN) 11 #include "third_party/vulkan/include/vulkan/vulkan.h" 12 #endif 13 14 namespace viz { 15 16 #if BUILDFLAG(ENABLE_VULKAN) 17 VIZ_RESOURCE_FORMAT_EXPORT bool HasVkFormat(ResourceFormat format); 18 VIZ_RESOURCE_FORMAT_EXPORT VkFormat ToVkFormat(ResourceFormat format); 19 #endif 20 21 } // namespace viz 22 23 #endif // COMPONENTS_VIZ_COMMON_RESOURCES_RESOURCE_FORMAT_UTILS_VULKAN_H_ 24