diff --git a/engine/src/flutter/tools/gn b/engine/src/flutter/tools/gn index ca48be588f..4e293acb90 100755 --- a/engine/src/flutter/tools/gn +++ b/engine/src/flutter/tools/gn @@ -162,7 +162,7 @@ def to_gn_args(args): gn_args['shell_enable_vulkan'] = True # Configure Skia for Vulkan support. gn_args['skia_use_vulkan'] = True - gn_args['skia_vulkan_headers'] = "//third_party/vulkan/src" + gn_args['skia_vulkan_header'] = "flutter/vulkan/skia_vulkan_header.h" # We should not need a special case for x86, but this seems to introduce text relocations # even with -fPIC everywhere. diff --git a/engine/src/flutter/vulkan/skia_vulkan_header.h b/engine/src/flutter/vulkan/skia_vulkan_header.h new file mode 100644 index 0000000000..e3f36ff0f9 --- /dev/null +++ b/engine/src/flutter/vulkan/skia_vulkan_header.h @@ -0,0 +1,11 @@ +// Copyright 2017 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifdef __ANDROID__ +#ifndef VK_USE_PLATFORM_ANDROID_KHR +#define VK_USE_PLATFORM_ANDROID_KHR 1 +#endif // VK_USE_PLATFORM_ANDROID_KHR +#endif // __ANDROID__ + +#include "third_party/vulkan/src/vulkan/vulkan.h"