Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c83e1717 authored by Sahil Sonar's avatar Sahil Sonar 💬
Browse files

FP5: Use content detection for refresh rate

  - No artifact noticed on boot animation with 90Hz refresh rate.
    This reverts commit 585150e9.
    This reverts commit 03ccb915.
    This reverts commit fe45821c.
    This reverts commit 1dc193d7.
parent 678ebbed
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -320,8 +320,6 @@ PRODUCT_PACKAGES += \
    libstagefrighthw
    libstagefrighthw


# Overlay
# Overlay
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-lineage

PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
    CarrierConfigResCommon \
    CarrierConfigResCommon \
    eCameraTarget \
    eCameraTarget \
+0 −22
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2021, The LineageOS Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
**     http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!-- Whether to show min refresh rate in display settings -->
    <bool name="config_show_min_refresh_rate_switch">true</bool>
</resources>
+19 −5
Original line number Original line Diff line number Diff line
@@ -94,11 +94,25 @@
         the restoring is handled by modem if it is true -->
         the restoring is handled by modem if it is true -->
    <bool name="skip_restoring_network_selection">true</bool>
    <bool name="skip_restoring_network_selection">true</bool>


    <!-- The default peak refresh rate for a given device. Change this value if you want to prevent
    <!-- The default refresh rate for a given device. Change this value to set a higher default
         the framework from using higher refresh rates, even if display modes with higher refresh
         refresh rate. If the hardware composer on the device supports display modes with a higher
         rates are available from hardware composer. Only has an effect if the value is
         refresh rate than the default value specified here, the framework may use those higher
         non-zero. -->
         refresh rate modes if an app chooses one by setting preferredDisplayModeId or calling
    <integer name="config_defaultPeakRefreshRate">60</integer>
         setFrameRate().
         If a non-zero value is set for config_defaultPeakRefreshRate, then
         config_defaultRefreshRate may be set to 0, in which case the value set for
         config_defaultPeakRefreshRate will act as the default frame rate. -->
    <integer name="config_defaultPeakRefreshRate">240</integer>

    <!-- The default refresh rate for a given device. Change this value to set a higher default
         refresh rate. If the hardware composer on the device supports display modes with a higher
         refresh rate than the default value specified here, the framework may use those higher
         refresh rate modes if an app chooses one by setting preferredDisplayModeId or calling
         setFrameRate().
         If a non-zero value is set for config_defaultPeakRefreshRate, then
         config_defaultRefreshRate may be set to 0, in which case the value set for
         config_defaultPeakRefreshRate will act as the default frame rate. -->
    <integer name="config_defaultRefreshRate">0</integer>


    <!--  Maximum number of supported users -->
    <!--  Maximum number of supported users -->
    <integer name="config_multiuserMaximumUsers">4</integer>
    <integer name="config_multiuserMaximumUsers">4</integer>
+1 −0
Original line number Original line Diff line number Diff line
@@ -134,6 +134,7 @@ ro.surface_flinger.max_frame_buffer_acquired_buffers=3
ro.surface_flinger.max_virtual_display_dimension=4096
ro.surface_flinger.max_virtual_display_dimension=4096
ro.surface_flinger.protected_contents=true
ro.surface_flinger.protected_contents=true
ro.surface_flinger.use_color_management=true
ro.surface_flinger.use_color_management=true
ro.surface_flinger.use_content_detection_for_refresh_rate=true
ro.surface_flinger.wcg_composition_dataspace=143261696
ro.surface_flinger.wcg_composition_dataspace=143261696


# Incremental FS
# Incremental FS