diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-02 21:46:47 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-02 21:46:47 +0000 |
commit | cfd0b58808dcf60b03a2fa434b655f850087c5f4 (patch) | |
tree | 026ad375656d31efedf609a3877af2eb7a8bbd57 /chrome/browser/cocoa/download_item_cell.mm | |
parent | c2def1c60e5809cf6f6171f980c56f2e4b48109e (diff) | |
download | chromium_src-cfd0b58808dcf60b03a2fa434b655f850087c5f4.zip chromium_src-cfd0b58808dcf60b03a2fa434b655f850087c5f4.tar.gz chromium_src-cfd0b58808dcf60b03a2fa434b655f850087c5f4.tar.bz2 |
Aggressively cache theme image pattern colors.
BUG=http://crbug.com/37106 (I hope)
TEST=no visible change, just faster
Review URL: http://codereview.chromium.org/661396
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40439 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/download_item_cell.mm')
-rw-r--r-- | chrome/browser/cocoa/download_item_cell.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/download_item_cell.mm b/chrome/browser/cocoa/download_item_cell.mm index 64ddc85..1fbf74b 100644 --- a/chrome/browser/cocoa/download_item_cell.mm +++ b/chrome/browser/cocoa/download_item_cell.mm @@ -96,6 +96,7 @@ public: virtual bool HasCustomImage(int id) const { return false; } virtual RefCountedMemory* GetRawData(int id) const { return NULL; } virtual NSImage* GetNSImageNamed(int id, bool allow_default) const; + virtual NSColor* GetNSImageColorNamed(int id, bool allow_default) const; virtual NSColor* GetNSColor(int id, bool allow_default) const; virtual NSColor* GetNSColorTint(int id, bool allow_default) const; virtual NSGradient* GetNSGradient(int id) const; @@ -130,6 +131,11 @@ NSImage* BackgroundTheme::GetNSImageNamed(int id, bool allow_default) const { return nil; } +NSColor* BackgroundTheme::GetNSImageColorNamed(int id, + bool allow_default) const { + return nil; +} + NSColor* BackgroundTheme::GetNSColor(int id, bool allow_default) const { return provider_->GetNSColor(id, allow_default); } |