summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinoth Jayaram <c_vinoja@codeaurora.org>2020-10-13 18:09:49 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2020-10-23 00:42:55 -0700
commit1b056c2223143ea401a47f8726a32b7e58656ab2 (patch)
tree64dc40a72753d20609259543dae161795eb018a5
parent87b361fb86dfa1d3d5d88271a73c0c5c6d446dbb (diff)
Updated WCG property based on targets
Change-Id: I5e7508d97ef618266e0bb6a6b07a5b474e5e36b8
-rw-r--r--config/display-product.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/config/display-product.mk b/config/display-product.mk
index 6840d77c..7d65408d 100644
--- a/config/display-product.mk
+++ b/config/display-product.mk
@@ -107,13 +107,20 @@ PRODUCT_PROPERTY_OVERRIDES += \
vendor.display.enable_optimize_refresh=1 \
vendor.display.disable_ui_3d_tonemap=1
-#Set WCG properties
ifeq ($(TARGET_BOARD_PLATFORM), msmnile)
+PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.protected_contents=true
+endif
+
+#Set WCG properties
+ifeq ($(TARGET_BOARD_PLATFORM),$(TRINKET))
+PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_wide_color_display=false
+PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_HDR_display=false
+PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_color_management=false
+else
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_wide_color_display=true
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_HDR_display=true
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_color_management=true
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.wcg_composition_dataspace=143261696
-PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.protected_contents=true
endif
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.force_hwc_copy_for_virtual_displays=true