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