gralloc1: update aligned size of buffer in native handle
During buffer allocation, the aligned size of the buffer should be updated in newly allocated native handle (private_handle_t) before returning the native handle to the caller. Secure playback has strict requirement like 1M aligned size, so secure playback fails if the aligned size of buffer is not updated in handle before returning to the caller. Change-Id: I8d8da13048b8423c07ebb3a3923fb331e06e3db1
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
82f1bc5e98
commit
6f3dcf80f0
@@ -508,7 +508,7 @@ int BufferManager::AllocateBuffer(const BufferDescriptor &descriptor, buffer_han
|
||||
descriptor.GetHeight(),
|
||||
format,
|
||||
buffer_type,
|
||||
size,
|
||||
data.size,
|
||||
prod_usage,
|
||||
cons_usage);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user