Fix DCHECK_LT in drm GetPanelOrientation
display::PanelOrientation::kLast is defined as the last element in enum display::PanelOrientation and the value could be equal to last element in enum. Therefore replace DCHECK_LT to DCHECK_LE. Bug: b/77900197 Test: build cast_shell Change-Id: If939e21eb91610e86897a05c7c8d6c5a0c58f532 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2219584 Commit-Queue: Daniele Castagna <dcastagna@chromium.org> Reviewed-by:Daniele Castagna <dcastagna@chromium.org> Cr-Commit-Position: refs/heads/master@{#773166}
Showing
Please register or sign in to comment