aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stultz <jstultz@google.com>2022-07-07 21:45:47 +0000
committerJohn Stultz <jstultz@google.com>2022-07-07 21:49:28 +0000
commit9f4e3dbb3b3857eba150ecefce3baeba17a6bfa5 (patch)
tree64a12e356581a648f100758f3fd33527a609e9b6
parent799e8c74c65e5d12d354a0b3f2b541f3d44273a2 (diff)
downloaddrm_hwcomposer-9f4e3dbb3b3857eba150ecefce3baeba17a6bfa5.tar.gz
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>
-rw-r--r--bufferinfo/legacy/BufferInfoMaliMeson.cpp2
1 files changed, 1 insertions, 1 deletions
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 @@ auto BufferInfoMaliMeson::GetBoInfo(buffer_handle_t handle)
bi.pitches[0] = hnd->byte_stride;
bi.offsets[0] = 0;
- return {};
+ return bi;
}
} // namespace android