Dan Stoza | 289ade1 | 2014-02-28 11:17:17 -0800 | [diff] [blame^] | 1 | #include <gui/BufferSlot.h> |
2 | |||||
3 | namespace android { | ||||
4 | |||||
5 | const char* BufferSlot::bufferStateName(BufferState state) { | ||||
6 | switch (state) { | ||||
7 | case BufferSlot::DEQUEUED: return "DEQUEUED"; | ||||
8 | case BufferSlot::QUEUED: return "QUEUED"; | ||||
9 | case BufferSlot::FREE: return "FREE"; | ||||
10 | case BufferSlot::ACQUIRED: return "ACQUIRED"; | ||||
11 | default: return "Unknown"; | ||||
12 | } | ||||
13 | } | ||||
14 | |||||
15 | } // namespace android |