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

Commit f2995e72 authored by Yi Kong's avatar Yi Kong Committed by android-build-merger
Browse files

Merge "Add const specifier to SortLayersByZ comparator"

am: 40f0088f

Change-Id: Ia7316e218e388b6f3760374751b32bb992c6441a
parents 21ea7683 40f0088f
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 {