487132b828
With this change clients will still have to have vulkan/vulkan_core.h on their include path when compiling files that include Skia. However, it will not be required when compiling Skia files. Bug: skia: Change-Id: I1cd75f4f18d3097c8a1606c3e8a51a371b01b565 Reviewed-on: https://skia-review.googlesource.com/c/179560 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
33 lines
922 B
C
33 lines
922 B
C
/*
|
|
* 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
|
|
|
|
#include "SkTypes.h"
|
|
|
|
#if SKIA_IMPLEMENTATION || !defined(SK_VULKAN)
|
|
#include "../../include/third_party/vulkan/vulkan/vulkan_core.h"
|
|
#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)
|
|
#include "../../include/third_party/vulkan/vulkan/vulkan_android.h"
|
|
#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
|