diff options
| author | 2017-04-20 12:43:28 -0700 | |
|---|---|---|
| committer | 2017-04-25 02:16:19 +0000 | |
| commit | f3ef3eab3aaae979c48ef03d27c5004f357b3d03 (patch) | |
| tree | 03b59278daf7780cade844e79d2034682c511624 /libs/gui/BufferQueueProducer.cpp | |
| parent | d4106302069679813d71b5777bbf1c9e0647948a (diff) | |
gui: Adjust for libui gralloc flags change
Change-Id: I9f73a1753f9e991eb3a7f0a005c3ab240f0a38b4
Bug: b/33350696
Test: Bullhead: booted to launcher, take photo, watch youtube
Diffstat (limited to 'libs/gui/BufferQueueProducer.cpp')
| -rw-r--r-- | libs/gui/BufferQueueProducer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/gui/BufferQueueProducer.cpp b/libs/gui/BufferQueueProducer.cpp index 49552dc855..cddb1fd71b 100644 --- a/libs/gui/BufferQueueProducer.cpp +++ b/libs/gui/BufferQueueProducer.cpp @@ -503,7 +503,7 @@ status_t BufferQueueProducer::dequeueBuffer(int *outSlot, if (returnFlags & BUFFER_NEEDS_REALLOCATION) { BQ_LOGV("dequeueBuffer: allocating a new buffer for slot %d", *outSlot); sp<GraphicBuffer> graphicBuffer = new GraphicBuffer( - width, height, format, BQ_LAYER_COUNT, usage, usage, + width, height, format, BQ_LAYER_COUNT, usage, {mConsumerName.string(), mConsumerName.size()}); status_t error = graphicBuffer->initCheck(); @@ -1342,7 +1342,7 @@ void BufferQueueProducer::allocateBuffers(uint32_t width, uint32_t height, for (size_t i = 0; i < newBufferCount; ++i) { sp<GraphicBuffer> graphicBuffer = new GraphicBuffer( allocWidth, allocHeight, allocFormat, BQ_LAYER_COUNT, - allocUsage, allocUsage, {mConsumerName.string(), mConsumerName.size()}); + allocUsage, {mConsumerName.string(), mConsumerName.size()}); status_t result = graphicBuffer->initCheck(); |