display: Add reserved size and status check to MetaData_t
* Move from fixed array reserved region to variable reserved
region size
* Add bool arrays to indicate whether metadata has been set using
Gralloc4 indices
* Replace metadata->operation with bool arrays for
gralloc4/qdMetaData compatibility
CRs-Fixed: 2730848
Change-Id: Id52aac70c23ee4b39db185861f951bb909831afb
diff --git a/gralloc/QtiGrallocPriv.h b/gralloc/QtiGrallocPriv.h
index ee0c6a4..3874ecd 100644
--- a/gralloc/QtiGrallocPriv.h
+++ b/gralloc/QtiGrallocPriv.h
@@ -52,6 +52,8 @@
*
*/
+#define METADATA_V2
+
// TODO: MetaData_t should be in qtigralloc namespace
struct MetaData_t {
int32_t operation;
@@ -95,6 +97,9 @@
int32_t blendMode;
char name[MAX_NAME_LEN];
ReservedRegion reservedRegion;
+ bool isStandardMetadataSet[METADATA_SET_SIZE];
+ bool isVendorMetadataSet[METADATA_SET_SIZE];
+ uint64_t reservedSize;
};
namespace qtigralloc {