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

Commit c40255ae authored by Mathieu Chartier's avatar Mathieu Chartier Committed by Android (Google) Code Review
Browse files

Merge "Added trace event to screenrecord"

parents 535c6dfc c840c0bf
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -417,6 +417,7 @@ static status_t runEncoder(const sp<MediaCodec>& encoder,
    int64_t endWhenNsec = startWhenNsec + seconds_to_nanoseconds(gTimeLimitSec);
    DisplayInfo mainDpyInfo;
    Vector<int64_t> timestamps;
    bool firstFrame = true;

    assert((rawFp == NULL && muxer != NULL) || (rawFp != NULL && muxer == NULL));

@@ -433,6 +434,11 @@ static status_t runEncoder(const sp<MediaCodec>& encoder,
        int64_t ptsUsec;
        uint32_t flags;

        if (firstFrame) {
            ATRACE_NAME("first_frame");
            firstFrame = false;
        }

        if (systemTime(CLOCK_MONOTONIC) > endWhenNsec) {
            if (gVerbose) {
                printf("Time limit reached\n");