diff options
author | Albert I <kras@raphielgang.org> | 2022-03-21 15:08:00 -0300 |
---|---|---|
committer | sinanmohd <pcmsinan@gmail.com> | 2023-01-05 21:30:23 +0530 |
commit | 42169728d79f842728166e6d8eb73308c0cda8b5 (patch) | |
tree | a47fe19369cecf52516d15b4659bf83e679f9e42 | |
parent | 45c7c231f9483d848337ed8749db07e62ea0d6c2 (diff) |
veux: Set up display color compositions
* Use default color mode for all color modes
* Enable QDCM combined mode and disable factory mode
* Drop LiveDisplay's color mode support as it conflicts with AOSP display
color adjustment
* Rest of configuration is kanged off Pixel's overlay
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Ib26033fe00a6cc1e8c7d8f93da417516e31a52e3
-rw-r--r-- | rro_overlays/FrameworksResOverlayVeux/res/values/config.xml | 37 | ||||
-rw-r--r-- | vendor.prop | 4 |
2 files changed, 40 insertions, 1 deletions
diff --git a/rro_overlays/FrameworksResOverlayVeux/res/values/config.xml b/rro_overlays/FrameworksResOverlayVeux/res/values/config.xml index e27a489..87058d3 100644 --- a/rro_overlays/FrameworksResOverlayVeux/res/values/config.xml +++ b/rro_overlays/FrameworksResOverlayVeux/res/values/config.xml @@ -685,6 +685,43 @@ <!-- Flag specifying whether or not IMS will use the ImsResolver dynamically --> <bool name="config_dynamic_bind_ims">true</bool> + <!-- Indicate available ColorDisplayManager.COLOR_MODE_xxx. --> + <integer-array name="config_availableColorModes"> + <item>0</item> <!-- COLOR_MODE_NATURAL --> + <item>1</item> <!-- COLOR_MODE_BOOSTED --> + <item>2</item> <!-- COLOR_MODE_SATURATED --> + <item>3</item> <!-- COLOR_MODE_AUTOMATIC --> + </integer-array> + + <!-- Color mode to use when accessibility transforms are enabled. This color mode must be + supported by the device, but not necessarily appear in config_availableColorModes. The + regularly selected color mode will be used if this value is negative. --> + <integer name="config_accessibilityColorMode">2</integer> + + <!-- The following two arrays specify which color space to use for display composition when a + certain color mode is active. + Composition color spaces are defined in android.view.Display.COLOR_MODE_xxx, and color + modes are defined in ColorDisplayManager.COLOR_MODE_xxx and + ColorDisplayManager.VENDOR_COLOR_MODE_xxx. + The color space COLOR_MODE_DEFAULT (0) lets the system select the most appropriate + composition color space for currently displayed content. Other values (e.g., + COLOR_MODE_SRGB) override system selection; these other color spaces must be supported by + the device for for display composition. + If a color mode does not have a corresponding color space specified in this array, the + currently set composition color space will not be modified.--> + <integer-array name="config_displayCompositionColorModes"> + <item>0</item> <!-- COLOR_MODE_NATURAL --> + <item>1</item> <!-- COLOR_MODE_BOOSTED --> + <item>2</item> <!-- COLOR_MODE_SATURATED --> + <item>3</item> <!-- COLOR_MODE_AUTOMATIC --> + </integer-array> + <integer-array name="config_displayCompositionColorSpaces"> + <item>0</item> <!-- COLOR_MODE_DEFAULT --> + <item>0</item> <!-- COLOR_MODE_DEFAULT --> + <item>0</item> <!-- COLOR_MODE_DEFAULT --> + <item>0</item> <!-- COLOR_MODE_DEFAULT --> + </integer-array> + <!-- Boolean indicating whether the HWC setColorTransform function can be performed efficiently in hardware. --> <bool name="config_setColorTransformAccelerated">true</bool> diff --git a/vendor.prop b/vendor.prop index 749269a..ae82f37 100644 --- a/vendor.prop +++ b/vendor.prop @@ -187,6 +187,7 @@ debug.sf.frame_rate_multiple_threshold=120 debug.sf.hw=0 persist.sys.sf.color_mode=0 persist.sys.sf.color_saturation=1.0 +persist.sys.sf.native_mode=2 ro.hardware.egl=adreno ro.hardware.vulkan=adreno ro.opengles.version=196610 @@ -215,7 +216,8 @@ vendor.display.enable_optimize_refresh=1 vendor.display.enable_rounded_corner=0 vendor.display.enable_perf_hint_large_comp_cycle=1 vendor.display.enable_posted_start_dyn=2 -vendor.display.qdcm.mode_combine=2 +vendor.display.qdcm.disable_factory_mode=1 +vendor.display.qdcm.mode_combine=1 vendor.display.use_layer_ext=0 vendor.display.use_smooth_motion=0 vendor.gralloc.disable_ubwc=0 |