OSDN Git Service

bootanimation: allow animation to specify background color
authorJesse Hall <jessehall@google.com>
Mon, 22 Sep 2014 17:51:09 +0000 (10:51 -0700)
committerVineeta Srivastava <vsrivastava@google.com>
Thu, 25 Sep 2014 23:37:12 +0000 (23:37 +0000)
commit083b84cf8880bb7f0d2c2dc1b45c7d610656dbd1
tree2c83dce383d221eeb4bba0069b2d047424c7a350
parent471157821f7b0933c55081ef4625c78f8e798de7
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
cmds/bootanimation/BootAnimation.cpp
cmds/bootanimation/BootAnimation.h