gralloc: Update implementation defined format in buffer info
Change-Id: I1a53c5524587b9d5fe318b63152169a77f11a0b5
This commit is contained in:
@@ -324,6 +324,7 @@ Error BufferManager::AllocateBuffer(const BufferDescriptor &descriptor, buffer_h
|
||||
|
||||
int buffer_type = GetBufferType(format);
|
||||
BufferInfo info = GetBufferInfo(descriptor);
|
||||
info.format = format;
|
||||
GetBufferSizeAndDimensions(info, &size, &alignedw, &alignedh);
|
||||
size = (bufferSize >= size) ? bufferSize : size;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user