Go to file
Jesse Hall 2f4b68d21c SurfaceFlinger: fix layer removal race condition
Layer::lockPageFlip() and layer::onRemove() could be called on
different threads and race such that lockPageFlip() successfully
called mSurfaceTexture->updateTexImage() but then gets NULL back from
mSurfaceTexture->getCurrentBuffer(), leading to a crash.

This change moves Layer::onRemove() calls to
SurfaceFlinger::commitTransaction() so they happen after the Layer is
done being drawn from and only happen on the main surfaceflinger
thread.

Change-Id: I4b550caadff4cc1878d7c3bca6129193fb0c713e
2011-12-02 10:03:25 -08:00
cmds Remove the simulator target from all makefiles. 2011-07-11 22:12:16 -07:00
include Merge changes I7e973a35,Ib3386fcc into ics-mr1 2011-11-29 17:46:35 -08:00
libs SurfaceTexture: add EGL_KHR_fence_sync option 2011-11-29 17:09:01 -08:00
opengl add a way to access the version string of the h/w implementation of EGL 2011-11-29 18:00:35 -08:00
services/surfaceflinger SurfaceFlinger: fix layer removal race condition 2011-12-02 10:03:25 -08:00
MODULE_LICENSE_APACHE2
NOTICE resolved conflicts for merge of adee6b35 to honeycomb-plus-aosp 2011-01-17 14:17:12 -08:00