summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.h
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2021-02-01 09:51:30 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-02-01 09:51:30 +0000
commit87d840adddab6dfbed044a6f08d4790ca465c111 (patch)
tree68c0fa8d7b16cc0ba6983df485421242dd9a264a /cmds/bootanimation/BootAnimation.h
parent3d70ab73eb0c8dba5d36bb413611db66efcf8cf0 (diff)
parentbbb00e78ef87e45ffb25b9347c648a04fac00b6e (diff)
Merge "Support for showing percent progress in boot animation."
Diffstat (limited to 'cmds/bootanimation/BootAnimation.h')
-rw-r--r--cmds/bootanimation/BootAnimation.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmds/bootanimation/BootAnimation.h b/cmds/bootanimation/BootAnimation.h
index aee385387f57..b52222c799b0 100644
--- a/cmds/bootanimation/BootAnimation.h
+++ b/cmds/bootanimation/BootAnimation.h
@@ -100,11 +100,13 @@ public:
int fps;
int width;
int height;
+ bool progressEnabled;
Vector<Part> parts;
String8 audioConf;
String8 fileName;
ZipFileRO* zip;
Font clockFont;
+ Font progressFont;
};
// All callbacks will be called from this class's internal thread.
@@ -168,6 +170,7 @@ private:
bool movie();
void drawText(const char* str, const Font& font, bool bold, int* x, int* y);
void drawClock(const Font& font, const int xPos, const int yPos);
+ void drawProgress(int percent, const Font& font, const int xPos, const int yPos);
void fadeFrame(int frameLeft, int frameBottom, int frameWidth, int frameHeight,
const Animation::Part& part, int fadedFramesCount);
bool validClock(const Animation::Part& part);