OSDN Git Service

surfaceflinger: Use only one EventThread when phase offsets are same.
authorOmprakash Dhyade <odhyade@codeaurora.org>
Fri, 5 Feb 2016 22:54:08 +0000 (14:54 -0800)
committerSteve Kondik <steve@cyngn.com>
Mon, 29 Feb 2016 09:37:36 +0000 (09:37 +0000)
commit9e3751980f9748f77acef3fd277735667d02901f
tree43a26bb17b7934e0ca655cabde92a06254ad3ae7
parentb0cda680c2aaa3cbc0ae080c51f8c21a3e93adb0
surfaceflinger: Use only one EventThread when phase offsets are same.

SurfaceFlinger uses two event-threads to support phase-offsets
for application and SurfaceFlinger itself. Extra thread may
cause scheduling issues and wake-up latency for either
SurfaceFlinger or Application, depending on scheduling, even
when running at higher priority as these threads have low-load
and qualify for task-packing.

Use single event-thread when phase offsets are same.

Debug runtime service call behavior change when same phase-offset:
1018 (set phase offset for Application): will change both
Application and SurfaceFlinger phase offsets.
1019 (set phase offset for SurfaceFlinger): Will be a no-op.

Change-Id: I2514b4ff6249e9bce3eb19f60b1dfe0de12b86d9
services/surfaceflinger/SurfaceFlinger.cpp