sm7250-common: Set up display color compositions
* Switch to "Adaptive" mode and Display P3 color by default * Use default color mode for Natural and Boosted * 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 * Add COLOR_MODE_SATURATED support from sunfish Signed-off-by: Albert I <kras@raphielgang.org>
This commit is contained in:
parent
c6faf7010b
commit
40c9499dc6
@ -114,7 +114,6 @@
|
||||
<hal format="hidl">
|
||||
<name>vendor.lineage.livedisplay</name>
|
||||
<transport>hwbinder</transport>
|
||||
<fqname>@2.0::IDisplayModes/default</fqname>
|
||||
<fqname>@2.0::IPictureAdjustment/default</fqname>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
|
@ -280,6 +280,43 @@
|
||||
<!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
|
||||
<bool name="config_intrusiveNotificationLed">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>9</item> <!-- COLOR_MODE_DISPLAY_P3 -->
|
||||
</integer-array>
|
||||
|
||||
<!-- The default journal mode to use use when Write-Ahead Logging is not active.
|
||||
Choices are: OFF, DELETE, TRUNCATE, PERSIST and MEMORY.
|
||||
PERSIST may improve performance by reducing how often journal blocks are
|
||||
|
@ -169,6 +169,8 @@ vendor.display.disable_scaler=0
|
||||
vendor.display.enable_async_powermode=0
|
||||
vendor.display.enable_optimize_refresh=1
|
||||
vendor.display.enable_posted_start_dyn=1
|
||||
vendor.display.qdcm.disable_factory_mode=1
|
||||
vendor.display.qdcm.mode_combine=1
|
||||
vendor.display.use_layer_ext=1
|
||||
vendor.display.use_smooth_motion=1
|
||||
|
||||
@ -199,9 +201,9 @@ debug.sf.high_fps_late_sf_phase_offset_ns=-4000000
|
||||
debug.sf.hw=0
|
||||
debug.sf.latch_unsignaled=1
|
||||
persist.demo.hdmirotationlock=false
|
||||
persist.sys.sf.color_mode=0
|
||||
persist.sys.sf.color_mode=9
|
||||
persist.sys.sf.color_saturation=1.0
|
||||
persist.sys.sf.native_mode=0
|
||||
persist.sys.sf.native_mode=2
|
||||
ro.gfx.driver.1=com.qualcomm.qti.gpudrivers.lito.api30
|
||||
ro.hardware.egl=adreno
|
||||
ro.hardware.vulkan=adreno
|
||||
|
Loading…
Reference in New Issue
Block a user