diff options
| -rw-r--r-- | core/res/res/values/config.xml | 9 | ||||
| -rw-r--r-- | core/res/res/values/symbols.xml | 1 |
2 files changed, 8 insertions, 2 deletions
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index db234e753bbc..cda236971811 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -784,9 +784,14 @@ --> <integer name="config_defaultNightMode">1</integer> + <!-- Boolean indicating whether the HWC setColorTransform function can be performed efficiently + in hardware. --> + <bool name="config_setColorTransformAccelerated">false</bool> + <!-- Control whether Night display is available. This should only be enabled on devices - with HWC 2.0 or higher. --> - <bool name="config_nightDisplayAvailable">false</bool> + that have a HWC implementation that can apply the matrix passed to setColorTransform + without impacting power, performance, and app compatibility (e.g. protected content). --> + <bool name="config_nightDisplayAvailable">@bool/config_setColorTransformAccelerated</bool> <!-- Default mode to control how Night display is automatically activated. One of the following values (see NightDisplayController.java): diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index 92436f482f7f..db5fade01b21 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -2774,6 +2774,7 @@ <java-symbol type="drawable" name="ic_doc_video" /> <java-symbol type="drawable" name="ic_doc_generic" /> + <java-symbol type="bool" name="config_setColorTransformAccelerated" /> <java-symbol type="bool" name="config_nightDisplayAvailable" /> <java-symbol type="bool" name="config_allowDisablingAssistDisclosure" /> <java-symbol type="integer" name="config_defaultNightDisplayAutoMode" /> |