summaryrefslogtreecommitdiff
path: root/include/gui/BufferQueueConsumer.h
diff options
context:
space:
mode:
author Dan Stoza <stoza@google.com> 2015-03-20 18:36:18 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-03-20 18:36:19 +0000
commitf44d13e7e574f181750fa37f439ab50cf05ab3df (patch)
tree71f7dce92ae7d73b1308097d424d5e98c61bed72 /include/gui/BufferQueueConsumer.h
parentf320149886ba8ab8849c8b8f3df256e3789f3905 (diff)
parent82c6bcc9705eabcaf5b9e45bc81867b0e2d61a02 (diff)
Merge "DO NOT MERGE Add dataSpace to buffer queues; remove old format enums."
Diffstat (limited to 'include/gui/BufferQueueConsumer.h')
-rw-r--r--include/gui/BufferQueueConsumer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/gui/BufferQueueConsumer.h b/include/gui/BufferQueueConsumer.h
index 898c4516c8..9c91fc7368 100644
--- a/include/gui/BufferQueueConsumer.h
+++ b/include/gui/BufferQueueConsumer.h
@@ -128,6 +128,13 @@ public:
// in dequeueBuffer. The initial default is HAL_PIXEL_FORMAT_RGBA_8888.
virtual status_t setDefaultBufferFormat(PixelFormat defaultFormat);
+ // setDefaultBufferDataSpace allows the BufferQueue to create
+ // GraphicBuffers of a defaultDataSpace if no data space is specified
+ // in queueBuffer.
+ // The initial default is HAL_DATASPACE_UNKNOWN
+ virtual status_t setDefaultBufferDataSpace(
+ android_dataspace defaultDataSpace);
+
// setConsumerUsageBits will turn on additional usage bits for dequeueBuffer.
// These are merged with the bits passed to dequeueBuffer. The values are
// enumerated in gralloc.h, e.g. GRALLOC_USAGE_HW_RENDER; the default is 0.