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 13 #include "third_party/vulkan-headers/include/vulkan/vulkan_core.h" 14 15 #ifdef VK_USE_PLATFORM_OHOS 16 #include <vulkan/vulkan_ohos.h> 17 #endif 18 19 #ifdef SK_BUILD_FOR_ANDROID 20 // This is needed to get android extensions for external memory 21 #if SKIA_IMPLEMENTATION || !defined(SK_VULKAN) 22 #include "include/third_party/vulkan/vulkan/vulkan_android.h" 23 #else 24 // For google3 builds we don't set SKIA_IMPLEMENTATION so we need to make sure that the vulkan 25 // headers stay up to date for our needs 26 #include <vulkan/vulkan_android.h> 27 #endif 28 #endif 29 30 #endif 31