aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Song2017-09-19 12:51:35 -0500
committerTao Bao2017-10-05 14:02:13 -0500
commit92eda4db6cf6aae9fb9954c2555742ad7d1cd96a (patch)
treeff3dae97202620c6a9a37f891b580ecf3fd6be7e /vr_ui.h
parent9baa19012a535fa158d00fe37f19b1fbae5381cf (diff)
downloadplatform-bootable-recovery-92eda4db6cf6aae9fb9954c2555742ad7d1cd96a.tar.gz
platform-bootable-recovery-92eda4db6cf6aae9fb9954c2555742ad7d1cd96a.tar.xz
platform-bootable-recovery-92eda4db6cf6aae9fb9954c2555742ad7d1cd96a.zip
vr_ui: drawing changes
Change drawing of horizontal bars. Implement image and background drawing. Bug: 65556996 Test: Viewed graphics test Change-Id: I68ddd997123607dbebf972af5a455ce8ef0c7075
Diffstat (limited to 'vr_ui.h')
-rw-r--r--vr_ui.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/vr_ui.h b/vr_ui.h
index d996c145..eeb45891 100644
--- a/vr_ui.h
+++ b/vr_ui.h
@@ -28,8 +28,14 @@ class VrRecoveryUI : public ScreenRecoveryUI {
28 // Can vary per device depending on screen size and lens distortion. 28 // Can vary per device depending on screen size and lens distortion.
29 const int kStereoOffset; 29 const int kStereoOffset;
30 30
31 bool InitTextParams() override; 31 int ScreenWidth() const override;
32 int ScreenHeight() const override;
32 33
34 void DrawSurface(GRSurface* surface, int sx, int sy, int w, int h, int dx, int dy) const override;
35 int DrawHorizontalRule(int y) const override;
36 void DrawHighlightBar(int x, int y, int width, int height) const override;
37 void DrawFill(int x, int y, int w, int h) const override;
38 void DrawTextIcon(int x, int y, GRSurface* surface) const override;
33 int DrawTextLine(int x, int y, const char* line, bool bold) const override; 39 int DrawTextLine(int x, int y, const char* line, bool bold) const override;
34}; 40};
35 41