diff options
author | Andriy Naborskyy <andriyn@google.com> | 2016-03-24 16:43:34 -0700 |
---|---|---|
committer | Andriy Naborskyy <andriyn@google.com> | 2016-03-24 17:14:52 -0700 |
commit | 815e51d76cc284f3ca59534d9f9372d3dd50f574 (patch) | |
tree | 1531cffeabba74e25580b8d42785554ddeb89865 /cmds/bootanimation/BootAnimation.h | |
parent | 7b7c0a4e45af093e1487519703c7d41ec0c45060 (diff) | |
parent | 0c7535bb4fbf2306df7039a3358c1216de34cd8f (diff) |
resolve merge conflicts of 0c7535b to nyc-dev
Change-Id: I49fa42e0d78aeaa8127cefc5cc5122cf37fce878
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 83e2b3804fe8..d49e1ec837b9 100644 --- a/cmds/bootanimation/BootAnimation.h +++ b/cmds/bootanimation/BootAnimation.h @@ -76,19 +76,27 @@ 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(); void drawTime(const Texture& clockTex, const int yPos); + Animation* loadAnimation(const String8&); + bool playAnimation(const Animation&); + void releaseAnimation(Animation*) const; + bool parseAnimationDesc(Animation&); + bool preloadZip(Animation &animation); void checkExit(); @@ -104,8 +112,9 @@ private: EGLDisplay mSurface; sp<SurfaceControl> mFlingerSurfaceControl; sp<Surface> mFlingerSurface; - ZipFileRO *mZip; bool mClockEnabled; + String8 mZipFileName; + SortedVector<String8> mLoadedFiles; }; // --------------------------------------------------------------------------- |