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

Commit 3891cbe7 authored by Ady Abraham's avatar Ady Abraham
Browse files

SF: unsupported getLayerGenericMetadataKeys is not an error

On devices with composer < 2.4 getLayerGenericMetadataKeys is not
supported, and there should not be an error logged on boot.

Test: boot
Bug: 181269159
Change-Id: I82d9575b8a20dcb05596e2a6df4e1a9d101a6503
parent 4fd10d8d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -964,8 +964,10 @@ void HWComposer::loadLayerMetadataSupport() {
    std::vector<Hwc2::IComposerClient::LayerGenericMetadataKey> supportedMetadataKeyInfo;
    const auto error = mComposer->getLayerGenericMetadataKeys(&supportedMetadataKeyInfo);
    if (error != hardware::graphics::composer::V2_4::Error::NONE) {
        if (error != hardware::graphics::composer::V2_4::Error::UNSUPPORTED) {
            ALOGE("%s: %s failed: %s (%d)", __FUNCTION__, "getLayerGenericMetadataKeys",
                  toString(error).c_str(), static_cast<int32_t>(error));
        }
        return;
    }