commit | 221869c7979676ebd0e875b1a672a2ab5903e250 | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Thu May 04 00:23:41 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Thu May 04 00:23:41 2017 +0000 |
tree | c93f5374593d80576d8f39baf232f3504a876ca9 | |
parent | 906a243b4b5ab613024d6b731fc3fb806ddbcdf0 [diff] | |
parent | f2995e72f47e2d5e279955aacae59547273c6cea [diff] |
Merge "Add const specifier to SortLayersByZ comparator" am: 40f0088f45 am: f2995e72f4 Change-Id: I0eeb4aa44ae0ee2072da9b6b5cad173f7009d9b0
diff --git a/services/surfaceflinger/DisplayHardware/HWC2On1Adapter.cpp b/services/surfaceflinger/DisplayHardware/HWC2On1Adapter.cpp index 617ea9f..7f48289 100644 --- a/services/surfaceflinger/DisplayHardware/HWC2On1Adapter.cpp +++ b/services/surfaceflinger/DisplayHardware/HWC2On1Adapter.cpp
@@ -1993,9 +1993,8 @@ 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(); }
diff --git a/services/surfaceflinger/DisplayHardware/HWC2On1Adapter.h b/services/surfaceflinger/DisplayHardware/HWC2On1Adapter.h index 962361e..45922af 100644 --- a/services/surfaceflinger/DisplayHardware/HWC2On1Adapter.h +++ b/services/surfaceflinger/DisplayHardware/HWC2On1Adapter.h
@@ -123,7 +123,7 @@ 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 {