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

Commit 57674f3a authored by Rachel Lee's avatar Rachel Lee
Browse files

Plumb expected present time to Choreographer.

Bug: 198191648
Test: make
Change-Id: I46ed20676ffddccc83aec11801adc4c875ac6f00
parent 2dcfdc1b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -153,6 +153,7 @@ bool DisplayEventDispatcher::processPendingEvents(nsecs_t* outTimestamp,
                    outVsyncEventData->id = ev.vsync.vsyncId;
                    outVsyncEventData->deadlineTimestamp = ev.vsync.deadlineTimestamp;
                    outVsyncEventData->frameInterval = ev.vsync.frameInterval;
                    outVsyncEventData->expectedPresentTime = ev.vsync.expectedVSyncTimestamp;
                    break;
                case DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG:
                    dispatchHotplug(ev.header.timestamp, ev.header.displayId, ev.hotplug.connected);
+3 −0
Original line number Diff line number Diff line
@@ -33,6 +33,9 @@ struct VsyncEventData {

    // The current frame interval in ns when this frame was scheduled.
    int64_t frameInterval = 0;

    // The anticipated Vsync present time.
    int64_t expectedPresentTime = 0;
};

class DisplayEventDispatcher : public LooperCallback {