summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_theme_provider.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-10 18:16:15 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-10 18:16:15 +0000
commiteafb5b7bf242e8ebd9c947012ca404dd904bc1bd (patch)
tree697b1e9468e78b390233af5e8c696ff14f65fa72 /chrome/browser/browser_theme_provider.h
parente28b0fbbcde1c08e4dfbff7d4bd8e1f292892b9c (diff)
downloadchromium_src-eafb5b7bf242e8ebd9c947012ca404dd904bc1bd.zip
chromium_src-eafb5b7bf242e8ebd9c947012ca404dd904bc1bd.tar.gz
chromium_src-eafb5b7bf242e8ebd9c947012ca404dd904bc1bd.tar.bz2
Reapplies the GdkPixbuf -> cairo surface patch.
Only difference is explicitly calling a FreePerDisplaySurfaces() function from ~GtkThemeProvider() because vtables are set to base class during destructor calling. BUG=http://crbug.com/10499 Original Review URL: http://codereview.chromium.org/197046 Review URL: http://codereview.chromium.org/199077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25880 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_theme_provider.h')
-rw-r--r--chrome/browser/browser_theme_provider.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/browser_theme_provider.h b/chrome/browser/browser_theme_provider.h
index b503b5c..5313cec 100644
--- a/chrome/browser/browser_theme_provider.h
+++ b/chrome/browser/browser_theme_provider.h
@@ -242,6 +242,10 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>,
// Save the modified bitmap at image_cache_[id].
virtual void SaveThemeBitmap(std::string resource_name, int id);
+ // Clears the platform-specific caches. Do not call directly; it's called
+ // from ClearCaches().
+ virtual void FreePlatformCaches();
+
Profile* profile() { return profile_; }
// Subclasses may need us to not use the on-disk image cache. The GTK
@@ -312,10 +316,6 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>,
// Frees generated images and clears the image cache.
void ClearCaches();
- // Clears the platform-specific caches. Do not call directly; it's called
- // from ClearCaches().
- void FreePlatformCaches();
-
// Encode image at image_cache_[id] as PNG and write to disk.
bool WriteImagesToDisk();