diff options
author | Marissa Wall <marissaw@google.com> | 2020-02-28 20:22:46 +0100 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2021-01-21 23:05:21 +0100 |
commit | 7429176260d94654738d46bb30d4dbbbdae6bc24 (patch) | |
tree | ce9b21688286421094c50ca26bb8718d1fd8da15 /minui/graphics.cpp | |
parent | Merge "Don't build host binary for applypatch" (diff) | |
download | android_bootable_recovery-7429176260d94654738d46bb30d4dbbbdae6bc24.tar android_bootable_recovery-7429176260d94654738d46bb30d4dbbbdae6bc24.tar.gz android_bootable_recovery-7429176260d94654738d46bb30d4dbbbdae6bc24.tar.bz2 android_bootable_recovery-7429176260d94654738d46bb30d4dbbbdae6bc24.tar.lz android_bootable_recovery-7429176260d94654738d46bb30d4dbbbdae6bc24.tar.xz android_bootable_recovery-7429176260d94654738d46bb30d4dbbbdae6bc24.tar.zst android_bootable_recovery-7429176260d94654738d46bb30d4dbbbdae6bc24.zip |
Diffstat (limited to '')
-rw-r--r-- | minui/graphics.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/minui/graphics.cpp b/minui/graphics.cpp index d34da5674..dce1e619a 100644 --- a/minui/graphics.cpp +++ b/minui/graphics.cpp @@ -25,7 +25,6 @@ #include <android-base/properties.h> -#include "graphics_adf.h" #include "graphics_drm.h" #include "graphics_fbdev.h" #include "minui/minui.h" @@ -362,15 +361,10 @@ int gr_init() { ret); } - auto backend = std::unique_ptr<MinuiBackend>{ std::make_unique<MinuiBackendAdf>() }; + auto backend = std::unique_ptr<MinuiBackend>{ std::make_unique<MinuiBackendDrm>() }; gr_draw = backend->Init(); if (!gr_draw) { - backend = std::make_unique<MinuiBackendDrm>(); - gr_draw = backend->Init(); - } - - if (!gr_draw) { backend = std::make_unique<MinuiBackendFbdev>(); gr_draw = backend->Init(); } |