OSDN Git Service

Always reset layer acquireFenceFd after commit
authorJesse Hall <jessehall@google.com>
Wed, 5 Sep 2012 20:03:10 +0000 (13:03 -0700)
committerThe Android Automerger <android-build@android.com>
Wed, 5 Sep 2012 23:52:13 +0000 (16:52 -0700)
commit02de802182b368f1a32373e8f7a2996b13f9ca5c
tree61bcc3c8d42dd7a5f0ba16bdcec8ff0f4e34a78d
parent2cf855fbef641abdda69abe39005ea3d6c7830f0
Always reset layer acquireFenceFd after commit

If SurfaceFlinger needs to refresh the screen but the dirty region is
empty, it won't set the layer acquire fences, and stale file
descriptors will be passed to HWC commit(). Now we make sure to clear
the stale file descriptors for each layer right after commit().

Bug: 7078301
Change-Id: I6953ff91fc5488f105b30b07306f9c45a4c3f780
services/surfaceflinger/DisplayHardware/HWComposer.cpp