diff --git a/engine/src/flutter/impeller/aiks/paint.cc b/engine/src/flutter/impeller/aiks/paint.cc index fa0dc47eef..2077c00829 100644 --- a/engine/src/flutter/impeller/aiks/paint.cc +++ b/engine/src/flutter/impeller/aiks/paint.cc @@ -27,19 +27,12 @@ std::shared_ptr Paint::CreateContentsForEntity(const Path& path, } std::shared_ptr Paint::CreateContentsForGeometry( - std::unique_ptr geometry) const { + std::shared_ptr geometry) const { auto contents = color_source.GetContents(*this); contents->SetGeometry(std::move(geometry)); return contents; } -std::shared_ptr Paint::CreateContentsForGeometry( - const std::shared_ptr& geometry) const { - auto contents = color_source.GetContents(*this); - contents->SetGeometry(geometry); - return contents; -} - std::shared_ptr Paint::WithFilters( std::shared_ptr input, std::optional is_solid_color) const { diff --git a/engine/src/flutter/impeller/aiks/paint.h b/engine/src/flutter/impeller/aiks/paint.h index 077b5264c0..d14fda6a8f 100644 --- a/engine/src/flutter/impeller/aiks/paint.h +++ b/engine/src/flutter/impeller/aiks/paint.h @@ -94,10 +94,7 @@ struct Paint { bool cover = false) const; std::shared_ptr CreateContentsForGeometry( - std::unique_ptr geometry) const; - - std::shared_ptr CreateContentsForGeometry( - const std::shared_ptr& geometry) const; + std::shared_ptr geometry) const; /// @brief Whether this paint has a color filter that can apply opacity bool HasColorFilter() const;