forked from firka/flutter
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:
@@ -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",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user