diff options
author | Chia-I Wu <olv@google.com> | 2017-05-11 15:20:10 -0700 |
---|---|---|
committer | Chia-I Wu <olv@google.com> | 2017-05-12 08:40:48 -0700 |
commit | ec71f00148458a2f9172c5a53f56594ee86db4fb (patch) | |
tree | e6f6dbc491a68cc66fbeb0543b2a4a77b6857a38 /graphics/composer/2.1/default/service.cpp | |
parent | 4be51a8512c2fb72e57326ee5d9f5f1d06eee3a2 (diff) |
graphics: set maxThreads to 4 for the composer
There are implmentations that can dead lock when calling certain
functions in certain states. It works fine before HIDL because
SurfaceFlinger calls those functions in another thread. We allow
for 4 hwbinder threads in this commit to simulate how SurfaceFlinger
calls hwcomposer.
Bug: 38183197
Test: camera, videos, multi windows, screencap, screenrecord
Change-Id: Ie05b2ca349b8c1ed9a3ac962981434f2efee92d9
Diffstat (limited to 'graphics/composer/2.1/default/service.cpp')
-rw-r--r-- | graphics/composer/2.1/default/service.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/composer/2.1/default/service.cpp b/graphics/composer/2.1/default/service.cpp index aa0604a5a2..82a33f6a4e 100644 --- a/graphics/composer/2.1/default/service.cpp +++ b/graphics/composer/2.1/default/service.cpp @@ -40,5 +40,5 @@ int main() { ALOGE("Couldn't set SCHED_FIFO: %d", errno); } - return defaultPassthroughServiceImplementation<IComposer>(); + return defaultPassthroughServiceImplementation<IComposer>(4); } |