commit | 5c0f68e969e8a5d3c441de5f973d75129a032124 | [log] [tgz] |
---|---|---|
author | Chia-I Wu <olv@google.com> | Sat Sep 22 03:53:11 2018 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Sat Sep 22 03:53:11 2018 +0000 |
tree | 594277b0306a639ddbb3b1c63578ed7f94272c9a | |
parent | fdf4e04c36a8929ede3a91fc22d8022b4733c4da [diff] | |
parent | b4e0a834cd101417a5f2213459de332bc233573b [diff] |
Merge "surfaceflinger: fix sorting in LayerProtoParser"
diff --git a/services/surfaceflinger/layerproto/LayerProtoParser.cpp b/services/surfaceflinger/layerproto/LayerProtoParser.cpp index a5bf9c1..bf12df6 100644 --- a/services/surfaceflinger/layerproto/LayerProtoParser.cpp +++ b/services/surfaceflinger/layerproto/LayerProtoParser.cpp
@@ -31,7 +31,7 @@ int32_t lz = lhs->z; int32_t rz = rhs->z; if (lz != rz) { - return (lz > rz) ? 1 : -1; + return lz < rz; } return lhs->id < rhs->id;