fcd5fddb02
This reverts commitfad9e3f541
. Reason for revert: Can't find the error message anymore (?!?) Let's try again shall we Original change's description: > Revert "Update skia to use ifdefs for Vulkan code instead of dummy header" > > This reverts commitc0f8e426c5
. > > Reason for revert: Experiment to see if this will unblock the Android roll > > Original change's description: > > Update skia to use ifdefs for Vulkan code instead of dummy header > > > > Bug: skia:6721 > > Change-Id: I80a4c9f2acc09c174497f625c50ed12a8bb76505 > > Reviewed-on: https://skia-review.googlesource.com/19547 > > Reviewed-by: Mike Klein <mtklein@google.com> > > Commit-Queue: Greg Daniel <egdaniel@google.com> > > TBR=egdaniel@google.com,mtklein@google.com,bsalomon@google.com > > Change-Id: Ib51c1672570f2071a17b6fbde692a5174b0358ce > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Bug: skia:6721 > Reviewed-on: https://skia-review.googlesource.com/19724 > Reviewed-by: Robert Phillips <robertphillips@google.com> > Commit-Queue: Robert Phillips <robertphillips@google.com> TBR=egdaniel@google.com,mtklein@google.com,bsalomon@google.com,robertphillips@google.com Change-Id: Iecef7ddcfe31d82938336120a4193525ac6693be No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: skia:6721 Reviewed-on: https://skia-review.googlesource.com/19782 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
44 lines
989 B
C
44 lines
989 B
C
|
|
/*
|
|
* Copyright 2016 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef GrVkDefines_DEFINED
|
|
#define GrVkDefines_DEFINED
|
|
|
|
#ifdef SK_VULKAN
|
|
|
|
#if defined(SK_BUILD_FOR_WIN) || defined(SK_BUILD_FOR_WIN32)
|
|
# if !defined(VK_USE_PLATFORM_WIN32_KHR)
|
|
# define VK_USE_PLATFORM_WIN32_KHR
|
|
# endif
|
|
#elif defined(SK_BUILD_FOR_ANDROID)
|
|
# if !defined(VK_USE_PLATFORM_ANDROID_KHR)
|
|
# define VK_USE_PLATFORM_ANDROID_KHR
|
|
# endif
|
|
#elif defined(SK_BUILD_FOR_UNIX)
|
|
# if defined(__Fuchsia__)
|
|
# if !defined(VK_USE_PLATFORM_MAGMA_KHR)
|
|
# define VK_USE_PLATFORM_MAGMA_KHR
|
|
# endif
|
|
# else
|
|
# if !defined(VK_USE_PLATFORM_XCB_KHR)
|
|
# define VK_USE_PLATFORM_XCB_KHR
|
|
# endif
|
|
# endif
|
|
#endif
|
|
|
|
#include <vulkan/vulkan.h>
|
|
|
|
#define SKIA_REQUIRED_VULKAN_HEADER_VERSION 17
|
|
#if VK_HEADER_VERSION < SKIA_REQUIRED_VULKAN_HEADER_VERSION
|
|
#error "Vulkan header version is too low"
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|