• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifdef GRAPHIC_2D_INDEP_BUILD
13 #include "vulkan/vulkan_core.h"
14 #else
15 #include "third_party/vulkan-headers/include/vulkan/vulkan_core.h"
16 #endif
17 
18 #ifdef VK_USE_PLATFORM_OHOS
19 #include <vulkan/vulkan_ohos.h>
20 #endif
21 
22 #ifdef SKIA_USE_XEG
23 #ifdef GRAPHIC_2D_INDEP_BUILD
24 #include "vulkan/vulkan_xeg.h"
25 #else
26 #include "third_party/vulkan-headers/include/vulkan/vulkan_xeg.h"
27 #endif
28 #endif
29 
30 #ifdef SK_BUILD_FOR_ANDROID
31 // This is needed to get android extensions for external memory
32 #if SKIA_IMPLEMENTATION || !defined(SK_VULKAN)
33 #include "include/third_party/vulkan/vulkan/vulkan_android.h"
34 #else
35 // For google3 builds we don't set SKIA_IMPLEMENTATION so we need to make sure that the vulkan
36 // headers stay up to date for our needs
37 #include <vulkan/vulkan_android.h>
38 #endif
39 #endif
40 
41 #include "src/gpu/vk/vulkan_header_ext_huawei.h"
42 
43 #endif
44