summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-04-27 21:08:20 -0700
committerMathias Agopian <mathias@google.com>2010-04-28 16:12:54 -0700
commitc0a9164e9ea5d1d0ee6fbf9ea2ff51318bd78e23 (patch)
tree781d7ab222333fa219c631cdedd33f1244a15f31 /include
parentb296533607232357597b255679db29470ab5925d (diff)
downloadframeworks_native-c0a9164e9ea5d1d0ee6fbf9ea2ff51318bd78e23.zip
frameworks_native-c0a9164e9ea5d1d0ee6fbf9ea2ff51318bd78e23.tar.gz
frameworks_native-c0a9164e9ea5d1d0ee6fbf9ea2ff51318bd78e23.tar.bz2
Add support for enqueuing buffers in arbitrary order
Also added a very simple SharedBufferStack unit test. Change-Id: I253dbbe98a53c966b78d22d4d6dd59f8aefc8c40
Diffstat (limited to 'include')
-rw-r--r--include/private/surfaceflinger/SharedBufferStack.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/private/surfaceflinger/SharedBufferStack.h b/include/private/surfaceflinger/SharedBufferStack.h
index dc53d6a..2504d39 100644
--- a/include/private/surfaceflinger/SharedBufferStack.h
+++ b/include/private/surfaceflinger/SharedBufferStack.h
@@ -118,9 +118,10 @@ public:
// not part of the conditions
volatile int32_t reallocMask;
+ volatile int8_t index[NUM_BUFFER_MAX];
int32_t identity; // surface's identity (const)
- int32_t reserved32[6];
+ int32_t reserved32[2];
Statistics stats;
int32_t reserved;
BufferData buffers[NUM_BUFFER_MAX]; // 960 bytes
@@ -249,6 +250,7 @@ private:
int32_t tail;
int32_t undoDequeueTail;
+ int32_t queued_head;
// statistics...
nsecs_t mDequeueTime[NUM_BUFFER_MAX];
};