diff --git a/engine/src/flutter/impeller/compiler/impellerc_main.cc b/engine/src/flutter/impeller/compiler/impellerc_main.cc index f9ecc73d6c..a0535a2882 100644 --- a/engine/src/flutter/impeller/compiler/impellerc_main.cc +++ b/engine/src/flutter/impeller/compiler/impellerc_main.cc @@ -263,9 +263,6 @@ bool Main(const fml::CommandLine& command_line) { // Create at least one compiler to output the SL file, reflection data, and a // depfile. - // TODO(dnfield): This seems off. We should more explicitly handle how we - // generate reflection and depfile data for the runtime stage case. - // https://github.com/flutter/flutter/issues/140841 SourceOptions options = switches.CreateSourceOptions(); diff --git a/engine/src/flutter/impeller/entity/entity_pass.cc b/engine/src/flutter/impeller/entity/entity_pass.cc index 22a6aafeb6..bd1e070836 100644 --- a/engine/src/flutter/impeller/entity/entity_pass.cc +++ b/engine/src/flutter/impeller/entity/entity_pass.cc @@ -302,8 +302,7 @@ static EntityPassTarget CreateRenderTarget(ContentContext& renderer, /// changed for the lifetime of the textures. if (context->GetBackendType() == Context::BackendType::kOpenGLES) { - // TODO(https://github.com/flutter/flutter/issues/141732): Implement mip map - // generation on opengles. + // TODO(141732): Implement mip map generation on opengles. mip_count = 1; } diff --git a/engine/src/flutter/impeller/geometry/rect.h b/engine/src/flutter/impeller/geometry/rect.h index 328a911013..289f879e78 100644 --- a/engine/src/flutter/impeller/geometry/rect.h +++ b/engine/src/flutter/impeller/geometry/rect.h @@ -364,8 +364,7 @@ struct TRect { /// @brief Get the area of the rectangle, equivalent to |GetSize().Area()| [[nodiscard]] constexpr T Area() const { - // TODO(flutter/flutter#141710) - Use saturated math to avoid overflow - // https://github.com/flutter/flutter/issues/141710 + // TODO(141710): Use saturated math to avoid overflow. return IsEmpty() ? 0 : (right_ - left_) * (bottom_ - top_); } diff --git a/engine/src/flutter/impeller/golden_tests/golden_playground_test.h b/engine/src/flutter/impeller/golden_tests/golden_playground_test.h index 8b480b29c6..b38bd184c2 100644 --- a/engine/src/flutter/impeller/golden_tests/golden_playground_test.h +++ b/engine/src/flutter/impeller/golden_tests/golden_playground_test.h @@ -78,7 +78,6 @@ class GoldenPlaygroundTest [[nodiscard]] fml::Status SetCapabilities( const std::shared_ptr& capabilities); - /// TODO(https://github.com/flutter/flutter/issues/139950): Remove this. /// Returns true if `OpenPlaygroundHere` will actually render anything. bool WillRenderSomething() const { return true; } diff --git a/engine/src/flutter/impeller/golden_tests/golden_playground_test_mac.cc b/engine/src/flutter/impeller/golden_tests/golden_playground_test_mac.cc index 75a1556184..0803f42f22 100644 --- a/engine/src/flutter/impeller/golden_tests/golden_playground_test_mac.cc +++ b/engine/src/flutter/impeller/golden_tests/golden_playground_test_mac.cc @@ -44,16 +44,16 @@ const std::unique_ptr& GetSharedVulkanPlayground( static absl::NoDestructor> vulkan_validation_playground( MakeVulkanPlayground(/*enable_validations=*/true)); - // TODO(https://github.com/flutter/flutter/issues/142237): This can be - // removed when the thread local storage is removed. + // TODO(142237): This can be removed when the thread local storage is + // removed. static fml::ScopedCleanupClosure context_cleanup( [&] { (*vulkan_validation_playground)->GetContext()->Shutdown(); }); return *vulkan_validation_playground; } else { static absl::NoDestructor> vulkan_playground(MakeVulkanPlayground(/*enable_validations=*/false)); - // TODO(https://github.com/flutter/flutter/issues/142237): This can be - // removed when the thread local storage is removed. + // TODO(142237): This can be removed when the thread local storage is + // removed. static fml::ScopedCleanupClosure context_cleanup( [&] { (*vulkan_playground)->GetContext()->Shutdown(); }); return *vulkan_playground; diff --git a/engine/src/flutter/impeller/golden_tests/vulkan_screenshotter.mm b/engine/src/flutter/impeller/golden_tests/vulkan_screenshotter.mm index 04792b15f0..2b04a497cb 100644 --- a/engine/src/flutter/impeller/golden_tests/vulkan_screenshotter.mm +++ b/engine/src/flutter/impeller/golden_tests/vulkan_screenshotter.mm @@ -76,8 +76,7 @@ std::unique_ptr ReadTexture( CGImagePtr image(CGBitmapContextCreateImage(context.get()), &CGImageRelease); FML_CHECK(image); - // TODO(https://github.com/flutter/flutter/issues/142641): Perform the flip at - // the blit stage to avoid this slow copy. + // TODO(142641): Perform the flip at the blit stage to avoid this slow copy. if (texture->GetYCoordScale() == -1) { CGContextPtr flipped_context( CGBitmapContextCreate( diff --git a/engine/src/flutter/impeller/playground/playground.h b/engine/src/flutter/impeller/playground/playground.h index 64e8bbefb5..339ee8cba0 100644 --- a/engine/src/flutter/impeller/playground/playground.h +++ b/engine/src/flutter/impeller/playground/playground.h @@ -110,7 +110,6 @@ class Playground { [[nodiscard]] fml::Status SetCapabilities( const std::shared_ptr& capabilities); - /// TODO(https://github.com/flutter/flutter/issues/139950): Remove this. /// Returns true if `OpenPlaygroundHere` will actually render anything. bool WillRenderSomething() const; diff --git a/engine/src/flutter/impeller/renderer/backend/gles/blit_command_gles.cc b/engine/src/flutter/impeller/renderer/backend/gles/blit_command_gles.cc index b3b6d84423..c5ea94797b 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/blit_command_gles.cc +++ b/engine/src/flutter/impeller/renderer/backend/gles/blit_command_gles.cc @@ -72,7 +72,7 @@ bool BlitCopyTextureToTextureCommandGLES::Encode( // glBlitFramebuffer is a GLES3 proc. Since we target GLES2, we need to // emulate the blit when it's not available in the driver. if (!gl.BlitFramebuffer.IsAvailable()) { - // TODO(bdero): Emulate the blit using a raster draw call here. + // TODO(135818): Emulate the blit using a raster draw call here. FML_LOG(ERROR) << "Texture blit fallback not implemented yet for GLES2."; return false; } diff --git a/engine/src/flutter/impeller/renderer/backend/gles/pipeline_library_gles.cc b/engine/src/flutter/impeller/renderer/backend/gles/pipeline_library_gles.cc index 5ab1ee5426..b3c6bc6c08 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/pipeline_library_gles.cc +++ b/engine/src/flutter/impeller/renderer/backend/gles/pipeline_library_gles.cc @@ -303,7 +303,6 @@ PipelineFuture PipelineLibraryGLES::GetPipeline( bool async) { auto promise = std::make_shared< std::promise>>>(); - // TODO(dnfield): implement compute for GLES. promise->set_value(nullptr); return {descriptor, promise->get_future()}; } diff --git a/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.h index 13f6cb5589..ec0f46a23f 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.h @@ -22,8 +22,7 @@ bool GLErrorIsFatal(GLenum value); struct AutoErrorCheck { const PFNGLGETERRORPROC error_fn; - // TODO(matanlurey) Change to string_view. - // https://github.com/flutter/flutter/issues/135922 + // TODO(135922) Change to string_view. const char* name; AutoErrorCheck(PFNGLGETERRORPROC error, const char* name) @@ -50,12 +49,10 @@ template struct GLProc { using GLFunctionType = T; - // TODO(matanlurey) Change to string_view. - // https://github.com/flutter/flutter/issues/135922 - //---------------------------------------------------------------------------- /// The name of the GL function. /// + // TODO(135922) Change to string_view. const char* name = nullptr; //---------------------------------------------------------------------------- diff --git a/engine/src/flutter/impeller/renderer/backend/gles/render_pass_gles.cc b/engine/src/flutter/impeller/renderer/backend/gles/render_pass_gles.cc index 1063778f1c..1625dc03ac 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/render_pass_gles.cc +++ b/engine/src/flutter/impeller/renderer/backend/gles/render_pass_gles.cc @@ -476,9 +476,9 @@ struct RenderPassData { if (gl.DiscardFramebufferEXT.IsAvailable()) { std::vector attachments; - // TODO(jonahwilliams): discarding stencil or depth on the default fbo - // causes Angle to discard the entire render target. Until we know the - // reason, default to storing. + // TODO(130048): discarding stencil or depth on the default fbo causes Angle + // to discard the entire render target. Until we know the reason, default to + // storing. bool angle_safe = gl.GetCapabilities()->IsANGLE() ? !is_default_fbo : true; if (pass_data.discard_color_attachment) { diff --git a/engine/src/flutter/impeller/renderer/backend/metal/compute_pass_mtl.mm b/engine/src/flutter/impeller/renderer/backend/metal/compute_pass_mtl.mm index f05825c139..b5d29b3770 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/compute_pass_mtl.mm +++ b/engine/src/flutter/impeller/renderer/backend/metal/compute_pass_mtl.mm @@ -127,9 +127,8 @@ fml::Status ComputePassMTL::Compute(const ISize& grid_size) { return fml::Status(fml::StatusCode::kUnknown, "Invalid grid size for compute command."); } - // TODO(dnfield): use feature detection to support non-uniform threadgroup - // sizes. - // https://github.com/flutter/flutter/issues/110619 + + // Threadgroup sizes must be uniform. auto width = grid_size.width; auto height = grid_size.height; diff --git a/engine/src/flutter/impeller/renderer/backend/metal/pipeline_library_mtl.mm b/engine/src/flutter/impeller/renderer/backend/metal/pipeline_library_mtl.mm index 059862cbdc..ffa6f36059 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/pipeline_library_mtl.mm +++ b/engine/src/flutter/impeller/renderer/backend/metal/pipeline_library_mtl.mm @@ -90,7 +90,6 @@ static MTLComputePipelineDescriptor* GetMTLComputePipelineDescriptor( return descriptor; } -// TODO(csg): Make PipelineDescriptor a struct and move this to formats_mtl. static id CreateDepthStencilDescriptor( const PipelineDescriptor& desc, id device) { diff --git a/engine/src/flutter/impeller/renderer/backend/metal/render_pass_mtl.mm b/engine/src/flutter/impeller/renderer/backend/metal/render_pass_mtl.mm index a97aff9ad0..ca1b915d2c 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/render_pass_mtl.mm +++ b/engine/src/flutter/impeller/renderer/backend/metal/render_pass_mtl.mm @@ -100,7 +100,6 @@ static bool ConfigureStencilAttachment( return true; } -// TODO(csg): Move this to formats_mtl.h static MTLRenderPassDescriptor* ToMTLRenderPassDescriptor( const RenderTarget& desc) { auto result = [MTLRenderPassDescriptor renderPassDescriptor]; diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/capabilities_vk.cc b/engine/src/flutter/impeller/renderer/backend/vulkan/capabilities_vk.cc index 7099982696..ad72a03fde 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/capabilities_vk.cc +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/capabilities_vk.cc @@ -507,8 +507,7 @@ bool CapabilitiesVK::SetPhysicalDevice( { // Query texture support. - // TODO(jonahwilliams): - // https://github.com/flutter/flutter/issues/129784 + // TODO(129784): Add a capability check for expected memory types. vk::PhysicalDeviceMemoryProperties memory_properties; device.getMemoryProperties(&memory_properties); diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/context_vk.cc b/engine/src/flutter/impeller/renderer/backend/vulkan/context_vk.cc index d73975acaf..0a0973ba0a 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/context_vk.cc +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/context_vk.cc @@ -42,7 +42,6 @@ VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE namespace impeller { -// TODO(csg): Fix this after caps are reworked. static bool gHasValidationLayers = false; bool HasValidationLayers() { diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/swapchain/swapchain_vk.cc b/engine/src/flutter/impeller/renderer/backend/vulkan/swapchain/swapchain_vk.cc index ce1951de85..279f2bf4cc 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/swapchain/swapchain_vk.cc +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/swapchain/swapchain_vk.cc @@ -55,8 +55,7 @@ std::shared_ptr SwapchainVK::Create( return nullptr; } - // TODO(148139): https://github.com/flutter/flutter/issues/148139 sync issues - // on present. + // TODO(148139): Fix synchronization issues on present. if constexpr (false) { // TODO(147533): AHB swapchains on emulators are not functional. const auto emulator = diff --git a/engine/src/flutter/impeller/typographer/backends/skia/text_frame_skia.cc b/engine/src/flutter/impeller/typographer/backends/skia/text_frame_skia.cc index 982fdd7017..55f8ad9084 100644 --- a/engine/src/flutter/impeller/typographer/backends/skia/text_frame_skia.cc +++ b/engine/src/flutter/impeller/typographer/backends/skia/text_frame_skia.cc @@ -63,8 +63,8 @@ std::shared_ptr MakeTextFrameFromTextBlobSkia( bool has_color = false; std::vector runs; for (SkTextBlobRunIterator run(blob.get()); !run.done(); run.next()) { - // TODO(jonahwilliams): ask Skia for a public API to look this up. - // https://github.com/flutter/flutter/issues/112005 + // TODO(112005): Ask Skia for a public API to look this up. This is using a + // private API today. SkStrikeSpec strikeSpec = SkStrikeSpec::MakeWithNoDevice(run.font()); SkBulkGlyphMetricsAndPaths paths{strikeSpec}; AxisAlignment alignment = AxisAlignment::kNone; diff --git a/engine/src/flutter/impeller/typographer/backends/skia/typographer_context_skia.cc b/engine/src/flutter/impeller/typographer/backends/skia/typographer_context_skia.cc index c743d00307..c25b83012d 100644 --- a/engine/src/flutter/impeller/typographer/backends/skia/typographer_context_skia.cc +++ b/engine/src/flutter/impeller/typographer/backends/skia/typographer_context_skia.cc @@ -44,9 +44,6 @@ namespace impeller { -// TODO(bdero): We might be able to remove this per-glyph padding if we fix -// the underlying causes of the overlap. -// https://github.com/flutter/flutter/issues/114563 constexpr auto kPadding = 2; namespace {