diff options
author | Tao Bao <tbao@google.com> | 2018-08-03 23:51:20 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-08-03 23:51:20 +0200 |
commit | ebc04d1e7ae8226edbe45e72ed323d4d21c2e135 (patch) | |
tree | d9041ae5a247ebcb4c6b7103c07bd6543f7db614 /minui/include | |
parent | Merge "ui: Read custom recovery UI values via system property." (diff) | |
parent | minui: Use runtime properties instead of build time vars. (diff) | |
download | android_bootable_recovery-ebc04d1e7ae8226edbe45e72ed323d4d21c2e135.tar android_bootable_recovery-ebc04d1e7ae8226edbe45e72ed323d4d21c2e135.tar.gz android_bootable_recovery-ebc04d1e7ae8226edbe45e72ed323d4d21c2e135.tar.bz2 android_bootable_recovery-ebc04d1e7ae8226edbe45e72ed323d4d21c2e135.tar.lz android_bootable_recovery-ebc04d1e7ae8226edbe45e72ed323d4d21c2e135.tar.xz android_bootable_recovery-ebc04d1e7ae8226edbe45e72ed323d4d21c2e135.tar.zst android_bootable_recovery-ebc04d1e7ae8226edbe45e72ed323d4d21c2e135.zip |
Diffstat (limited to 'minui/include')
-rw-r--r-- | minui/include/minui/minui.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/minui/include/minui/minui.h b/minui/include/minui/minui.h index 97660d476..fa13ecdff 100644 --- a/minui/include/minui/minui.h +++ b/minui/include/minui/minui.h @@ -48,6 +48,13 @@ enum class GRRotation : int { LEFT = 3, }; +enum class PixelFormat : int { + UNKNOWN = 0, + ABGR = 1, + RGBX = 2, + BGRA = 3, +}; + // 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. @@ -85,6 +92,9 @@ unsigned int gr_get_height(const GRSurface* surface); // Sets rotation, flips gr_fb_width/height if 90 degree rotation difference void gr_rotate(GRRotation rotation); +// Returns the current PixelFormat being used. +PixelFormat gr_pixel_format(); + // // Input events. // |