diff options
author | Mathias Agopian <mathias@google.com> | 2010-04-27 21:08:20 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-04-28 16:12:54 -0700 |
commit | 86f69c1f41dcf4e0826b17ecf7fd71eb353b0782 (patch) | |
tree | 33388f417f330d72ab7f781ac99e1ac253026d5f /include/private/surfaceflinger | |
parent | 41623bfd339754718bab32a6259ff15920f1c588 (diff) | |
download | frameworks_av-86f69c1f41dcf4e0826b17ecf7fd71eb353b0782.zip frameworks_av-86f69c1f41dcf4e0826b17ecf7fd71eb353b0782.tar.gz frameworks_av-86f69c1f41dcf4e0826b17ecf7fd71eb353b0782.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/surfaceflinger')
-rw-r--r-- | include/private/surfaceflinger/SharedBufferStack.h | 4 |
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]; }; |