diff options
author | Josiah Gaskin <josiahgaskin@google.com> | 2011-06-06 17:00:35 -0700 |
---|---|---|
committer | Josiah Gaskin <josiahgaskin@google.com> | 2011-07-20 15:20:26 -0700 |
commit | 8a39da80b33691b0c82458c3b7727e13ff71277e (patch) | |
tree | b6fa94370ecb2dba85d5fdb45c83729cef8708e1 /tools/aapt/Images.h | |
parent | 1e24ccbdd56a45c8bb5f2eba94af5aecd2d02554 (diff) |
Added Caching for PreProcessed PNGs
Added a cache management system for pre-processed PNG files
along with unit tests. The cache system will be used if
the --no-crunch flag is passed to AAPT during the package
phase. The cache can be updated by a call to 'aapt crunch'
(see usage statement). Also put in benchmarking code.
Change-Id: I58271fb2ee2f5f9075fd74d4ff6f15e7afabd05c
Diffstat (limited to 'tools/aapt/Images.h')
-rw-r--r-- | tools/aapt/Images.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/aapt/Images.h b/tools/aapt/Images.h index 168e22ff8b53..4816905572c9 100644 --- a/tools/aapt/Images.h +++ b/tools/aapt/Images.h @@ -8,11 +8,19 @@ #define IMAGES_H #include "ResourceTable.h" +#include "Bundle.h" + +#include <utils/String8.h> +#include <utils/RefBase.h> + +using android::String8; status_t preProcessImage(Bundle* bundle, const sp<AaptAssets>& assets, const sp<AaptFile>& file, String8* outNewLeafName); +status_t preProcessImageToCache(Bundle* bundle, String8 source, String8 dest); + status_t postProcessImage(const sp<AaptAssets>& assets, - ResourceTable* table, const sp<AaptFile>& file); + ResourceTable* table, const sp<AaptFile>& file); #endif |