diff options
author | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-21 16:39:09 +0000 |
---|---|---|
committer | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-21 16:39:09 +0000 |
commit | cbd518971b9810eac4cd613161f0f42c608ff6b5 (patch) | |
tree | 609eb3eed234b3fe8c99b913c466a9c1e8909c02 /tools/grit | |
parent | 3cb95308104ebdba3027b54dd1051182def2f0a2 (diff) | |
download | chromium_src-cbd518971b9810eac4cd613161f0f42c608ff6b5.zip chromium_src-cbd518971b9810eac4cd613161f0f42c608ff6b5.tar.gz chromium_src-cbd518971b9810eac4cd613161f0f42c608ff6b5.tar.bz2 |
Split out large icons into a separate resource pak
This is a part of r82185 that was reverted. The change was reverted because it caused a performance regression.
I'm checking in just the reorganization code to narrow down exactly which part of the change caused the regression.
The only code change here is some header includes. If this change passes the perf bot then my next change will be to load the new resource pak.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/6883110
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82497 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/grit')
-rw-r--r-- | tools/grit/grit/format/resource_map.py | 4 | ||||
-rw-r--r-- | tools/grit/resource_ids | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/tools/grit/grit/format/resource_map.py b/tools/grit/grit/format/resource_map.py index 5ae135b..4527af8 100644 --- a/tools/grit/grit/format/resource_map.py +++ b/tools/grit/grit/format/resource_map.py @@ -49,10 +49,14 @@ class HeaderTopLevel(interface.ItemFormatter): #include <stddef.h> +#ifndef GRIT_RESOURCE_MAP_STRUCT_ +#define GRIT_RESOURCE_MAP_STRUCT_ struct GritResourceMap { const char* const name; int value; }; +#endif // GRIT_RESOURCE_MAP_STRUCT_ + extern const GritResourceMap %(map_name)s[]; extern const size_t %(map_name)sSize; ''' % { 'year': util.GetCurrentYear(), diff --git a/tools/grit/resource_ids b/tools/grit/resource_ids index b89b95de..c871600 100644 --- a/tools/grit/resource_ids +++ b/tools/grit/resource_ids @@ -130,5 +130,12 @@ # This file is generated during the build. "<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resources.grd": { "includes": [20500], - } + }, + # All standard and large theme resources should have the same IDs. + "chrome/app/theme/theme_resources_standard.grd": { + "includes": [21000], + }, + "chrome/app/theme/theme_resources_large.grd": { + "includes": [21000], + }, } |