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

Commit 2413ca14 authored by Brian C. Anderson's avatar Brian C. Anderson Committed by Android (Google) Code Review
Browse files

Merge "Update HIDL with CompositorTiming."

parents f2c402bf 68214ec8
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
@@ -71,13 +71,28 @@ interface IOmxBufferProducer {
        FenceTimeSnapshot releaseFence;
    };

    /**
     * Ref: frameworks/native/include/gui/FrameTimestamp.h: CompositorTiming
     *
     * The most recent compositor timing info sent from consumer to producer
     * through a HIDL interface.
     */
    struct CompositorTiming {
        int64_t deadlineNs;
        int64_t intervalNs;
        int64_t presentLatencyNs;
    };

    /**
     * Ref: frameworks/native/include/gui/FrameTimestamp.h: FrameEventHistoryDelta
     *
     * A collection of updates from consumer to producer that can be sent
     * through a HIDL interface.
     */
    typedef vec<FrameEventsDelta> FrameEventHistoryDelta;
    struct FrameEventHistoryDelta {
        vec<FrameEventsDelta> deltas;
        CompositorTiming compositorTiming;
    };

    /**
     * Modes for disconnection.