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

Commit 6982d1ae authored by Alistair Delva's avatar Alistair Delva Committed by android-build-merger
Browse files

Merge "Make gralloc0 pass-through mapper handle layers"

am: b756e23e

Change-Id: I9f5948a862ead71ed745cf1cfca8df2088b3ab59
parents a53b19fb b756e23e
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -37,6 +37,10 @@ class Gralloc0HalImpl : public V2_0::passthrough::detail::Gralloc0HalImpl<Hal> {
     Error validateBufferSize(const native_handle_t* bufferHandle,
     Error validateBufferSize(const native_handle_t* bufferHandle,
                              const IMapper::BufferDescriptorInfo& descriptorInfo,
                              const IMapper::BufferDescriptorInfo& descriptorInfo,
                              uint32_t stride) override {
                              uint32_t stride) override {
         if (descriptorInfo.layerCount != 1) {
             return Error::BAD_VALUE;
         }

         if (!mModule->validateBufferSize) {
         if (!mModule->validateBufferSize) {
             return Error::NONE;
             return Error::NONE;
         }
         }