diff options
author | Chihhang Chuang <chihhangchuang@google.com> | 2021-09-23 18:11:51 +0200 |
---|---|---|
committer | Chihhang Chuang <chihhangchuang@google.com> | 2021-09-23 21:21:55 +0200 |
commit | 6f7362ab7ba2a8576476a69db35c3eef0f3af56d (patch) | |
tree | b3402222ad0ccca840f7fa52d16647fb6ac8da34 /minui/include | |
parent | Merge "Remove magic code to flash the screen" (diff) | |
download | android_bootable_recovery-6f7362ab7ba2a8576476a69db35c3eef0f3af56d.tar android_bootable_recovery-6f7362ab7ba2a8576476a69db35c3eef0f3af56d.tar.gz android_bootable_recovery-6f7362ab7ba2a8576476a69db35c3eef0f3af56d.tar.bz2 android_bootable_recovery-6f7362ab7ba2a8576476a69db35c3eef0f3af56d.tar.lz android_bootable_recovery-6f7362ab7ba2a8576476a69db35c3eef0f3af56d.tar.xz android_bootable_recovery-6f7362ab7ba2a8576476a69db35c3eef0f3af56d.tar.zst android_bootable_recovery-6f7362ab7ba2a8576476a69db35c3eef0f3af56d.zip |
Diffstat (limited to 'minui/include')
-rw-r--r-- | minui/include/minui/minui.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/minui/include/minui/minui.h b/minui/include/minui/minui.h index 163e41dc6..5470457e7 100644 --- a/minui/include/minui/minui.h +++ b/minui/include/minui/minui.h @@ -104,10 +104,19 @@ enum class PixelFormat : int { ARGB = 4, }; -// Initializes the graphics backend and loads font file. Returns 0 on success, or -1 on error. Note -// that the font initialization failure would be non-fatal, as caller may not need to draw any text -// at all. Caller can check the font initialization result via gr_sys_font() as needed. +enum class GraphicsBackend : int { + UNKNOWN = 0, + DRM = 1, + FBDEV = 2, +}; + +// Initializes the default graphics backend and loads font file. Returns 0 on success, or -1 on +// error. Note that the font initialization failure would be non-fatal, as caller may not need to +// draw any text at all. Caller can check the font initialization result via gr_sys_font() as +// needed. int gr_init(); +// Supports backend selection for minui client. +int gr_init(std::initializer_list<GraphicsBackend> backends); // Frees the allocated resources. The function is idempotent, and safe to be called if gr_init() // didn't finish successfully. |