aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2015-04-08 22:06:50 -0500
committerElliott Hughes2015-04-08 22:06:50 -0500
commit8de52078a42882873322b19becb42612f7708b54 (patch)
tree07456a6307d1804376d51214e49698e2887ac1be /screen_ui.h
parentfbde407e4c72965aae4ea6dff7493e30af307ca5 (diff)
downloadplatform-bootable-recovery-8de52078a42882873322b19becb42612f7708b54.tar.gz
platform-bootable-recovery-8de52078a42882873322b19becb42612f7708b54.tar.xz
platform-bootable-recovery-8de52078a42882873322b19becb42612f7708b54.zip
Move file paging into ScreenRecoveryUI.
This fixes the N9 performance problem. Change-Id: I00c10d4162ff266a6243285e5a5e768217f6f799
Diffstat (limited to 'screen_ui.h')
-rw-r--r--screen_ui.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/screen_ui.h b/screen_ui.h
index 82647ac7..41ff4af1 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -48,6 +48,7 @@ class ScreenRecoveryUI : public RecoveryUI {
48 48
49 // printing messages 49 // printing messages
50 void Print(const char* fmt, ...) __printflike(2, 3); 50 void Print(const char* fmt, ...) __printflike(2, 3);
51 void ShowFile(const char* filename);
51 52
52 // menu display 53 // menu display
53 void StartMenu(const char* const * headers, const char* const * items, 54 void StartMenu(const char* const * headers, const char* const * items,
@@ -80,11 +81,10 @@ class ScreenRecoveryUI : public RecoveryUI {
80 float progressScopeStart, progressScopeSize, progress; 81 float progressScopeStart, progressScopeSize, progress;
81 double progressScopeTime, progressScopeDuration; 82 double progressScopeTime, progressScopeDuration;
82 83
83 // true when both graphics pages are the same (except for the 84 // true when both graphics pages are the same (except for the progress bar).
84 // progress bar)
85 bool pagesIdentical; 85 bool pagesIdentical;
86 86
87 // Log text overlay, displayed when a magic key is pressed 87 // Log text overlay, displayed when a magic key is pressed.
88 char** text; 88 char** text;
89 size_t text_cols, text_rows; 89 size_t text_cols, text_rows;
90 size_t text_col, text_row, text_top; 90 size_t text_col, text_row, text_top;
@@ -112,6 +112,8 @@ class ScreenRecoveryUI : public RecoveryUI {
112 static void* progress_thread(void* cookie); 112 static void* progress_thread(void* cookie);
113 void progress_loop(); 113 void progress_loop();
114 114
115 void print_no_update(const char*);
116
115 void LoadBitmap(const char* filename, gr_surface* surface); 117 void LoadBitmap(const char* filename, gr_surface* surface);
116 void LoadBitmapArray(const char* filename, int* frames, gr_surface** surface); 118 void LoadBitmapArray(const char* filename, int* frames, gr_surface** surface);
117 void LoadLocalizedBitmap(const char* filename, gr_surface* surface); 119 void LoadLocalizedBitmap(const char* filename, gr_surface* surface);