diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-17 18:23:27 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-17 18:23:27 +0000 |
commit | 5c4683c949eece2a6c96f5731849dcf1ca198eb7 (patch) | |
tree | 7bc135d0520f36d6f9089a4230837e5c539d4fdb /chrome/browser/browser_theme_provider_mac.mm | |
parent | cf0441f86f05ffeedad8b9458e7bde2c9dc21968 (diff) | |
download | chromium_src-5c4683c949eece2a6c96f5731849dcf1ca198eb7.zip chromium_src-5c4683c949eece2a6c96f5731849dcf1ca198eb7.tar.gz chromium_src-5c4683c949eece2a6c96f5731849dcf1ca198eb7.tar.bz2 |
This fixes the Mac regression in the startup perf tests by removing the
HasCustomImage check from GetNSImageNamed. The source of the problem was that
HCI was throwing off "nil" for inactive images (which is correct, as they don't
appear in a theme's original image pack), and therefore ignoring the already
created inactive frames, thus creating them twice.
BUG= 34775
TEST= Mac startup regression goes away from perf bots.
Review URL: http://codereview.chromium.org/608023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39240 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_theme_provider_mac.mm')
-rw-r--r-- | chrome/browser/browser_theme_provider_mac.mm | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/chrome/browser/browser_theme_provider_mac.mm b/chrome/browser/browser_theme_provider_mac.mm index ec3d4a8..2f8c749 100644 --- a/chrome/browser/browser_theme_provider_mac.mm +++ b/chrome/browser/browser_theme_provider_mac.mm @@ -28,9 +28,6 @@ void HSLToHSB(const color_utils::HSL& hsl, CGFloat* h, CGFloat* s, CGFloat* b) { NSImage* BrowserThemeProvider::GetNSImageNamed(int id) const { DCHECK(CalledOnValidThread()); - if (!HasCustomImage(id)) - return nil; - // Check to see if we already have the image in the cache. NSImageMap::const_iterator nsimage_iter = nsimage_cache_.find(id); if (nsimage_iter != nsimage_cache_.end()) |