diff options
Diffstat (limited to 'libs/gui/include/gui/BufferQueueConsumer.h')
-rw-r--r-- | libs/gui/include/gui/BufferQueueConsumer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/gui/include/gui/BufferQueueConsumer.h b/libs/gui/include/gui/BufferQueueConsumer.h index 7db69eca9d..6aa801ab86 100644 --- a/libs/gui/include/gui/BufferQueueConsumer.h +++ b/libs/gui/include/gui/BufferQueueConsumer.h @@ -174,6 +174,10 @@ public: // Value used to determine if present time is valid. constexpr static int MAX_REASONABLE_NSEC = 1'000'000'000ULL; // 1 second + // This allows the consumer to acquire an additional buffer if that buffer is not droppable and + // will eventually be released or acquired by the consumer. + void setAllowExtraAcquire(bool /* allow */); + private: sp<BufferQueueCore> mCore; |