Skip to content

Commit

Permalink
Fix lint errors in vulkan directory
Browse files Browse the repository at this point in the history
  • Loading branch information
gspencergoog committed Aug 3, 2020
1 parent cb8dfdb commit 791123f
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
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
@@ -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
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 791123f

Please sign in to comment.