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

Commit 5ebf56d0 authored by Dan Albert's avatar Dan Albert Committed by android-build-merger
Browse files

Fix comparator operator() definition. am: a6a52923 am: 3df110fe

am: b21cdfb8

Change-Id: Id0f1912c6b05481f5d720a490cb7044d7accfc26
parents bc91e138 b21cdfb8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1921,8 +1921,8 @@ HWC2On1Adapter::Layer::Layer(Display& display)
    mHwc1Id(0),
    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();
}

+2 −2
Original line number Diff line number Diff line
@@ -131,7 +131,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;
    };

    // The semantics of the fences returned by the device differ between