drm_hwcomposer: Fix BufferInfoMaliMeson
In commit e9fbd8d626a2 ("drm_hwcomposer: Set return type to
std::optional for BufferInfoGetters") the final return for
BufferInfoMaliMeson::GetBoInfo() erroneously was changed to
return {} instead of the calculated BufferInfo object.
This simply fixes the issue, returning the BufferInfo.
Change-Id: I03789b48dc4a0df64432f7ff31661746163a96b8
Signed-off-by: John Stultz <jstultz@google.com>
diff --git a/bufferinfo/legacy/BufferInfoMaliMeson.cpp b/bufferinfo/legacy/BufferInfoMaliMeson.cpp
index cadc2bc..8160296 100644
--- a/bufferinfo/legacy/BufferInfoMaliMeson.cpp
+++ b/bufferinfo/legacy/BufferInfoMaliMeson.cpp
@@ -86,7 +86,7 @@
bi.pitches[0] = hnd->byte_stride;
bi.offsets[0] = 0;
- return {};
+ return bi;
}
} // namespace android