diff options
author | T.J. Mercier <tjmercier@google.com> | 2022-11-29 00:47:25 +0000 |
---|---|---|
committer | T.J. Mercier <tjmercier@google.com> | 2022-11-29 00:47:25 +0000 |
commit | 8a75eafef3f1198e0a32290d3de29c9b59a10f73 (patch) | |
tree | da474df949712624d6f774257bc7a96d0f8f735d /gralloc4/src | |
parent | 90ac14b0e4fbcf11d1d014af710b000c3fbd126f (diff) | |
download | gchips-8a75eafef3f1198e0a32290d3de29c9b59a10f73.tar.gz |
Do not use "Unnamed" as default name
Nothing appears to depend on this default value, and it requires an
additional condition which we remove here also.
Bug: 242097812
Change-Id: I74569cf24500748d624d4e41e2bbb4348d7bbb8b
Diffstat (limited to 'gralloc4/src')
-rw-r--r-- | gralloc4/src/allocator/mali_gralloc_ion.cpp | 2 | ||||
-rw-r--r-- | gralloc4/src/core/mali_gralloc_bufferdescriptor.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/gralloc4/src/allocator/mali_gralloc_ion.cpp b/gralloc4/src/allocator/mali_gralloc_ion.cpp index 153223a..bfd92d7 100644 --- a/gralloc4/src/allocator/mali_gralloc_ion.cpp +++ b/gralloc4/src/allocator/mali_gralloc_ion.cpp @@ -363,7 +363,7 @@ int ion_device::alloc_from_dmabuf_heap(const std::string& heap_name, size_t size ALOGE("Allocation failed for heap %s error: %d\n", heap_name.c_str(), shared_fd); } - if (!buffer_name.empty() && buffer_name != "Unnamed") { + if (!buffer_name.empty()) { if (buffer_allocator->DmabufSetName(shared_fd, buffer_name)) { ALOGW("Unable to set buffer name %s: %s", buffer_name.c_str(), strerror(errno)); } diff --git a/gralloc4/src/core/mali_gralloc_bufferdescriptor.h b/gralloc4/src/core/mali_gralloc_bufferdescriptor.h index 3c7c45f..826af79 100644 --- a/gralloc4/src/core/mali_gralloc_bufferdescriptor.h +++ b/gralloc4/src/core/mali_gralloc_bufferdescriptor.h @@ -66,7 +66,6 @@ struct buffer_descriptor_t hal_format(0), layer_count(0), format_type(MALI_GRALLOC_FORMAT_TYPE_USAGE), - name("Unnamed"), reserved_size(0), pixel_stride(0), alloc_format(0), |