diff options
author | Ramkumar Radhakrishnan <ramkumar@codeaurora.org> | 2017-05-03 14:28:43 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-05-03 18:02:18 -0700 |
commit | 57d5512eaa99e6b95eab04b58166f592ee83b90c (patch) | |
tree | 853afa3afd58a86d88317e68afe7f142173c37d3 /sdm/libs/hwc2/hwc_buffer_allocator.cpp | |
parent | 989c08a2554ac90861e036f9efd0fbedd5f5aff5 (diff) |
sdm: Pass arguments to GetBufferSizeAndDimensions() appropriately
Pass pointer to buffer_size, buffer_width and buffer_height as per
GetBufferSizeAndDimensions() declaration to avoid any functionality
failures.
Change-Id: I67169d1e6e2b85374bb47c1a81f8ca74d2217b0f
CRs-Fixed: 2042304
Diffstat (limited to 'sdm/libs/hwc2/hwc_buffer_allocator.cpp')
-rw-r--r-- | sdm/libs/hwc2/hwc_buffer_allocator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sdm/libs/hwc2/hwc_buffer_allocator.cpp b/sdm/libs/hwc2/hwc_buffer_allocator.cpp index b7fcac32..bdebc228 100644 --- a/sdm/libs/hwc2/hwc_buffer_allocator.cpp +++ b/sdm/libs/hwc2/hwc_buffer_allocator.cpp @@ -165,7 +165,7 @@ uint32_t HWCBufferAllocator::GetBufferSize(BufferInfo *buffer_info) { producer_usage = gralloc1_producer_usage_t(alloc_flags); consumer_usage = gralloc1_consumer_usage_t(alloc_flags); gralloc1::BufferInfo info(width, height, format, producer_usage, consumer_usage); - GetBufferSizeAndDimensions(info, &aligned_width, &aligned_height, &buffer_size); + GetBufferSizeAndDimensions(info, &buffer_size, &aligned_width, &aligned_height); return buffer_size; } @@ -312,7 +312,7 @@ DisplayError HWCBufferAllocator::GetAllocatedBufferInfo( producer_usage = gralloc1_producer_usage_t(alloc_flags); consumer_usage = gralloc1_consumer_usage_t(alloc_flags); gralloc1::BufferInfo info(width, height, format, producer_usage, consumer_usage); - GetBufferSizeAndDimensions(info, &aligned_width, &aligned_height, &buffer_size); + GetBufferSizeAndDimensions(info, &buffer_size, &aligned_width, &aligned_height); allocated_buffer_info->stride = UINT32(aligned_width); allocated_buffer_info->aligned_width = UINT32(aligned_width); allocated_buffer_info->aligned_height = UINT32(aligned_height); |