summaryrefslogtreecommitdiffstats
path: root/screen_ui.h
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-10-25 05:01:42 +0200
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-10-25 05:01:42 +0200
commit94c230d84f28ac8742179afc8608cab3b0c7f704 (patch)
treec61ef3a9fd062733e2f24b27146ba2a474798c91 /screen_ui.h
parentSnap for 5087535 from a23b567dcb7e35739edae72a6e549d794a207596 to qt-release (diff)
parent[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE am: 0db98fa501 -s ours am: 5168a610d2 -s ours (diff)
downloadandroid_bootable_recovery-94c230d84f28ac8742179afc8608cab3b0c7f704.tar
android_bootable_recovery-94c230d84f28ac8742179afc8608cab3b0c7f704.tar.gz
android_bootable_recovery-94c230d84f28ac8742179afc8608cab3b0c7f704.tar.bz2
android_bootable_recovery-94c230d84f28ac8742179afc8608cab3b0c7f704.tar.lz
android_bootable_recovery-94c230d84f28ac8742179afc8608cab3b0c7f704.tar.xz
android_bootable_recovery-94c230d84f28ac8742179afc8608cab3b0c7f704.tar.zst
android_bootable_recovery-94c230d84f28ac8742179afc8608cab3b0c7f704.zip
Diffstat (limited to 'screen_ui.h')
-rw-r--r--screen_ui.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/screen_ui.h b/screen_ui.h
index b1be100f9..2d0d97d8d 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -60,14 +60,14 @@ class DrawInterface {
virtual int DrawTextLine(int x, int y, const std::string& line, bool bold) const = 0;
// Draws surface portion (sx, sy, w, h) at screen location (dx, dy).
- virtual void DrawSurface(GRSurface* surface, int sx, int sy, int w, int h, int dx,
+ virtual void DrawSurface(const GRSurface* surface, int sx, int sy, int w, int h, int dx,
int dy) const = 0;
// Draws rectangle at (x, y) - (x + w, y + h).
virtual void DrawFill(int x, int y, int w, int h) const = 0;
// Draws given surface (surface->pixel_bytes = 1) as text at (x, y).
- virtual void DrawTextIcon(int x, int y, GRSurface* surface) const = 0;
+ virtual void DrawTextIcon(int x, int y, const GRSurface* surface) const = 0;
// Draws multiple text lines. Returns the offset it should be moving along Y-axis.
virtual int DrawTextLines(int x, int y, const std::vector<std::string>& lines) const = 0;
@@ -316,9 +316,10 @@ class ScreenRecoveryUI : public RecoveryUI, public DrawInterface {
void SetColor(UIElement e) const override;
void DrawHighlightBar(int x, int y, int width, int height) const override;
int DrawHorizontalRule(int y) const override;
- void DrawSurface(GRSurface* surface, int sx, int sy, int w, int h, int dx, int dy) const override;
+ void DrawSurface(const GRSurface* surface, int sx, int sy, int w, int h, int dx,
+ int dy) const override;
void DrawFill(int x, int y, int w, int h) const override;
- void DrawTextIcon(int x, int y, GRSurface* surface) const override;
+ void DrawTextIcon(int x, int y, const GRSurface* surface) const override;
int DrawTextLine(int x, int y, const std::string& line, bool bold) const override;
int DrawTextLines(int x, int y, const std::vector<std::string>& lines) const override;
int DrawWrappedTextLines(int x, int y, const std::vector<std::string>& lines) const override;