| Index: ui/ozone/platform/drm/common/drm_util.cc
|
| diff --git a/ui/ozone/platform/drm/common/drm_util.cc b/ui/ozone/platform/drm/common/drm_util.cc
|
| index dbe061ad96bb2d31ef529560194f0702f11607be..eb560ab5ab1f06fd71d5a4deab5530ee3f29aafd 100644
|
| --- a/ui/ozone/platform/drm/common/drm_util.cc
|
| +++ b/ui/ozone/platform/drm/common/drm_util.cc
|
| @@ -234,16 +234,16 @@ DisplaySnapshot_Params CreateDisplaySnapshotParams(
|
| GetDrmPropertyBlob(fd, info->connector(), "EDID"));
|
|
|
| if (edid_blob) {
|
| - std::vector<uint8_t> edid(
|
| + params.edid.assign(
|
| static_cast<uint8_t*>(edid_blob->data),
|
| static_cast<uint8_t*>(edid_blob->data) + edid_blob->length);
|
|
|
| - GetDisplayIdFromEDID(edid, connector_index, ¶ms.display_id,
|
| + GetDisplayIdFromEDID(params.edid, connector_index, ¶ms.display_id,
|
| ¶ms.product_id);
|
|
|
| - ParseOutputDeviceData(edid, nullptr, nullptr, ¶ms.display_name, nullptr,
|
| - nullptr);
|
| - ParseOutputOverscanFlag(edid, ¶ms.has_overscan);
|
| + ParseOutputDeviceData(params.edid, nullptr, nullptr, ¶ms.display_name,
|
| + nullptr, nullptr);
|
| + ParseOutputOverscanFlag(params.edid, ¶ms.has_overscan);
|
| } else {
|
| VLOG(1) << "Failed to get EDID blob for connector "
|
| << info->connector()->connector_id;
|
|
|