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.