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

Commit 8356e151 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "libui: Always allocate buffers from gralloc" into gingerbread

parents 311da222 5eb9e6f1
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -91,11 +91,7 @@ status_t GraphicBufferAllocator::alloc(uint32_t w, uint32_t h, PixelFormat forma
    // we have a h/w allocator and h/w buffer is requested
    status_t err; 
    
    if (usage & GRALLOC_USAGE_HW_MASK) {
    err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride);
    } else {
        err = sw_gralloc_handle_t::alloc(w, h, format, usage, handle, stride);
    }

    LOGW_IF(err, "alloc(%u, %u, %d, %08x, ...) failed %d (%s)",
            w, h, format, usage, err, strerror(-err));