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

Commit 23bccd6c authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change I729c3938 into eclair-mr2

* changes:
  Insert a small delay after submitting to surface flinger and before returning the buffer to the decoder.
parents 50b11ec6 729c3938
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -83,6 +83,11 @@ void QComHardwareRenderer::render(
    }

    mISurface->postBuffer(offset);

    // Since we cannot tell how long it'll take until surface flinger
    // has displayed the data onscreen, we'll just have to guess...
    // We must not return the buffer to the decoder before it's been displayed.
    usleep(25000);
}

bool QComHardwareRenderer::getOffset(void *platformPrivate, size_t *offset) {