Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Unified Diff: ui/ozone/platform/drm/common/drm_util.cc

Issue 2629773004: ozone: Select a crtc even when KMS doesn't report any plane for it. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0baf95eae76f80117626e0e34ad6dce23ca3b0c7..fff21503e8a43eb02c3506982058fd4e30a16d1e 100644
--- a/ui/ozone/platform/drm/common/drm_util.cc
+++ b/ui/ozone/platform/drm/common/drm_util.cc
@@ -52,7 +52,7 @@ uint32_t GetCrtc(int fd,
DCHECK_GE(32, resources->count_crtcs);
uint32_t best_crtc = 0;
- int best_crtc_planes = 0;
+ int best_crtc_planes = -1;
// Try to find an encoder for the connector.
for (int i = 0; i < connector->count_encoders; ++i) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698