OSDN Git Service

drm_hwcomposer: limit maximum depth of display composition queue
authorZach Reizner <zachr@google.com>
Tue, 28 Jul 2015 22:33:07 +0000 (15:33 -0700)
committerZachary Reizner <zachr@google.com>
Wed, 29 Jul 2015 00:22:51 +0000 (00:22 +0000)
commitd410f04ec8db892eb37758ddd230223ccab801bc
tree1c972d970afb8d03adca750b0035faaa37517264
parent7912438911de042dc035cf1ea39daaf4e56bf9f3
drm_hwcomposer: limit maximum depth of display composition queue

SurfaceFlinger will destroy our layer handles if we don't use them after about
a second. To get around this issue, we block SurfaceFlinger on hwc_set if the
display composition queue is getting too large. This often happens during
the init of the GLWorker or during heavy GPU usage.

Change-Id: Idb4a3a81e0d3a2caf7f94e5515a19ec16a1c67e3
drmdisplaycompositor.cpp