OSDN Git Service

SurfaceFlinger: reset the FB_TGT acquire fence
authorJamie Gennis <jgennis@google.com>
Mon, 1 Oct 2012 03:02:03 +0000 (20:02 -0700)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Mon, 1 Oct 2012 19:24:59 +0000 (12:24 -0700)
commitd30b36d1fd0c7ab80553e784a155266be9703e47
tree0e01b7a4d02000bc786ca48433234b6de8de8a54
parentec0f5e5f0c433666698fa55c2e38ccdc9cf0df44
SurfaceFlinger: reset the FB_TGT acquire fence

This change makes SurfaceFlinger reset the acquire fence fd to -1 after each
call to HWComposer::commit.  The HWComposer implementation is resonsible for
closing the fd, so SurfaceFlinger should make sure not to pass it to HWC
multiple times.

Change-Id: I79554d9f6d6ef2b77d632d40251516c1f5b16ddb
Bug: 7258954
services/surfaceflinger/DisplayHardware/HWComposer.cpp