Merge "hwc2: Get Mapper instance in frame dump utility"
diff --git a/sdm/libs/hwc2/hwc_buffer_allocator.cpp b/sdm/libs/hwc2/hwc_buffer_allocator.cpp
index dab9885..e1d32db 100644
--- a/sdm/libs/hwc2/hwc_buffer_allocator.cpp
+++ b/sdm/libs/hwc2/hwc_buffer_allocator.cpp
@@ -397,6 +397,10 @@
}
DisplayError HWCBufferAllocator::MapBuffer(const private_handle_t *handle, int acquire_fence) {
+ auto err = GetGrallocInstance();
+ if (err != kErrorNone) {
+ return err;
+ }
void *buffer_ptr = NULL;
const IMapper::Rect access_region = {.left = 0, .top = 0, .width = 0, .height = 0};