From afb7ec7a4018744e83db66948e5a09c6a6f065af Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Thu, 7 Dec 2017 12:48:30 -0500 Subject: Revert "Revert "Add define to use customize vulkan header."" This reverts commit b351817588baf94ac725e35f10ee1d5ff8178834. Reason for revert: Relanding with android fixes Original change's description: > Revert "Add define to use customize vulkan header." > > This reverts commit a492eb0e1f08311bfa47f46c660144e7bc8a6c0e. > > Reason for revert: Breaking Android roll (b/c builds tools?) > > Original change's description: > > Add define to use customize vulkan header. > > > > Bug: skia: > > Change-Id: Ia87c81a54603a02b2f8f51a735bf173a49afe6c7 > > Reviewed-on: https://skia-review.googlesource.com/81121 > > Commit-Queue: Greg Daniel > > Reviewed-by: Brian Salomon > > TBR=egdaniel@google.com,bsalomon@google.com > > Change-Id: I80a685bf88af909865f274ffc61686be57e8c313 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Bug: skia: > Reviewed-on: https://skia-review.googlesource.com/81740 > Reviewed-by: Brian Salomon > Commit-Queue: Brian Salomon TBR=egdaniel@google.com,bsalomon@google.com Change-Id: Ia701e884bfa3799dc73002f892feb2ecafe9da12 Reviewed-on: https://skia-review.googlesource.com/81742 Reviewed-by: Derek Sollenberger Reviewed-by: Greg Daniel Commit-Queue: Greg Daniel --- .../android/vulkan/Skia_Vulkan_Android.h | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 platform_tools/android/vulkan/Skia_Vulkan_Android.h (limited to 'platform_tools') diff --git a/platform_tools/android/vulkan/Skia_Vulkan_Android.h b/platform_tools/android/vulkan/Skia_Vulkan_Android.h new file mode 100644 index 0000000000..b0749810f0 --- /dev/null +++ b/platform_tools/android/vulkan/Skia_Vulkan_Android.h @@ -0,0 +1,23 @@ +/* + * Copyright 2017 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef Skia_Vulkan_Android_DEFINED +#define Skia_Vulkan_Android_DEFINED + +#if !defined(SK_BUILD_FOR_ANDROID) +#error "Must be building for android to use this header" +#endif +#if !defined(VK_USE_PLATFORM_ANDROID_KHR) +# define VK_USE_PLATFORM_ANDROID_KHR +#endif + +#include + +#endif + + + -- cgit v1.2.3