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

Commit a857bed0 authored by Steve Pfetsch's avatar Steve Pfetsch Committed by Automerger Merge Worker
Browse files

Merge "TouchVideoDevice: Silence log spam" into sc-dev am: ef32db74

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/14811641

Change-Id: I18bb6d948064918123b0d855974109d7c52c9623
parents 566f3f81 ef32db74
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -169,8 +169,9 @@ size_t TouchVideoDevice::readAndQueueFrames() {
    mFrames.insert(mFrames.end(), std::make_move_iterator(frames.begin()),
                   std::make_move_iterator(frames.end()));
    if (mFrames.size() > MAX_QUEUE_SIZE) {
        ALOGE("More than %zu frames have been accumulated. Dropping %zu frames", MAX_QUEUE_SIZE,
              mFrames.size() - MAX_QUEUE_SIZE);
        // A user-space grip suppression process may be processing the video frames, and holding
        // back the input events. This could result in video frames being produced without the
        // matching input events. Drop the oldest frame here to prepare for the next input event.
        mFrames.erase(mFrames.begin(), mFrames.end() - MAX_QUEUE_SIZE);
    }
    return numFrames;