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

Commit c1945cb7 authored by ramindani's avatar ramindani
Browse files

Adds Composition REFRESH_RATE_INDICATOR

Test: Device boots
BUG: 202734676
Change-Id: Ibe1943e9ee8eb6b3f9968c097095ff10c609f479
parent 12bfe6b7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -585,6 +585,7 @@ void OutputLayer::writeOutputIndependentPerFrameStateToHWC(
        case Composition::CURSOR:
        case Composition::DEVICE:
        case Composition::DISPLAY_DECORATION:
        case Composition::REFRESH_RATE_INDICATOR:
            writeBufferStateToHWC(hwcLayer, outputIndependentState, skipLayer);
            break;
        case Composition::INVALID:
@@ -780,6 +781,7 @@ void OutputLayer::detectDisallowedCompositionTypeChange(Composition from, Compos
        case Composition::CURSOR:
        case Composition::SIDEBAND:
        case Composition::DISPLAY_DECORATION:
        case Composition::REFRESH_RATE_INDICATOR:
            result = (to == Composition::CLIENT || to == Composition::DEVICE);
            break;
    }
+4 −0
Original line number Diff line number Diff line
@@ -151,6 +151,10 @@ std::string to_string(const Plan& plan) {
                // A for "Alpha", since the decoration is an alpha layer.
                result.append("A");
                break;
            case aidl::android::hardware::graphics::composer3::Composition::REFRESH_RATE_INDICATOR:
                // R for "Refresh", since the layer is Refresh rate overlay.
                result.append("R");
                break;
        }
    }
    return result;
+2 −0
Original line number Diff line number Diff line
@@ -113,6 +113,8 @@ inline std::string to_string(
            return "Sideband";
        case aidl::android::hardware::graphics::composer3::Composition::DISPLAY_DECORATION:
            return "DisplayDecoration";
        case aidl::android::hardware::graphics::composer3::Composition::REFRESH_RATE_INDICATOR:
            return "RefreshRateIndicator";
        default:
            return "Unknown";
    }