Update Vulkan headers to 1.1 (flutter/engine#6806)

This commit is contained in:
Jason Simmons
2018-11-09 12:01:57 -08:00
committed by GitHub
parent 18f0d35d05
commit 708c487c14
4 changed files with 10 additions and 4 deletions

4
DEPS
View File

@@ -370,9 +370,9 @@ deps = {
'src/third_party/gyp':
Var('chromium_git') + '/external/gyp.git' + '@' + '4801a5331ae62da9769a327f11c4213d32fb0dad',
# Headers for Vulkan 1.0
# Headers for Vulkan 1.1
'src/third_party/vulkan':
Var('github_git') + '/KhronosGroup/Vulkan-Docs.git' + '@' + 'e29c2489e238509c41aeb8c7bce9d669a496344b',
Var('github_git') + '/KhronosGroup/Vulkan-Docs.git' + '@' + 'v1.1.91',
'src/third_party/pkg/when':
Var('dart_git') + '/when.git' + '@' + '0.2.0',

View File

@@ -1903,8 +1903,8 @@ class RepositoryVulkanDirectory extends RepositoryDirectory {
@override
bool shouldRecurse(fs.IoNode entry) {
return entry.name != 'doc' // documentation
&& entry.name != 'out' // documentation
// Flutter only uses the headers in the include directory.
return entry.name == 'include'
&& super.shouldRecurse(entry);
}

View File

@@ -62,6 +62,10 @@ std::string VulkanResultToString(VkResult result) {
return "VK_RESULT_RANGE_SIZE";
case VK_RESULT_MAX_ENUM:
return "VK_RESULT_MAX_ENUM";
case VK_ERROR_INVALID_EXTERNAL_HANDLE:
return "VK_ERROR_INVALID_EXTERNAL_HANDLE";
case VK_ERROR_OUT_OF_POOL_MEMORY:
return "VK_ERROR_OUT_OF_POOL_MEMORY";
#if VK_HEADER_VERSION >= 63
case VK_ERROR_NOT_PERMITTED_EXT:

View File

@@ -4,6 +4,8 @@
#include "flutter/vulkan/vulkan_native_surface_android.h"
#include <android/native_window.h>
#include "third_party/skia/include/gpu/vk/GrVkBackendContext.h"
namespace vulkan {