From 9e12cf7acabb39b939c2457832d8c3f3db779332 Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Thu, 29 Jun 2023 17:22:10 -0700 Subject: [PATCH] [Impeller] Assign missing user to TODO. (flutter/engine#43351) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The linter is failing on this in my unrelated PR for some reason: https://github.com/flutter/engine/pull/43348 ``` ❌ Failures for clang-tidy on /Volumes/Work/s/w/ir/cache/builder/src/flutter/impeller/renderer/backend/metal/vertex_descriptor_mtl.mm: /Volumes/Work/s/w/ir/cache/builder/src/flutter/impeller/renderer/backend/metal/vertex_descriptor_mtl.mm:177:3: error: missing username/bug in TODO [google-readability-todo,-warnings-as-errors] // TODO: its odd that we offset buffers from the max index on metal ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // TODO(chrome-bot): its odd that we offset buffers from the max index on metal Suppressed 1476 warnings (1475 in non-user code, 1 NOLINT). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 1 warning treated as error ``` --- .../impeller/renderer/backend/metal/vertex_descriptor_mtl.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/impeller/renderer/backend/metal/vertex_descriptor_mtl.mm b/engine/src/flutter/impeller/renderer/backend/metal/vertex_descriptor_mtl.mm index b5948830f9..6bac668788 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/vertex_descriptor_mtl.mm +++ b/engine/src/flutter/impeller/renderer/backend/metal/vertex_descriptor_mtl.mm @@ -174,8 +174,8 @@ bool VertexDescriptorMTL::SetStageInputsAndLayout( const std::vector& layouts) { auto descriptor = descriptor_ = [MTLVertexDescriptor vertexDescriptor]; - // TODO: its odd that we offset buffers from the max index on metal - // but not on GLES or Vulkan. We should probably consistently start + // TODO(jonahwilliams): its odd that we offset buffers from the max index on + // metal but not on GLES or Vulkan. We should probably consistently start // these at zero? for (size_t i = 0; i < inputs.size(); i++) { const auto& input = inputs[i];