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

Commit 20c8fef6 authored by Manasi Navare's avatar Manasi Navare Committed by Android (Google) Code Review
Browse files

Merge "Send the ModeRejected event only if EventRegsitration is set" into main

parents 05c99363 ce2ec146
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ interface ISurfaceComposer {
    enum EventRegistration {
        modeChanged = 1 << 0,
        frameRateOverride = 1 << 1,
        modeRejected = 1 << 2,
    }

    enum OptimizationPolicy {
+2 −1
Original line number Diff line number Diff line
@@ -689,7 +689,8 @@ bool EventThread::shouldConsumeEvent(const DisplayEventReceiver::Event& event,
                    gui::ISurfaceComposer::EventRegistration::modeChanged);

        case DisplayEventType::DISPLAY_EVENT_MODE_REJECTION:
            return true;
            return connection->mEventRegistration.test(
                    gui::ISurfaceComposer::EventRegistration::modeRejected);

        case DisplayEventType::DISPLAY_EVENT_VSYNC:
            switch (connection->vsyncRequest) {