replicant-frameworks_native/include
Mathias Agopian d1a99ec6b2 fix [3361121] hang in glClear() - device unresponsive, OTA fails (DO NOT MERGE)
Generally we never want to lock a buffer for write access if it is at
the "head" on the surfaceflinger side. The only exception (1) is when
the buffer is not currently in use AND there is at least one queued
buffer -- in which case, SurfaceFlinger will never use said buffer
anymore, because on the next composition around, it will be able to
retire the first queued buffer.

The logic above relies on SurfaceFlinger always retiring
and locking a buffer before composition -- unfortunately this
didn't happen during a screenshot.

This could leave us in a situation where a buffer is locked by the
application for write, and used by SurfaceFlinger for texturing,
causing a hang.

Here, we fix this issue by never assuming the exception (1), it was
intended as an optimization allowing ANativeWindow::lockBuffer() to
return sooner and was justified when most of SF composition was
done in software. The actual buffer locking is now ensured by
gralloc. We could have handled screenshots in a similar way to
a regular composition, but it could have caused glitches on screen,
essentially, taking a screenshot could cause to skip a frame.

now that we removed the notion of a "inUse" buffer in surfaceflinger
a lot of code can be simplified / removed.

noteworthy, the whole concept of "unlockClient" wrt. "compositionComplete"
is also gone.
2011-01-25 14:19:13 -08:00
..
binder Don't propagate StrictMode over one-way Binder calls. 2010-08-31 13:16:49 -07:00
gui Replace epoll() with poll() and rename PollLoop to Looper. 2010-09-14 01:59:45 -07:00
pim
private fix [3361121] hang in glClear() - device unresponsive, OTA fails (DO NOT MERGE) 2011-01-25 14:19:13 -08:00
surfaceflinger minor clean-up. SurfaceFlinger doesn't need libpixelflinger.so. (DO NOT MERGE) 2011-01-25 14:18:15 -08:00
tts Update TTS plugin interface to receive engine configuration data 2010-03-18 11:52:41 -07:00
ui Filter virtual keys after touches. (DO NOT MERGE) 2011-01-11 20:56:04 -08:00
utils Merge "Revert to using epoll_wait()." into gingerbread 2010-10-14 22:18:43 -07:00