diff options
author | Steve Kondik <steve@cyngn.com> | 2015-03-30 04:26:56 -0700 |
---|---|---|
committer | Tom Marshall <tdm@cyngn.com> | 2015-11-25 15:35:47 -0800 |
commit | fb1db30c09b083bebe33b81f4f6771aed21399f7 (patch) | |
tree | 52f62d9165b2dd7b0cef097fb0cccad96071dde4 /screen_ui.h | |
parent | f028ccd3443a4526c245c8c664b37588be301eb2 (diff) | |
download | bootable_recovery-fb1db30c09b083bebe33b81f4f6771aed21399f7.zip bootable_recovery-fb1db30c09b083bebe33b81f4f6771aed21399f7.tar.gz bootable_recovery-fb1db30c09b083bebe33b81f4f6771aed21399f7.tar.bz2 |
sr: Fix all the graphics issues
* Get rid of all the jank and flicker.
* Fix preserved backbuffer
* Simplify the code, all drawing happens on a
single thread now.
Change-Id: I36e1deee0663defd8aea1eba985e3ecbd408eac0
Diffstat (limited to 'screen_ui.h')
-rw-r--r-- | screen_ui.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/screen_ui.h b/screen_ui.h index b03b6ef..df77e8b 100644 --- a/screen_ui.h +++ b/screen_ui.h @@ -84,6 +84,8 @@ class ScreenRecoveryUI : public RecoveryUI { bool rtl_locale; pthread_mutex_t updateMutex; + pthread_cond_t progressCondition; + GRSurface* headerIcon; GRSurface* backgroundIcon[NR_ICONS]; GRSurface* backgroundText[NR_ICONS]; @@ -146,6 +148,8 @@ class ScreenRecoveryUI : public RecoveryUI { int header_height_, header_width_; int text_first_row_; + bool update_waiting; + void draw_background_locked(Icon icon); void draw_progress_locked(); int draw_header_icon(); @@ -153,7 +157,6 @@ class ScreenRecoveryUI : public RecoveryUI { void draw_dialog(); void draw_screen_locked(); void update_screen_locked(); - void update_progress_locked(); static void* ProgressThreadStartRoutine(void* data); void ProgressThreadLoop(); |