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

Commit 32a850f2 authored by Lajos Molnar's avatar Lajos Molnar
Browse files

MediaCodec: define ID for metrics flushed callback

Bug: 363382811
Flag: EXEMPT const definition only
Change-Id: I0fd20e2553a914b9468b58827ac95ab17d4fcde0
parent 01dd111f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -123,6 +123,13 @@ struct MediaCodec : public AHandler {
        CB_RESOURCE_RECLAIMED = 5,
        CB_CRYPTO_ERROR = 6,
        CB_LARGE_FRAME_OUTPUT_AVAILABLE = 7,

        /** Callback ID for when the metrics for this codec have been flushed
         * due to the start of a new subsession. The associated AMessage will
         * contain an sp<WrapperObject<std::unique_ptr<mediametrics::Item>>>
         * Object at the "metrics" key.
         */
        CB_METRICS_FLUSHED = 8,
    };

    static const pid_t kNoPid = -1;