summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2010-07-01 16:49:52 -0700
committerJamie Gennis <jgennis@google.com>2010-07-01 16:49:52 -0700
commit95d78bef32edd183fb8c16b7775bf0a069948420 (patch)
treeab8014c4f236d250f73758cee0341525a1165d4f
parentaabb70292351f231bfd4daae8b73edb788eeba1a (diff)
downloadlibhardware-95d78bef32edd183fb8c16b7775bf0a069948420.tar.gz
Add 4 private gralloc usage bits.
The private gralloc usage bits can be used to specify device-specific allocation requirements. Change-Id: Idc4fbdd3dd7b71767143cf3df5886dfaf43e50a4
-rw-r--r--include/hardware/gralloc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hardware/gralloc.h b/include/hardware/gralloc.h
index bbb22cf6..73cc9e0a 100644
--- a/include/hardware/gralloc.h
+++ b/include/hardware/gralloc.h
@@ -69,6 +69,13 @@ enum {
GRALLOC_USAGE_HW_FB = 0x00001000,
/* mask for the software usage bit-mask */
GRALLOC_USAGE_HW_MASK = 0x00001F00,
+
+ /* implementation-specific private usage flags */
+ GRALLOC_USAGE_PRIVATE_0 = 0x10000000,
+ GRALLOC_USAGE_PRIVATE_1 = 0x20000000,
+ GRALLOC_USAGE_PRIVATE_2 = 0x40000000,
+ GRALLOC_USAGE_PRIVATE_3 = 0x80000000,
+ GRALLOC_USAGE_PRIVATE_MASK = 0xF0000000,
};
/*****************************************************************************/