OSDN Git Service

simplify further vsync handling
authorMathias Agopian <mathias@google.com>
Tue, 21 Aug 2012 22:47:28 +0000 (15:47 -0700)
committerMathias Agopian <mathias@google.com>
Thu, 23 Aug 2012 22:26:27 +0000 (15:26 -0700)
commitf6bbd44a23c2791277db7814a894633de04cd460
tree572803e411f313867fef5be0261d0ffc20f476e6
parentbc46e0ad869befcfa97f6272615cdeae2135008f
simplify further vsync handling

- we now clean-up "dead" connection in the main loop,
this entirely avoid the problem with the side effects of
releasing strong references. We now only hold on to strong
reference for the connection we will signal.

- also simplify how we build the list of "ready" connections, by
only adding them to the list when we did receive a vsync event

Change-Id: I2a84da431320a2af8e8a93e07622a1d258236f43
services/surfaceflinger/EventThread.cpp
services/surfaceflinger/EventThread.h