diff options
author | Fred Chiou <fredchiou@google.com> | 2022-09-07 08:17:08 +0200 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2022-09-07 08:17:08 +0200 |
commit | 3d43ec37f4971779b64c4a48e5275a39c16e7699 (patch) | |
tree | 1565ceed9166ef3da97f68b1d2d478c8e9eac027 /minui/graphics_drm.cpp | |
parent | [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-d1-dev am: 0b490d6b23 -s ours (diff) | |
parent | recovery_ui:Add support for multiple connectors switch (diff) | |
download | android_bootable_recovery-3d43ec37f4971779b64c4a48e5275a39c16e7699.tar android_bootable_recovery-3d43ec37f4971779b64c4a48e5275a39c16e7699.tar.gz android_bootable_recovery-3d43ec37f4971779b64c4a48e5275a39c16e7699.tar.bz2 android_bootable_recovery-3d43ec37f4971779b64c4a48e5275a39c16e7699.tar.lz android_bootable_recovery-3d43ec37f4971779b64c4a48e5275a39c16e7699.tar.xz android_bootable_recovery-3d43ec37f4971779b64c4a48e5275a39c16e7699.tar.zst android_bootable_recovery-3d43ec37f4971779b64c4a48e5275a39c16e7699.zip |
Diffstat (limited to 'minui/graphics_drm.cpp')
-rw-r--r-- | minui/graphics_drm.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/minui/graphics_drm.cpp b/minui/graphics_drm.cpp index c55702276..6c3a5bdee 100644 --- a/minui/graphics_drm.cpp +++ b/minui/graphics_drm.cpp @@ -200,6 +200,10 @@ void MinuiBackendDrm::Blank(bool blank, DrmConnector index) { } } +bool MinuiBackendDrm::HasMultipleConnectors() { + return (drm[DRM_SEC].GRSurfaceDrms[0] && drm[DRM_SEC].GRSurfaceDrms[1]); +} + static drmModeCrtc* find_crtc_for_connector(int fd, drmModeRes* resources, drmModeConnector* connector) { // Find the encoder. If we already have one, just use it. |