commit | a5c54bc61ae3c6d301ae9075ae0e76abba4810a2 | [log] [tgz] |
---|---|---|
author | Krzysztof Kosiński <krzysio@google.com> | Fri Nov 16 18:24:33 2018 -0800 |
committer | Krzysztof Kosiński <krzysio@google.com> | Tue Nov 27 11:57:20 2018 -0800 |
tree | 8630ed3833e5905e68e53556486f3a0bf6aac3c3 | |
parent | 1f7c0e47948127734714cc887356fce13d3c7538 [diff] |
Add AHardwareBuffer_isSupported. This new function will check whether a buffer with the given description is allocatable. If the function returns false, buffer allocation will never succeed. The current implementation performs a trial allocation of a small buffer, but in the future this will be replaced by a HAL query. Bug: 115660272 Test: Builds and passes CTS on Pixel 2. Change-Id: Id0b1573ebf3194b1163324da773279da95782143