gralloc: Add support for HEIF usage flag.

Add new usage flag that can be used to indicate HEIF.

Change-Id: If933f0fccff18323a595a712c51258700bbeb1e4
CRs-Fixed: 2318608
This commit is contained in:
Rajavenu Kyatham
2018-10-10 12:50:12 +05:30
parent d50000581b
commit 3bf8204f89

View File

@@ -71,6 +71,11 @@ inline int roundUpToPageSize(int x) {
/* This flag is set for WFD usecase */
#define GRALLOC_USAGE_PRIVATE_WFD (UINT32_C(1) << 21)
/* TODO(user): move these to use sanctioned vendor bits
* once end to end 64-bit support is available */
/* This flag is set for HEIF usecase */
#define GRALLOC_USAGE_PRIVATE_HEIF (UINT32_C(1) << 27)
/* TODO(user): Remove when clients stop referencing this flag */
#define GRALLOC_USAGE_PRIVATE_10BIT_TP 0