OSDN Git Service

Added Caching for PreProcessed PNGs
authorJosiah Gaskin <josiahgaskin@google.com>
Tue, 7 Jun 2011 00:00:35 +0000 (17:00 -0700)
committerJosiah Gaskin <josiahgaskin@google.com>
Wed, 20 Jul 2011 22:20:26 +0000 (15:20 -0700)
commit8a39da80b33691b0c82458c3b7727e13ff71277e
treeb6fa94370ecb2dba85d5fdb45c83729cef8708e1
parent1e24ccbdd56a45c8bb5f2eba94af5aecd2d02554
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
20 files changed:
tools/aapt/Android.mk
tools/aapt/Bundle.h
tools/aapt/CacheUpdater.h [new file with mode: 0644]
tools/aapt/Command.cpp
tools/aapt/CrunchCache.cpp [new file with mode: 0644]
tools/aapt/CrunchCache.h [new file with mode: 0644]
tools/aapt/DirectoryWalker.h [new file with mode: 0644]
tools/aapt/FileFinder.cpp [new file with mode: 0644]
tools/aapt/FileFinder.h [new file with mode: 0644]
tools/aapt/Images.cpp
tools/aapt/Images.h
tools/aapt/Main.cpp
tools/aapt/Main.h
tools/aapt/Package.cpp
tools/aapt/Resource.cpp
tools/aapt/tests/CrunchCache_test.cpp [new file with mode: 0644]
tools/aapt/tests/FileFinder_test.cpp [new file with mode: 0644]
tools/aapt/tests/MockCacheUpdater.h [new file with mode: 0644]
tools/aapt/tests/MockDirectoryWalker.h [new file with mode: 0644]
tools/aapt/tests/MockFileFinder.h [new file with mode: 0644]