Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0aff9d9 authored by Chia-I Wu's avatar Chia-I Wu
Browse files

surfaceflinger: silence getDisplayIdentificationData error

Silence

  E HWComposer: getDisplayIdentificationData failed for display 0

on unsupported devices.

Test: no error logged
Change-Id: I5fe26258f12f4e2c7d746de1712f6d4b330fbf00
parent 11d10610
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -103,7 +103,9 @@ bool HWComposer::getDisplayIdentificationData(hwc2_display_t hwcDisplayId, uint8
                                              DisplayIdentificationData* outData) const {
                                              DisplayIdentificationData* outData) const {
    const auto error = mHwcDevice->getDisplayIdentificationData(hwcDisplayId, outPort, outData);
    const auto error = mHwcDevice->getDisplayIdentificationData(hwcDisplayId, outPort, outData);
    if (error != HWC2::Error::None) {
    if (error != HWC2::Error::None) {
        if (error != HWC2::Error::Unsupported) {
            LOG_HWC_DISPLAY_ERROR(hwcDisplayId, to_string(error).c_str());
            LOG_HWC_DISPLAY_ERROR(hwcDisplayId, to_string(error).c_str());
        }
        return false;
        return false;
    }
    }
    return true;
    return true;