Skip to content

Commit

Permalink
Fix lint errors in vulkan directory. (flutter#19991)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gspencergoog authored Aug 10, 2020
1 parent 33a6881 commit a4e7f37
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 18 deletions.
5 changes: 4 additions & 1 deletion vulkan/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
}
}

Expand Down
3 changes: 1 addition & 2 deletions vulkan/vulkan_application.cc
Original file line number Diff line number Diff line change
@@ -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"

Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion vulkan/vulkan_application.h
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
1 change: 0 additions & 1 deletion vulkan/vulkan_backbuffer.cc
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
1 change: 0 additions & 1 deletion vulkan/vulkan_command_buffer.cc
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
4 changes: 2 additions & 2 deletions vulkan/vulkan_debug_report.cc
Original file line number Diff line number Diff line change
@@ -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"

Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion vulkan/vulkan_device.cc
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
1 change: 0 additions & 1 deletion vulkan/vulkan_handle.cc
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
1 change: 0 additions & 1 deletion vulkan/vulkan_image.cc
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
1 change: 0 additions & 1 deletion vulkan/vulkan_interface.cc
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
1 change: 0 additions & 1 deletion vulkan/vulkan_native_surface.cc
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
1 change: 0 additions & 1 deletion vulkan/vulkan_proc_table.cc
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
5 changes: 2 additions & 3 deletions vulkan/vulkan_surface.cc
Original file line number Diff line number Diff line change
@@ -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"

Expand All @@ -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),
Expand Down
1 change: 0 additions & 1 deletion vulkan/vulkan_utilities.cc
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit a4e7f37

Please sign in to comment.