mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Fix comparator operator() definition. am: a6a529236e am: 3df110feae
am: b21cdfb866
Change-Id: Id0f1912c6b05481f5d720a490cb7044d7accfc26
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user