diff options
author | 2014-02-28 11:17:17 -0800 | |
---|---|---|
committer | 2014-03-04 09:33:14 -0800 | |
commit | 289ade165e60b5f71734d30e535f16eb1f4313ad (patch) | |
tree | 300dfa09aadb600dad6f05db8deee1c86fc310c5 /libs/gui/BufferSlot.cpp | |
parent | 646e2fbd9173677566a90810801217760f9bb9a8 (diff) |
Split BufferQueue into core + producer + consumer
Change-Id: Idc39f1e511d68ce4f02202d35425a419bc0bcd92
Diffstat (limited to 'libs/gui/BufferSlot.cpp')
-rw-r--r-- | libs/gui/BufferSlot.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/gui/BufferSlot.cpp b/libs/gui/BufferSlot.cpp new file mode 100644 index 0000000000..6b5d77ad5c --- /dev/null +++ b/libs/gui/BufferSlot.cpp @@ -0,0 +1,15 @@ +#include <gui/BufferSlot.h> + +namespace android { + +const char* BufferSlot::bufferStateName(BufferState state) { + switch (state) { + case BufferSlot::DEQUEUED: return "DEQUEUED"; + case BufferSlot::QUEUED: return "QUEUED"; + case BufferSlot::FREE: return "FREE"; + case BufferSlot::ACQUIRED: return "ACQUIRED"; + default: return "Unknown"; + } +} + +} // namespace android |