From d21cfbb5142174ce3deda859429000c83082f0f5 Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Mon, 29 May 2023 15:33:31 -0700 Subject: [PATCH] Fix lint failure in ImageDecoderImpeller (flutter/engine#42402) This lint started failing on some builders a few hours ago. https://ci.chromium.org/p/flutter/builders/prod/Linux%20Host%20clang-tidy --- engine/src/flutter/lib/ui/painting/image_decoder_impeller.cc | 2 +- engine/src/flutter/lib/ui/painting/image_decoder_impeller.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/lib/ui/painting/image_decoder_impeller.cc b/engine/src/flutter/lib/ui/painting/image_decoder_impeller.cc index 50e3d19a0b..1da53feb0c 100644 --- a/engine/src/flutter/lib/ui/painting/image_decoder_impeller.cc +++ b/engine/src/flutter/lib/ui/painting/image_decoder_impeller.cc @@ -318,7 +318,7 @@ ImageDecoderImpeller::UploadTextureToPrivate( const std::shared_ptr& context, const std::shared_ptr& buffer, const SkImageInfo& image_info, - std::shared_ptr bitmap, + const std::shared_ptr& bitmap, const std::shared_ptr& gpu_disabled_switch) { TRACE_EVENT0("impeller", __FUNCTION__); if (!context) { diff --git a/engine/src/flutter/lib/ui/painting/image_decoder_impeller.h b/engine/src/flutter/lib/ui/painting/image_decoder_impeller.h index a9c1af42de..595acd652f 100644 --- a/engine/src/flutter/lib/ui/painting/image_decoder_impeller.h +++ b/engine/src/flutter/lib/ui/painting/image_decoder_impeller.h @@ -80,7 +80,7 @@ class ImageDecoderImpeller final : public ImageDecoder { const std::shared_ptr& context, const std::shared_ptr& buffer, const SkImageInfo& image_info, - std::shared_ptr bitmap, + const std::shared_ptr& bitmap, const std::shared_ptr& gpu_disabled_switch); /// @brief Create a host visible texture from the provided bitmap.