mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "gralloc: require locked buffers follow format"
This commit is contained in:
committed by
Android (Google) Code Review
commit
7dbc6e184e
@@ -202,6 +202,9 @@ interface IMapper {
|
||||
* the buffer. If the bytesPerStride is unknown or variable, a value of -1
|
||||
* should be returned.
|
||||
*
|
||||
* The locked buffer must adhere to the format requested at allocation time
|
||||
* in the BufferDescriptorInfo.
|
||||
*
|
||||
* @param buffer Buffer to lock.
|
||||
* @param cpuUsage CPU usage flags to request. See +ndk
|
||||
* libnativewindow#AHardwareBuffer_UsageFlags for possible values.
|
||||
|
||||
Reference in New Issue
Block a user