Commit 8f8853c2 authored by Miguel Casas's avatar Miguel Casas Committed by Commit Bot

drm_util: correct initial value of |display_id|

This CL corrects the initialization value of |display_id| from -1
(which is bad) to what it used to have before the CL reviewed in

https://chromium-review.googlesource.com/c/chromium/src/+/970085/23/ui/ozone/platform/drm/common/drm_util.cc#b385

The -1 it breaks (at least) amd64-generic-tot-chromium-pfq-informational
(see bug).

TBR=dnicoara@chromium.org since it's a trivial fix and has been verified.

Bug: 832136
Change-Id: I3c1db741979f20877483880b87f2d052b2a02cf9
Reviewed-on: https://chromium-review.googlesource.com/1010517
Commit-Queue: Miguel Casas <mcasas@chromium.org>
Reviewed-by: default avatarDaniel Nicoara <dnicoara@chromium.org>
Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550495}
parent a3728c08
...@@ -392,7 +392,7 @@ std::unique_ptr<display::DisplaySnapshot> CreateDisplaySnapshot( ...@@ -392,7 +392,7 @@ std::unique_ptr<display::DisplaySnapshot> CreateDisplaySnapshot(
const gfx::Size maximum_cursor_size = GetMaximumCursorSize(fd); const gfx::Size maximum_cursor_size = GetMaximumCursorSize(fd);
std::string display_name; std::string display_name;
int64_t display_id = -1; int64_t display_id = display_index;
int64_t product_code = display::DisplaySnapshot::kInvalidProductCode; int64_t product_code = display::DisplaySnapshot::kInvalidProductCode;
int32_t year_of_manufacture = display::kInvalidYearOfManufacture; int32_t year_of_manufacture = display::kInvalidYearOfManufacture;
bool has_overscan = false; bool has_overscan = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment