2018-12-20 19:09:36 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2018 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GrVkVulkan_DEFINED
|
|
|
|
#define GrVkVulkan_DEFINED
|
|
|
|
|
2019-04-23 17:05:21 +00:00
|
|
|
#include "include/core/SkTypes.h"
|
2018-12-20 19:09:36 +00:00
|
|
|
|
|
|
|
#if SKIA_IMPLEMENTATION || !defined(SK_VULKAN)
|
2019-04-23 17:05:21 +00:00
|
|
|
#include "include/third_party/vulkan/vulkan/vulkan_core.h"
|
2018-12-20 19:09:36 +00:00
|
|
|
#else
|
|
|
|
// For google3 builds we don't set SKIA_IMPLEMENTATION so we need to make sure that the vulkan
|
|
|
|
// headers stay up to date for our needs
|
|
|
|
#include <vulkan/vulkan_core.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef SK_BUILD_FOR_ANDROID
|
|
|
|
// This is needed to get android extensions for external memory
|
|
|
|
#if SKIA_IMPLEMENTATION || !defined(SK_VULKAN)
|
2019-04-23 17:05:21 +00:00
|
|
|
#include "include/third_party/vulkan/vulkan/vulkan_android.h"
|
2018-12-20 19:09:36 +00:00
|
|
|
#else
|
|
|
|
// For google3 builds we don't set SKIA_IMPLEMENTATION so we need to make sure that the vulkan
|
|
|
|
// headers stay up to date for our needs
|
|
|
|
#include <vulkan/vulkan_android.h>
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|