Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eec4c4d7 authored by Jayant Chowdhary's avatar Jayant Chowdhary
Browse files

cameraserver: Replace IPC calls to OutputConfiguration's surface with in-process api calls



In SessionConfigurationUtils, while processing each surface for an
OutputConfiguration, we were calling BufferQueue IPC calls in order to
query the surface size and dataspace. These aren't really needed since
multiple surfaces within an OutputConfiguration have to be all
compatible. As a result, we can just use OutputConfiguration.getWidth() / getHeight()
which don't involve IPC so they save time and CPU cycles.

Bug: 397557217

Test: Camera CTS and GCA; ACameraNdkVendorTest

Flag: EXEMPT; bugfix

Change-Id: I452612b1dc13c802f0eac05c7499b533c8598e03
Signed-off-by: default avatarJayant Chowdhary <jchowdhary@google.com>
parent 6711543d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment