summaryrefslogtreecommitdiffstats
path: root/cmds/bootanimation/BootAnimation.h
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2014-09-22 10:51:09 -0700
committerVineeta Srivastava <vsrivastava@google.com>2014-09-25 23:37:12 +0000
commit083b84cf8880bb7f0d2c2dc1b45c7d610656dbd1 (patch)
tree2c83dce383d221eeb4bba0069b2d047424c7a350 /cmds/bootanimation/BootAnimation.h
parent471157821f7b0933c55081ef4625c78f8e798de7 (diff)
downloadframeworks_base-083b84cf8880bb7f0d2c2dc1b45c7d610656dbd1.zip
frameworks_base-083b84cf8880bb7f0d2c2dc1b45c7d610656dbd1.tar.gz
frameworks_base-083b84cf8880bb7f0d2c2dc1b45c7d610656dbd1.tar.bz2
bootanimation: allow animation to specify background color
Some OEMs want to have a bootanimation (or parts of it) displayed on a color other than black. They currently just use full-screen frames for that, which wastes lots of memory and bandwidth. This change allows each part of the animation to specify a background color that will be applied outside of the frame images; if unspecified the background will be black as it is now. Bug: 16635599 Change-Id: Ibf008fc75c5aad891c86ba9e4ec0879b7a61b8bd
Diffstat (limited to 'cmds/bootanimation/BootAnimation.h')
-rw-r--r--cmds/bootanimation/BootAnimation.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmds/bootanimation/BootAnimation.h b/cmds/bootanimation/BootAnimation.h
index ba1c507..72cd62b 100644
--- a/cmds/bootanimation/BootAnimation.h
+++ b/cmds/bootanimation/BootAnimation.h
@@ -71,6 +71,7 @@ private:
String8 path;
SortedVector<Frame> frames;
bool playUntilComplete;
+ float backgroundColor[3];
};
int fps;
int width;