am 39c923a9: am 23bccd6c: Merge change I729c3938 into eclair-mr2

Merge commit '39c923a94c377a75e34153f6dddb83fc9883d2a7'

* commit '39c923a94c377a75e34153f6dddb83fc9883d2a7':
  Insert a small delay after submitting to surface flinger and before returning the buffer to the decoder.
This commit is contained in:
Andreas Huber
2009-10-13 11:58:40 -07:00
committed by Android Git Automerger

View File

@@ -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) {