summaryrefslogtreecommitdiff
authorStark Li <stark.li@amlogic.com>2016-10-18 07:34:49 (GMT)
committer Tellen Yu <tellen.yu@amlogic.com>2016-10-26 03:01:51 (GMT)
commit255e66e08aef67ea099c7b3c7c589bddc86b253c (patch)
tree5d590f179a0fa178c1935350161a8ae407f331d9
parent8e408cfe1a8090c8dcb75d8a74d1136778df9c8c (diff)
downloadhwcomposer-255e66e08aef67ea099c7b3c7c589bddc86b253c.zip
hwcomposer-255e66e08aef67ea099c7b3c7c589bddc86b253c.tar.gz
hwcomposer-255e66e08aef67ea099c7b3c7c589bddc86b253c.tar.bz2
PD#133085: add sideband stream capabilities
Change-Id: I7ba11308509b5efa350e840afc20ab746e64edc9
Diffstat
-rw-r--r--hwc2/common/base/HwcModule.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/hwc2/common/base/HwcModule.cpp b/hwc2/common/base/HwcModule.cpp
index 55eade3..e48f6ee 100644
--- a/hwc2/common/base/HwcModule.cpp
+++ b/hwc2/common/base/HwcModule.cpp
@@ -607,6 +607,12 @@ void hwc2_getCapabilities(struct hwc2_device* device,
uint32_t* outCount,
int32_t* /*hwc2_capability_t*/ outCapabilities) {
GET_HWC_RETURN_VOID_IF_NULL();
+ if (NULL == outCapabilities) {
+ *outCount = 1;
+ } else {
+ *outCount = 1;
+ outCapabilities[0] = HWC2_CAPABILITY_SIDEBAND_STREAM;
+ }
}
//------------------------------------------------------------------------------