diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-11 17:45:38 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-11 17:45:38 +0000 |
commit | 5078bb0c94c72c8cbcbf05cfd4da99e45f51f61e (patch) | |
tree | 24ccf8cb8658f801bdc1f9be812a92ed668b59c0 /chrome/browser/themes/browser_theme_pack.cc | |
parent | 81ac4a3fd428d19ec78072b8614a354cf0cc5c18 (diff) | |
download | chromium_src-5078bb0c94c72c8cbcbf05cfd4da99e45f51f61e.zip chromium_src-5078bb0c94c72c8cbcbf05cfd4da99e45f51f61e.tar.gz chromium_src-5078bb0c94c72c8cbcbf05cfd4da99e45f51f61e.tar.bz2 |
Remove the length field from the index entries in data pack files.
After the last index entry, we put an extra entry (id of 0, offset
pointing to where the next entry would start) so we can compute
the size of the last index entry.
This saves 4 bytes per item in data pack files, which is about 10k per
locale pak file. When compressed, this saves about 237k.
BUG=76285
Review URL: http://codereview.chromium.org/7604012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96415 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/themes/browser_theme_pack.cc')
-rw-r--r-- | chrome/browser/themes/browser_theme_pack.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/themes/browser_theme_pack.cc b/chrome/browser/themes/browser_theme_pack.cc index ad76008..8727ce8 100644 --- a/chrome/browser/themes/browser_theme_pack.cc +++ b/chrome/browser/themes/browser_theme_pack.cc @@ -29,7 +29,7 @@ namespace { // Version number of the current theme pack. We just throw out and rebuild // theme packs that aren't int-equal to this. -const int kThemePackVersion = 16; +const int kThemePackVersion = 17; // IDs that are in the DataPack won't clash with the positive integer // uint16. kHeaderID should always have the maximum value because we want the |