OSDN Git Service

SurfaceFlinger: Add EventControlThread
authorJamie Gennis <jgennis@google.com>
Mon, 14 Oct 2013 19:22:52 +0000 (12:22 -0700)
committerJamie Gennis <jgennis@google.com>
Tue, 15 Oct 2013 21:31:41 +0000 (14:31 -0700)
commitd1700756ec9520c3fba22f9a14fd064a6e288810
tree374a009fe2ba6a15260d80f9190116babf348c73
parent247423751fd4bfb0b1f87537c985413a28fd04a1
SurfaceFlinger: Add EventControlThread

This change adds a new thread for calling HWComposer's eventControl
asynchronously.  The DispSync-based vsync approach ends up enabling and
disabling HWComposer's vsync callbacks at arbitrary times, and some HWComposer
implementations do not have these calls optimized.

Bug: 11175503
Change-Id: I719be82bd200b391c61d40863b991c7b59acdfd6
services/surfaceflinger/Android.mk
services/surfaceflinger/EventControlThread.cpp [new file with mode: 0644]
services/surfaceflinger/EventControlThread.h [new file with mode: 0644]
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h