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 SkiaVulkan_DEFINED 9 #define SkiaVulkan_DEFINED 10 11 #include "include/core/SkTypes.h" 12 13 // IWYU pragma: begin_exports 14 15 #if defined(SK_USE_INTERNAL_VULKAN_HEADERS) && !defined(SK_BUILD_FOR_GOOGLE3) 16 #include "include/third_party/vulkan/vulkan/vulkan_core.h" 17 #else 18 // For google3 builds we don't set SKIA_IMPLEMENTATION so we need to make sure that the vulkan 19 // headers stay up to date for our needs 20 #include <vulkan/vulkan_core.h> 21 #endif 22 23 #ifdef SK_BUILD_FOR_ANDROID 24 // This is needed to get android extensions for external memory 25 #if defined(SK_USE_INTERNAL_VULKAN_HEADERS) && !defined(SK_BUILD_FOR_GOOGLE3) 26 #include "include/third_party/vulkan/vulkan/vulkan_android.h" 27 #else 28 // For google3 builds we don't set SKIA_IMPLEMENTATION so we need to make sure that the vulkan 29 // headers stay up to date for our needs 30 #include <vulkan/vulkan_android.h> 31 #endif 32 #endif 33 34 // IWYU pragma: end_exports 35 36 #endif 37