blob: 6b5d77ad5c0183991c486b196fd0813cffe755e5 [file] [log] [blame]
Dan Stoza289ade12014-02-28 11:17:17 -08001#include <gui/BufferSlot.h>
2
3namespace android {
4
5const 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