commit | 0e9b20c2d1fae2a01dc50df98be04cf0f5d8eeff | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Tue Feb 14 20:06:55 2017 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Tue Feb 14 20:06:55 2017 +0000 |
tree | 5bf85a75d92daa22dcc107afb67e1a3b456232d4 | |
parent | b9d9e30bc769add081b3deee1d293381df674fdb [diff] | |
parent | 7382ed7f54a253b958a9d24f6d7eff2a94f47660 [diff] |
Merge "Remove magic number usage in SurfaceFlinger"
diff --git a/services/surfaceflinger/DisplayHardware/HWC2On1Adapter.cpp b/services/surfaceflinger/DisplayHardware/HWC2On1Adapter.cpp index 2b603cc..5dcd6e3 100644 --- a/services/surfaceflinger/DisplayHardware/HWC2On1Adapter.cpp +++ b/services/surfaceflinger/DisplayHardware/HWC2On1Adapter.cpp
@@ -2466,7 +2466,7 @@ } } - if (mHwc1DisplayMap.count(0) == 0) { + if (mHwc1DisplayMap.count(HWC_DISPLAY_PRIMARY) == 0) { ALOGE("prepareAllDisplays: Unable to find primary HWC1 display"); return false; }