OSDN Git Service

In SurfaceFlinger, test fence before merging
authorMatthew Bouyack <mbouyack@google.com>
Fri, 7 Oct 2016 22:06:15 +0000 (15:06 -0700)
committerMatthew Bouyack <mbouyack@google.com>
Mon, 17 Oct 2016 19:47:33 +0000 (12:47 -0700)
commit377c2033750ad2a47e5c560f982a0242ea7dc79e
tree7282135b83be7c6b04a815ce10ee7e569735d646
parent6db42ac36e69ab203e9078e9f70c2ff762af87cd
In SurfaceFlinger, test fence before merging

If the old fence for a given layer has already expired, we can replace
it with the new fence rather than merging the two.

This saves 300-400us per frame on Android Wear

Change-Id: I5d907c336c7383ae4e2e0f71e42f23749494a359
libs/gui/ConsumerBase.cpp