From 39a0c5436894b42585d8d3f1d09e5052bda9b3a7 Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Wed, 24 May 2023 19:45:47 -0700 Subject: [PATCH] [Impeller] Remove redundant paint overload --- impeller/aiks/paint.cc | 9 +-------- impeller/aiks/paint.h | 5 +---- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/impeller/aiks/paint.cc b/impeller/aiks/paint.cc index fa0dc47eef353..2077c00829802 100644 --- a/impeller/aiks/paint.cc +++ b/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/impeller/aiks/paint.h b/impeller/aiks/paint.h index 077b5264c022e..d14fda6a8fc84 100644 --- a/impeller/aiks/paint.h +++ b/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;