diff options
| author | 2017-04-25 04:20:13 +0000 | |
|---|---|---|
| committer | 2017-04-25 04:20:13 +0000 | |
| commit | e7b3eb2e8aed25e79a36fe95533ea4c0a0bc1445 (patch) | |
| tree | 2532a33c348e5d766feba0a6757a9139701430ef /libs/gui/BufferQueueProducer.cpp | |
| parent | 8ce6238125f580ee14eaeb98862acda6e8b57c9a (diff) | |
| parent | f3ef3eab3aaae979c48ef03d27c5004f357b3d03 (diff) | |
gui: Adjust for libui gralloc flags change
am: f3ef3eab3a
Change-Id: Ic5a747c5f5cdf5d5bb4a2d9a08df55bdd72384c3
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 f3e4381ad6..0f7465b176 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(); @@ -1343,7 +1343,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(); |