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:
Jayant Chowdhary <jchowdhary@google.com>
Loading
Please register or sign in to comment