summaryrefslogtreecommitdiff
authorTellen Yu <tellen.yu@amlogic.com>2016-12-27 09:08:07 (GMT)
committer Tellen Yu <tellen.yu@amlogic.com>2017-01-05 08:56:25 (GMT)
commit544c3329253c4341d0a43732fa94043246f52c21 (patch)
treeb05b474952243fe88e6c1c74abdc6f27f6f881ba
parentfe1516110c7dd8dc576449bfeda6d2d23dd073c0 (diff)
downloadhwcomposer-544c3329253c4341d0a43732fa94043246f52c21.zip
hwcomposer-544c3329253c4341d0a43732fa94043246f52c21.tar.gz
hwcomposer-544c3329253c4341d0a43732fa94043246f52c21.tar.bz2
update to android-7.1.1_r6, add default color mode
Change-Id: Id623249071d6a7ab947bc65c060dd83864dc85cc
Diffstat
-rw-r--r--hwc2/common/devices/PhysicalDevice.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/hwc2/common/devices/PhysicalDevice.cpp b/hwc2/common/devices/PhysicalDevice.cpp
index d9095c2..dad6c44 100644
--- a/hwc2/common/devices/PhysicalDevice.cpp
+++ b/hwc2/common/devices/PhysicalDevice.cpp
@@ -222,6 +222,13 @@ int32_t PhysicalDevice::getClientTargetSupport(
int32_t PhysicalDevice::getColorModes(
uint32_t* outNumModes,
int32_t* /*android_color_mode_t*/ outModes) {
+
+ if (NULL == outModes) {
+ *outNumModes = 1;
+ } else {
+ *outModes = HAL_COLOR_MODE_NATIVE;
+ }
+
return HWC2_ERROR_NONE;
}