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

Commit 2373df79 authored by Rob Carr's avatar Rob Carr Committed by Android (Google) Code Review
Browse files

Merge "screenrecord: Disambiguate ALooper"

parents 2d8a0e22 9e103e1d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -191,7 +191,7 @@ static status_t prepareEncoder(float displayFps, sp<MediaCodec>* pCodec,
    format->setFloat("frame-rate", displayFps);
    format->setInt32("i-frame-interval", 10);

    sp<ALooper> looper = new ALooper;
    sp<android::ALooper> looper = new android::ALooper;
    looper->setName("screenrecord_looper");
    looper->start();
    ALOGV("Creating codec");
+3 −3
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ static int decode(

    CHECK(!stateByTrack.isEmpty());

    int64_t startTimeUs = ALooper::GetNowUs();
    int64_t startTimeUs = android::ALooper::GetNowUs();
    int64_t startTimeRender = -1;

    for (size_t i = 0; i < stateByTrack.size(); ++i) {
@@ -307,7 +307,7 @@ static int decode(
        }
    }

    int64_t elapsedTimeUs = ALooper::GetNowUs() - startTimeUs;
    int64_t elapsedTimeUs = android::ALooper::GetNowUs() - startTimeUs;

    for (size_t i = 0; i < stateByTrack.size(); ++i) {
        CodecState *state = &stateByTrack.editValueAt(i);
@@ -400,7 +400,7 @@ int main(int argc, char **argv) {

    ProcessState::self()->startThreadPool();

    sp<ALooper> looper = new ALooper;
    sp<android::ALooper> looper = new android::ALooper;
    looper->start();

    sp<SurfaceComposerClient> composerClient;
+4 −4
Original line number Diff line number Diff line
@@ -310,7 +310,7 @@ void tryDrainOutputBuffer(
}

static int decode(
        const sp<ALooper> &looper,
        const sp<android::ALooper> &looper,
        const char *path,
        const sp<Surface> &surface,
        bool renderSurface,
@@ -465,7 +465,7 @@ static int decode(
    filterState->mSignalledInputEOS = false;
    filterState->mSawOutputEOS = false;

    int64_t startTimeUs = ALooper::GetNowUs();
    int64_t startTimeUs = android::ALooper::GetNowUs();
    int64_t startTimeRender = -1;

    for (size_t i = 0; i < stateByTrack.size(); ++i) {
@@ -643,7 +643,7 @@ static int decode(
                useTimestamp, &startTimeRender);
    }

    int64_t elapsedTimeUs = ALooper::GetNowUs() - startTimeUs;
    int64_t elapsedTimeUs = android::ALooper::GetNowUs() - startTimeUs;

    for (size_t i = 0; i < stateByTrack.size(); ++i) {
        CodecState *state = &stateByTrack.editValueAt(i);
@@ -737,7 +737,7 @@ int main(int argc, char **argv) {

    ProcessState::self()->startThreadPool();

    android::sp<ALooper> looper = new ALooper;
    android::sp<android::ALooper> looper = new android::ALooper;
    looper->start();

    android::sp<SurfaceComposerClient> composerClient;
+1 −1
Original line number Diff line number Diff line
@@ -716,7 +716,7 @@ int main(int argc, char **argv) {
    gWriteMP4 = false;
    gDisplayHistogram = false;

    sp<ALooper> looper;
    sp<android::ALooper> looper;

    int res;
    while ((res = getopt(argc, argv, "vhaqn:lm:b:ptsrow:kN:xSTd:D:")) >= 0) {