Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40f0088f authored by Yi Kong's avatar Yi Kong Committed by Gerrit Code Review
Browse files

Merge "Add const specifier to SortLayersByZ comparator"

parents f8af02ff 4af98c3b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1993,9 +1993,8 @@ HWC2On1Adapter::Layer::Layer(Display& display)
    mHasUnsupportedDataspace(false),
    mHasUnsupportedPlaneAlpha(false) {}

bool HWC2On1Adapter::SortLayersByZ::operator()(
        const std::shared_ptr<Layer>& lhs, const std::shared_ptr<Layer>& rhs)
{
bool HWC2On1Adapter::SortLayersByZ::operator()(const std::shared_ptr<Layer>& lhs,
                                               const std::shared_ptr<Layer>& rhs) const {
    return lhs->getZ() < rhs->getZ();
}

+1 −1
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ private:
    class SortLayersByZ {
        public:
            bool operator()(const std::shared_ptr<Layer>& lhs,
                    const std::shared_ptr<Layer>& rhs);
                    const std::shared_ptr<Layer>& rhs) const;
    };

    class DisplayContentsDeleter {