diff options
author | Andriy Naborskyy <andriyn@google.com> | 2016-03-24 22:43:04 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-03-24 22:43:04 +0000 |
commit | 0c7535bb4fbf2306df7039a3358c1216de34cd8f (patch) | |
tree | 504007cc53789a8ad63a0b7fd292fb237f204cc1 /cmds/bootanimation/BootAnimation.h | |
parent | 070b76e52100f0b9d2ce45f2884c639507c4c7d2 (diff) | |
parent | 9f68357d5f71c263f2ff67736a0d2272cc840c32 (diff) |
Merge "bootanimation: implement split packaging of animation" into cw-e-dev
am: 9f68357
* commit '9f68357d5f71c263f2ff67736a0d2272cc840c32':
bootanimation: implement split packaging of animation
Diffstat (limited to 'cmds/bootanimation/BootAnimation.h')
-rw-r--r-- | cmds/bootanimation/BootAnimation.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/cmds/bootanimation/BootAnimation.h b/cmds/bootanimation/BootAnimation.h index f968b255d37a..bdd730fefda5 100644 --- a/cmds/bootanimation/BootAnimation.h +++ b/cmds/bootanimation/BootAnimation.h @@ -74,18 +74,26 @@ private: bool playUntilComplete; float backgroundColor[3]; FileMap* audioFile; + Animation* animation; }; int fps; int width; int height; Vector<Part> parts; + String8 audioConf; + String8 fileName; + ZipFileRO* zip; }; status_t initTexture(Texture* texture, AssetManager& asset, const char* name); status_t initTexture(const Animation::Frame& frame); bool android(); - bool readFile(const char* name, String8& outString); bool movie(); + Animation* loadAnimation(const String8&); + bool playAnimation(const Animation&); + void releaseAnimation(Animation*) const; + bool parseAnimationDesc(Animation&); + bool preloadZip(Animation &animation); void checkExit(); @@ -100,7 +108,8 @@ private: EGLDisplay mSurface; sp<SurfaceControl> mFlingerSurfaceControl; sp<Surface> mFlingerSurface; - ZipFileRO *mZip; + String8 mZipFileName; + SortedVector<String8> mLoadedFiles; }; // --------------------------------------------------------------------------- |