diff options
author | Igor Murashkin <iam@google.com> | 2013-11-18 12:26:56 -0800 |
---|---|---|
committer | Igor Murashkin <iam@google.com> | 2013-11-18 12:36:15 -0800 |
commit | 4be18a3566c5d902b7fe94db4cf14b174ed7beb5 (patch) | |
tree | 0842398b66aac14fae7a831842bcb38b385235c0 /include | |
parent | 7d2d160cdc3cba9f4454f38433c94b68376cb843 (diff) | |
download | frameworks_native-4be18a3566c5d902b7fe94db4cf14b174ed7beb5.zip frameworks_native-4be18a3566c5d902b7fe94db4cf14b174ed7beb5.tar.gz frameworks_native-4be18a3566c5d902b7fe94db4cf14b174ed7beb5.tar.bz2 |
gui: Remove BufferQueue::MIN_UNDEQUEUED_BUFFERS
Change-Id: I7c0cc36046dbbdb9c0e85acfe5027293d1131275
Diffstat (limited to 'include')
-rw-r--r-- | include/gui/BufferItemConsumer.h | 3 | ||||
-rw-r--r-- | include/gui/BufferQueue.h | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/gui/BufferItemConsumer.h b/include/gui/BufferItemConsumer.h index 52edf17..2c58ca5 100644 --- a/include/gui/BufferItemConsumer.h +++ b/include/gui/BufferItemConsumer.h @@ -44,6 +44,7 @@ class BufferItemConsumer: public ConsumerBase typedef BufferQueue::BufferItem BufferItem; + enum { MIN_UNDEQUEUED_BUFFERS = -1 }; enum { INVALID_BUFFER_SLOT = BufferQueue::INVALID_BUFFER_SLOT }; enum { NO_BUFFER_AVAILABLE = BufferQueue::NO_BUFFER_AVAILABLE }; @@ -54,7 +55,7 @@ class BufferItemConsumer: public ConsumerBase // controlledByApp tells whether this consumer is controlled by the // application. BufferItemConsumer(const sp<BufferQueue>& bq, uint32_t consumerUsage, - int bufferCount = BufferQueue::MIN_UNDEQUEUED_BUFFERS, + int bufferCount = MIN_UNDEQUEUED_BUFFERS, bool controlledByApp = false); virtual ~BufferItemConsumer(); diff --git a/include/gui/BufferQueue.h b/include/gui/BufferQueue.h index 2457eba..cab7e86 100644 --- a/include/gui/BufferQueue.h +++ b/include/gui/BufferQueue.h @@ -41,7 +41,6 @@ class BufferQueue : public BnGraphicBufferProducer, public BnGraphicBufferConsumer, private IBinder::DeathRecipient { public: - enum { MIN_UNDEQUEUED_BUFFERS = 2 }; // BufferQueue will keep track of at most this value of buffers. // Attempts at runtime to increase the number of buffers past this will fail. enum { NUM_BUFFER_SLOTS = 32 }; |