summaryrefslogtreecommitdiffstats
path: root/cmds/bootanimation/BootAnimation.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-10-01 03:10:14 -0700
committerMathias Agopian <mathias@google.com>2009-10-01 03:14:30 -0700
commita8826d67097b12cf9d6b14a7e32c0862f17b189a (patch)
tree70647cff0bcb6efe7e86b516473e536dc4d3aa57 /cmds/bootanimation/BootAnimation.h
parent98a9c56acf1857adaf1773bd91c88a8364fd3fa8 (diff)
downloadframeworks_base-a8826d67097b12cf9d6b14a7e32c0862f17b189a.zip
frameworks_base-a8826d67097b12cf9d6b14a7e32c0862f17b189a.tar.gz
frameworks_base-a8826d67097b12cf9d6b14a7e32c0862f17b189a.tar.bz2
improve boot animation a bit
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;
};
// ---------------------------------------------------------------------------