Android Things frameworks still doesnt have support for this.
This patch adds support to disable this in HWC via Build Config
option.
Jira: None.
Test: Build passes.
Signed-off-by: Ragha Khandenahally <Ragha.Khandenahally@intel.com>
LOCAL_CPPFLAGS += -DDISABLE_OVERLAY_USAGE
endif
+ifeq ($(strip $(BOARD_DISABLE_NATIVE_COLOR_MODES)),true)
+LOCAL_CPPFLAGS += -DDISABLE_NATIVE_COLOR_MODES
+endif
+
ifeq ($(strip $(BOARD_DISABLE_EXPLICIT_SYNC)),true)
LOCAL_CPPFLAGS += -DDISABLE_EXPLICIT_SYNC
endif
supported(__func__);
if (!modes)
*num_modes = 1;
-
+#ifndef DISABLE_NATIVE_COLOR_MODES
if (modes)
*modes = HAL_COLOR_MODE_NATIVE;
+#endif
return HWC2::Error::None;
}