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

Commit 7b4e37a9 authored by Valerie Hau's avatar Valerie Hau
Browse files

Allow for failure in allocation for MapperVts

Bug: 155942443
Test: build, boot
Change-Id: I8698e4cf117d54a6d2ff128cc2e503308188c7e6
parent 2b4caee3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -90,6 +90,9 @@ std::vector<const native_handle_t*> Gralloc::allocate(const BufferDescriptor& de
    mAllocator->allocate(
            descriptor, count,
            [&](const auto& tmpError, const auto& tmpStride, const auto& tmpBuffers) {
                if (allowFailure && tmpError == Error::UNSUPPORTED) {
                    return;
                }
                ASSERT_EQ(Error::NONE, tmpError) << "failed to allocate buffers";
                ASSERT_EQ(count, tmpBuffers.size()) << "invalid buffer array";