Merge "commonsys-intf: add buffer handle in Smomo buffer info"
diff --git a/gralloc/QtiGralloc.h b/gralloc/QtiGralloc.h
index 8055ab8..c95368a 100644
--- a/gralloc/QtiGralloc.h
+++ b/gralloc/QtiGralloc.h
@@ -130,6 +130,8 @@
 static const MetadataType MetadataType_BufferPermission = {VENDOR_QTI, QTI_BUFFER_PERMISSION};
 static const MetadataType MetadataType_MemHandle = {VENDOR_QTI, QTI_MEM_HANDLE};
 
+static const MetadataType MetadataType_TimedRendering = {VENDOR_QTI, QTI_TIMED_RENDERING};
+
 // 0 is also used as invalid value in standard metadata
 static const MetadataType MetadataType_Invalid = {VENDOR_QTI, 0};
 
diff --git a/gralloc/QtiGrallocMetadata.h b/gralloc/QtiGrallocMetadata.h
index 9fa2991..506fd2e 100644
--- a/gralloc/QtiGrallocMetadata.h
+++ b/gralloc/QtiGrallocMetadata.h
@@ -69,7 +69,7 @@
 // Indicates buffer access permission of its client
 #define QTI_BUFFER_PERMISSION 10026
 #define QTI_MEM_HANDLE 10027
-
+#define QTI_TIMED_RENDERING 10028
 
 // Used to indicate to framework that internal definitions are used instead
 #define COMPRESSION_QTI_UBWC 20001
diff --git a/gralloc/QtiGrallocPriv.h b/gralloc/QtiGrallocPriv.h
index 59c55d9..f4a5bce 100644
--- a/gralloc/QtiGrallocPriv.h
+++ b/gralloc/QtiGrallocPriv.h
@@ -142,6 +142,10 @@
   VideoTimestampInfo videoTsInfo;
   BufferPermission bufferPerm[BUFFER_CLIENT_MAX];
   int64_t memHandle;
+
+  /* Set by clients to indicate that timed rendering will be enabled
+   * or disabled for this buffer. */
+  uint32_t timedRendering;
 };
 
 namespace qtigralloc {