OSDN Git Service

libgui: New mutex for ConsumerBase frame callbacks
authorDan Stoza <stoza@google.com>
Mon, 26 Jun 2017 21:27:18 +0000 (14:27 -0700)
committerDan Stoza <stoza@google.com>
Mon, 26 Jun 2017 21:27:18 +0000 (14:27 -0700)
commit95971c8172495f7b6a0ede1a3508472b9a4e7b36
tree1de55d3c919e9d0c075b9841f1a124dd15e914f7
parenta17b14eb92f6c21a9cea97ed0ca30df74da9fc29
libgui: New mutex for ConsumerBase frame callbacks

Adds a new mutex to protect ConsumerBase's mFrameAvailableListener
separately from the main mMutex. This prevents deadlocks when trying
to perform callbacks in response to other calls that come through
ConsumerBase.

Bug: 62915791
Test: EncodeVirtualDisplayWithCompositionTest#
          testRenderingMaxResolutionRemotely

Change-Id: I244dc2d83488e452d9690c0d7847c9ff15a95dbb
include/gui/ConsumerBase.h
libs/gui/ConsumerBase.cpp
services/surfaceflinger/SurfaceFlingerConsumer.cpp