Fix lint errors in vulkan directory. (flutter/engine#19991)

This fixes lint errors in the vulkan directory. This might be a little more controversial, but the reason that the lints were failing here was because of an include path problem that I think I solved.
This commit is contained in:
Greg Spencer
2020-08-10 09:50:28 -07:00
committed by GitHub
parent 0b8e18c6f4
commit 3a0464eb42
14 changed files with 10 additions and 18 deletions

View File

@@ -11,7 +11,10 @@ config("vulkan_config") {
include_dirs += [ "$fuchsia_sdk_root/vulkan/include" ]
defines += [ "VK_USE_PLATFORM_FUCHSIA=1" ]
} else {
include_dirs += [ "//third_party/vulkan/src" ]
include_dirs += [
"//third_party/vulkan/src",
"//third_party/vulkan/include",
]
}
}

View File

@@ -1,7 +1,6 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// FLUTTER_NOLINT
#include "vulkan_application.h"
@@ -15,7 +14,7 @@
namespace vulkan {
VulkanApplication::VulkanApplication(
VulkanProcTable& p_vk,
VulkanProcTable& p_vk, // NOLINT
const std::string& application_name,
std::vector<std::string> enabled_extensions,
uint32_t application_version,

View File

@@ -24,7 +24,7 @@ class VulkanProcTable;
/// create a VkInstance (with debug reporting optionally enabled).
class VulkanApplication {
public:
VulkanApplication(VulkanProcTable& vk,
VulkanApplication(VulkanProcTable& vk, // NOLINT
const std::string& application_name,
std::vector<std::string> enabled_extensions,
uint32_t application_version = VK_MAKE_VERSION(1, 0, 0),

View File

@@ -1,7 +1,6 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// FLUTTER_NOLINT
#include "vulkan_backbuffer.h"

View File

@@ -1,7 +1,6 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// FLUTTER_NOLINT
#include "vulkan_command_buffer.h"

View File

@@ -1,7 +1,6 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// FLUTTER_NOLINT
#include "vulkan_debug_report.h"
@@ -192,8 +191,9 @@ VulkanDebugReport::VulkanDebugReport(
}
VkDebugReportFlagsEXT flags = kVulkanErrorFlags;
if (ValidationLayerInfoMessagesEnabled())
if (ValidationLayerInfoMessagesEnabled()) {
flags |= kVulkanInfoFlags;
}
const VkDebugReportCallbackCreateInfoEXT create_info = {
.sType = VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT,
.pNext = nullptr,

View File

@@ -1,7 +1,6 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// FLUTTER_NOLINT
#include "vulkan_device.h"

View File

@@ -1,7 +1,6 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// FLUTTER_NOLINT
#include "vulkan_handle.h"

View File

@@ -1,7 +1,6 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// FLUTTER_NOLINT
#include "vulkan_image.h"

View File

@@ -1,7 +1,6 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// FLUTTER_NOLINT
#include "vulkan_interface.h"

View File

@@ -1,7 +1,6 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// FLUTTER_NOLINT
#include "vulkan_native_surface.h"

View File

@@ -1,7 +1,6 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// FLUTTER_NOLINT
#include "vulkan_proc_table.h"

View File

@@ -1,7 +1,6 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// FLUTTER_NOLINT
#include "vulkan_surface.h"
@@ -11,8 +10,8 @@
namespace vulkan {
VulkanSurface::VulkanSurface(
VulkanProcTable& p_vk,
VulkanApplication& application,
VulkanProcTable& p_vk, // NOLINT
VulkanApplication& application, // NOLINT
std::unique_ptr<VulkanNativeSurface> native_surface)
: vk(p_vk),
application_(application),

View File

@@ -1,7 +1,6 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// FLUTTER_NOLINT
#include "vulkan_utilities.h"
#include "flutter/fml/build_config.h"