aboutsummaryrefslogtreecommitdiffstats
path: root/minui/minui.h
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2014-03-07 09:21:25 -0800
committerDoug Zongker <dougz@google.com>2014-03-11 14:06:35 -0700
commit469954fe3d7c3d729e500512ab911a037b90cc77 (patch)
tree979387b5cb6cb777638f71c8773fbebbca04fea0 /minui/minui.h
parent2f173bde6584f4c560ecc3f13f6e890f52815050 (diff)
downloadbootable_recovery-469954fe3d7c3d729e500512ab911a037b90cc77.zip
bootable_recovery-469954fe3d7c3d729e500512ab911a037b90cc77.tar.gz
bootable_recovery-469954fe3d7c3d729e500512ab911a037b90cc77.tar.bz2
change how recovery animation is implemented
Instead of one 'base' installing image and a number of overlay images that are drawn on top of it, we represent the installing animation with one PNG that contains all the animation frames, interlaced by row. The PNG is expected to have a text chunk with the keyword 'Frames' and a value that's the number of frames (as an ascii string). This representation provides better compression, removes the need to subclass ScreenRecoveryUI just to change the position of the overlay or number of frames, and doesn't require gr_blit() to support an alpha channel. We also remove the 'indeterminate' progress bar used when wiping data and/or cache. The main animation serves the same purpose (showing that the device is still alive); the spinning progress bar has been redundant for a while. This changes the default recovery animation to include the antenna-wiggling and gear-turning that's used in the Nexus 5 recovery animation. Change-Id: I51930a76035ac09969a25472f4e572b289418729 Conflicts: screen_ui.cpp screen_ui.h
Diffstat (limited to 'minui/minui.h')
-rw-r--r--minui/minui.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/minui/minui.h b/minui/minui.h
index 1b8dd05..5c0defc 100644
--- a/minui/minui.h
+++ b/minui/minui.h
@@ -72,6 +72,7 @@ void ev_dispatch(void);
// Returns 0 if no error, else negative.
int res_create_surface(const char* name, gr_surface* pSurface);
+int res_create_multi_surface(const char* name, int* frames, gr_surface** pSurface);
int res_create_localized_surface(const char* name, gr_surface* pSurface);
void res_free_surface(gr_surface surface);