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

Commit 4af98c3b authored by Yi Kong's avatar Yi Kong
Browse files

Add const specifier to SortLayersByZ comparator

No functionality change.

Test: build
Bug: 37752547
Change-Id: I33ffccbd7bc67031680e3fe7e9263de5402a9cde
parent 1a1d3479
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 {