summaryrefslogtreecommitdiffstats
path: root/include/private
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
commitbfe7f0b12165a1ad4a73b6d8f013cb9e115a3c60 (patch)
tree0d55794a9fa47b81998aae8c2abb6c7f0af8ee76 /include/private
parentf590f702c8142fa5225a6d2ea6649515c1a2961f (diff)
downloadframeworks_base-bfe7f0b12165a1ad4a73b6d8f013cb9e115a3c60.zip
frameworks_base-bfe7f0b12165a1ad4a73b6d8f013cb9e115a3c60.tar.gz
frameworks_base-bfe7f0b12165a1ad4a73b6d8f013cb9e115a3c60.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/private')
-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];
};