From ed2ffce4b8c46300e0c5a99362eb58a3d97fc6fb Mon Sep 17 00:00:00 2001 From: "Arun Kumar K.R" Date: Mon, 24 Nov 2014 19:00:54 -0800 Subject: [PATCH] sde: hwc_display: Set all the display attributes - Set the HWC_DISPLAY_SECURE attribute in the HWC. - All the physical connected displays are assumed to be secure by SF. Hence set this display attribute as true. - This is added for backcompatibility. Change-Id: I9e0ac4f3d923f990a5c81a3c36638bd62fdc83c0 --- displayengine/libs/hwc/hwc_display.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/displayengine/libs/hwc/hwc_display.cpp b/displayengine/libs/hwc/hwc_display.cpp index ce81fdd7..66ffcd8b 100644 --- a/displayengine/libs/hwc/hwc_display.cpp +++ b/displayengine/libs/hwc/hwc_display.cpp @@ -125,6 +125,9 @@ int HWCDisplay::GetDisplayAttributes(uint32_t config, const uint32_t *attributes case HWC_DISPLAY_DPI_Y: values[i] = INT32(variable_config.y_dpi * 1000.0f); break; + case HWC_DISPLAY_SECURE: + values[i] = INT32(true); // For backward compatibility. All Physical displays are secure + break; default: DLOGE("Spurious attribute type %d", attributes[i]); return -EINVAL;