1 /* 2 * Copyright 2018 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #ifndef GrVkVulkan_DEFINED 9 #define GrVkVulkan_DEFINED 10 11 #include "include/core/SkTypes.h" 12 #include "third_party/vulkan-headers/include/vulkan/vulkan_core.h" 13 14 #ifdef VK_USE_PLATFORM_OHOS 15 #include <vulkan/vulkan_ohos.h> 16 #endif 17 18 #ifdef SKIA_USE_XEG 19 #include "third_party/vulkan-headers/include/vulkan/vulkan_xeg.h" 20 #endif 21 22 #ifdef SK_BUILD_FOR_ANDROID 23 // This is needed to get android extensions for external memory 24 #if SKIA_IMPLEMENTATION || !defined(SK_VULKAN) 25 #include "include/third_party/vulkan/vulkan/vulkan_android.h" 26 #else 27 // For google3 builds we don't set SKIA_IMPLEMENTATION so we need to make sure that the vulkan 28 // headers stay up to date for our needs 29 #include <vulkan/vulkan_android.h> 30 #endif 31 #endif 32 33 #include "src/gpu/vk/vulkan_header_ext_huawei.h" 34 35 #endif 36