diff --git a/libqcomui/qcom_ui.cpp b/libqcomui/qcom_ui.cpp index 4e20ed4..da21445 100644 --- a/libqcomui/qcom_ui.cpp +++ b/libqcomui/qcom_ui.cpp @@ -321,6 +321,21 @@ int updateBufferGeometry(sp buffer, const qBufGeometry updatedGeo return 0; } +/* Update the S3D format of this buffer. +* +* @param: buffer whosei S3D format needs to be updated. +* @param: Updated buffer S3D format +*/ +int updateBufferS3DFormat(sp buffer, const int s3dFormat) +{ + if (buffer == 0) { + LOGE("%s: graphic buffer is NULL", __FUNCTION__); + return -EINVAL; + } + + buffer->format |= s3dFormat; + return 0; +} /* * Updates the flags for the layer *