diff options
author | Weizhung Ding <weizhungding@google.com> | 2021-09-27 05:30:26 +0200 |
---|---|---|
committer | Weizhung Ding <weizhungding@google.com> | 2022-01-25 09:49:55 +0100 |
commit | f4dfa1adbbb1f18e4cbb58635b5bca91a2a7fe16 (patch) | |
tree | b5823c2d451cc5a8c84b71336571e8bd4d074ab9 /minui/graphics.h | |
parent | Merge "[MTE] Add interface to communicate MTE status to bootloader." (diff) | |
download | android_bootable_recovery-f4dfa1adbbb1f18e4cbb58635b5bca91a2a7fe16.tar android_bootable_recovery-f4dfa1adbbb1f18e4cbb58635b5bca91a2a7fe16.tar.gz android_bootable_recovery-f4dfa1adbbb1f18e4cbb58635b5bca91a2a7fe16.tar.bz2 android_bootable_recovery-f4dfa1adbbb1f18e4cbb58635b5bca91a2a7fe16.tar.lz android_bootable_recovery-f4dfa1adbbb1f18e4cbb58635b5bca91a2a7fe16.tar.xz android_bootable_recovery-f4dfa1adbbb1f18e4cbb58635b5bca91a2a7fe16.tar.zst android_bootable_recovery-f4dfa1adbbb1f18e4cbb58635b5bca91a2a7fe16.zip |
Diffstat (limited to 'minui/graphics.h')
-rw-r--r-- | minui/graphics.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/minui/graphics.h b/minui/graphics.h index 3c45a406b..5408c93e9 100644 --- a/minui/graphics.h +++ b/minui/graphics.h @@ -21,6 +21,12 @@ class MinuiBackend { public: + enum DrmConnector { + DRM_MAIN = 0, + DRM_SEC, + DRM_MAX, + }; + // Initializes the backend and returns a GRSurface* to draw into. virtual GRSurface* Init() = 0; @@ -28,9 +34,12 @@ class MinuiBackend { // be displayed, and returns a new drawing surface. virtual GRSurface* Flip() = 0; - // Blank (or unblank) the screen. + // Blank (or unblank) the default screen. virtual void Blank(bool) = 0; + // Blank (or unblank) the specific screen. + virtual void Blank(bool blank, DrmConnector index) = 0; + // Device cleanup when drawing is done. virtual ~MinuiBackend() {}; }; |