summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Ceballos2016-03-14 18:02:19 -0500
committerPablo Ceballos2016-03-17 15:45:39 -0500
commit295a9fc8aa87daa2cded5c1a279b8cd24e9a9a9f (patch)
treeb5e65390ab0e0c5d52642913b7fe382453f45f56 /include
parentec3c05b2d47efaca03ec42572fc2631af5267438 (diff)
downloadframeworks-native-295a9fc8aa87daa2cded5c1a279b8cd24e9a9a9f.tar.gz
frameworks-native-295a9fc8aa87daa2cded5c1a279b8cd24e9a9a9f.tar.xz
frameworks-native-295a9fc8aa87daa2cded5c1a279b8cd24e9a9a9f.zip
BQ: Allow shared buffer to be the first queued buffer
- When single-buffer mode is enabled the shared buffer will now be either the first buffer dequeued or the first buffer queued. Whichever comes first. Bug 24940410 Change-Id: I9f7e2630640e37fe1fb967aed41a3025567247a8
Diffstat (limited to 'include')
-rw-r--r--include/gui/BufferQueueCore.h3
-rw-r--r--include/gui/IGraphicBufferProducer.h7
2 files changed, 4 insertions, 6 deletions
diff --git a/include/gui/BufferQueueCore.h b/include/gui/BufferQueueCore.h
index acc8c4b07..1b950ab9b 100644
--- a/include/gui/BufferQueueCore.h
+++ b/include/gui/BufferQueueCore.h
@@ -292,9 +292,6 @@ private:
292 bool mAsyncMode; 292 bool mAsyncMode;
293 293
294 // mSingleBufferMode indicates whether or not single buffer mode is enabled. 294 // mSingleBufferMode indicates whether or not single buffer mode is enabled.
295 // In single buffer mode, the last buffer that was dequeued is cached and
296 // returned to all calls to dequeueBuffer and acquireBuffer. This allows the
297 // consumer and producer to access the same buffer simultaneously.
298 bool mSingleBufferMode; 295 bool mSingleBufferMode;
299 296
300 // When single buffer mode is enabled, this indicates whether the consumer 297 // When single buffer mode is enabled, this indicates whether the consumer
diff --git a/include/gui/IGraphicBufferProducer.h b/include/gui/IGraphicBufferProducer.h
index f6b42300a..fee7c6373 100644
--- a/include/gui/IGraphicBufferProducer.h
+++ b/include/gui/IGraphicBufferProducer.h
@@ -526,9 +526,10 @@ public:
526 526
527 // Used to enable/disable single buffer mode. 527 // Used to enable/disable single buffer mode.
528 // 528 //
529 // In single buffer mode the last buffer that was dequeued will be cached 529 // When single buffer mode is enabled the first buffer that is queued or
530 // and returned to all calls to dequeueBuffer and acquireBuffer. This allows 530 // dequeued will be cached and returned to all subsequent calls to
531 // the producer and consumer to simultaneously access the same buffer. 531 // dequeueBuffer and acquireBuffer. This allows the producer and consumer to
532 // simultaneously access the same buffer.
532 virtual status_t setSingleBufferMode(bool singleBufferMode) = 0; 533 virtual status_t setSingleBufferMode(bool singleBufferMode) = 0;
533 534
534 // Used to enable/disable auto-refresh. 535 // Used to enable/disable auto-refresh.