summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_theme_provider_gtk.cc
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 18:34:10 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 18:34:10 +0000
commit1279d5f395182c6fa783da0d85216777d931af6b (patch)
tree65eac9c68a5896e0fb3b39bc62344d8a8fb6b03d /chrome/browser/browser_theme_provider_gtk.cc
parent3e3f0eb47762a85110fb11b850df776b59073f8d (diff)
downloadchromium_src-1279d5f395182c6fa783da0d85216777d931af6b.zip
chromium_src-1279d5f395182c6fa783da0d85216777d931af6b.tar.gz
chromium_src-1279d5f395182c6fa783da0d85216777d931af6b.tar.bz2
Theme image support for the Mac.
BUG=none TEST=none Review URL: http://codereview.chromium.org/140007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18925 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_theme_provider_gtk.cc')
-rw-r--r--chrome/browser/browser_theme_provider_gtk.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/browser_theme_provider_gtk.cc b/chrome/browser/browser_theme_provider_gtk.cc
index 84ad293..370e773 100644
--- a/chrome/browser/browser_theme_provider_gtk.cc
+++ b/chrome/browser/browser_theme_provider_gtk.cc
@@ -40,3 +40,14 @@ GdkPixbuf* BrowserThemeProvider::GetPixbufNamed(int id) {
}
return empty_bitmap;
}
+
+void BrowserThemeProvider::FreePlatformImages() {
+ DCHECK(CalledOnValidThread());
+
+ // Free GdkPixbufs.
+ for (GdkPixbufMap::iterator i = gdk_pixbufs_.begin();
+ i != gdk_pixbufs_.end(); i++) {
+ g_object_unref(i->second);
+ }
+ gdk_pixbufs_.clear();
+}