Fix comparator operator() definition.
Comparators should be const. The libc++ update checks for this and rejects non-const comparators. Test: m Bug: None Change-Id: If2f76c020943b5bcb55803f0742990c9965afd6e
This commit is contained in:
parent
15213e4175
commit
a6a529236e
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue