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

Commit 5b2ae910 authored by Robert Carr's avatar Robert Carr
Browse files

BLASTBufferQueue: Pass same default usage as BufferQueueLayer

The default usage value for BufferQueueLayer is COMPOSER not
FRAMEBUFFER (see Layer::getEffectiveUsage). It's unclear exactly
what effect this was having.

Bug: 152501005
Test: Existing tests pass.
Change-Id: I33adc9c39c57b11c71a53e936448c9052bd83155
parent 5ea5df56
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@ BLASTBufferQueue::BLASTBufferQueue(const sp<SurfaceControl>& surface, int width,
        mProducer->setMaxDequeuedBufferCount(2);
    }
    mBufferItemConsumer =
            new BLASTBufferItemConsumer(mConsumer, AHARDWAREBUFFER_USAGE_GPU_FRAMEBUFFER, 1, true);
        new BLASTBufferItemConsumer(mConsumer, GraphicBuffer::USAGE_HW_COMPOSER, 1, true);
    static int32_t id = 0;
    auto name = std::string("BLAST Consumer") + std::to_string(id);
    id++;