Fix comparator operator() definition. am: a6a529236e

am: 3df110feae

Change-Id: Ide011a450b7d7154904cc80da43e402725ad26ce
This commit is contained in:
Dan Albert
2019-01-13 01:52:36 -08:00
committed by android-build-merger
2 changed files with 4 additions and 4 deletions

View File

@@ -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();
}

View File

@@ -130,8 +130,8 @@ private:
class SortLayersByZ {
public:
bool operator()(const std::shared_ptr<Layer>& lhs,
const std::shared_ptr<Layer>& rhs);
bool operator()(const std::shared_ptr<Layer>& lhs,
const std::shared_ptr<Layer>& rhs) const;
};
// The semantics of the fences returned by the device differ between