Index: chrome/browser/gtk/gtk_theme_provider.h |
diff --git a/chrome/browser/gtk/gtk_theme_provider.h b/chrome/browser/gtk/gtk_theme_provider.h |
index 526d24533aad3473f93b89652ffffb0f2c8a381b..e914d89f2b3dda4c5635b2c4a1134fafcd411a66 100644 |
--- a/chrome/browser/gtk/gtk_theme_provider.h |
+++ b/chrome/browser/gtk/gtk_theme_provider.h |
@@ -5,7 +5,6 @@ |
#ifndef CHROME_BROWSER_GTK_GTK_THEME_PROVIDER_H_ |
#define CHROME_BROWSER_GTK_GTK_THEME_PROVIDER_H_ |
-#include <map> |
#include <string> |
#include <vector> |
@@ -15,10 +14,8 @@ |
#include "skia/ext/skia_utils.h" |
-class CairoCachedSurface; |
class Profile; |
-typedef struct _GdkDisplay GdkDisplay; |
typedef struct _GtkStyle GtkStyle; |
typedef struct _GtkWidget GtkWidget; |
@@ -70,11 +67,6 @@ class GtkThemeProvider : public BrowserThemeProvider, |
GtkWidget* fake_window() { return fake_window_; } |
GtkWidget* fake_label() { return fake_label_.get(); } |
- // Returns a CairoCachedSurface for a particular Display. CairoCachedSurfaces |
- // (hopefully) live on the X server, instead of the client so we don't have |
- // to send the image to the server on each expose. |
- CairoCachedSurface* GetSurfaceNamed(int id, GtkWidget* widget_on_display); |
- |
protected: |
// Possibly creates a theme specific version of theme_toolbar_default. |
// (minimally acceptable version right now, which is just a fill of the bg |
@@ -93,9 +85,6 @@ class GtkThemeProvider : public BrowserThemeProvider, |
// the superclass. |
virtual void SaveThemeBitmap(const std::string resource_name, int id); |
- // Additionally frees the CairoCachedSurfaces. |
- virtual void FreePlatformCaches(); |
- |
// Handles signal from GTK that our theme has been changed. |
static void OnStyleSet(GtkWidget* widget, |
GtkStyle* previous_style, |
@@ -124,11 +113,6 @@ class GtkThemeProvider : public BrowserThemeProvider, |
// A list of all GtkChromeButton instances. We hold on to these to notify |
// them of theme changes. |
std::vector<GtkWidget*> chrome_buttons_; |
- |
- // Cairo surfaces for each GdkDisplay. |
- typedef std::map<int, CairoCachedSurface*> CairoCachedSurfaceMap; |
- typedef std::map<GdkDisplay*, CairoCachedSurfaceMap> PerDisplaySurfaceMap; |
- PerDisplaySurfaceMap per_display_surfaces_; |
}; |
#endif // CHROME_BROWSER_GTK_GTK_THEME_PROVIDER_H_ |