summaryrefslogtreecommitdiffstats
path: root/cmds/bootanimation/BootAnimation.h
diff options
context:
space:
mode:
Diffstat (limited to 'cmds/bootanimation/BootAnimation.h')
-rw-r--r--cmds/bootanimation/BootAnimation.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/cmds/bootanimation/BootAnimation.h b/cmds/bootanimation/BootAnimation.h
index afd01fa..e53ba8b 100644
--- a/cmds/bootanimation/BootAnimation.h
+++ b/cmds/bootanimation/BootAnimation.h
@@ -57,8 +57,31 @@ private:
GLuint name;
};
+ struct Animation {
+ struct Frame {
+ String8 name;
+ FileMap* map;
+ mutable GLuint tid;
+ bool operator < (const Frame& rhs) const {
+ return name < rhs.name;
+ }
+ };
+ struct Part {
+ int count;
+ int pause;
+ String8 path;
+ SortedVector<Frame> frames;
+ };
+ int fps;
+ int width;
+ int height;
+ Vector<Part> parts;
+ };
+
status_t initTexture(Texture* texture, AssetManager& asset, const char* name);
+ status_t initTexture(void* buffer, size_t len);
bool android();
+ bool movie();
sp<SurfaceComposerClient> mSession;
AssetManager mAssets;
@@ -70,6 +93,8 @@ private:
EGLDisplay mSurface;
sp<SurfaceControl> mFlingerSurfaceControl;
sp<Surface> mFlingerSurface;
+ bool mAndroidAnimation;
+ ZipFileRO mZip;
};
// ---------------------------------------------------------------------------