summaryrefslogtreecommitdiffstats
path: root/ui/ui.gyp
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-02 20:54:19 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-02 20:54:19 +0000
commit61e3009b9f5b3134fa3697befba4bc69c6be1e35 (patch)
tree81e35d5ca6efe019c1c888b7d7edbcdd0cf4fc7d /ui/ui.gyp
parent716b7785e16a2049525e406b17d75776cc1911ee (diff)
downloadchromium_src-61e3009b9f5b3134fa3697befba4bc69c6be1e35.zip
chromium_src-61e3009b9f5b3134fa3697befba4bc69c6be1e35.tar.gz
chromium_src-61e3009b9f5b3134fa3697befba4bc69c6be1e35.tar.bz2
GTK: Move CairoCachedSurface from being owned by GtkThemeService to gfx::Image.
CairoCachedSurfaces are representations of a GdkPixbuf that live on the display server instead of in process. GtkThemeService currently returns a CairoCachedSurface for a (IDR#, Display). Instead, make gfx::Image keep CairoCachedSurfaces as a representation and make CairoCachedSurface work on any display, keeping the mapping to display server resources as an implementation detail. This has the benefit of: - You don't need to go through GtkThemeService to access all resources, simplifying the code in some places and allowing sharing of static images across profiles. - This will let us (in the future) remove several image conversions in the GTK port. This is part 1. Part 2 will remove the custom CairoCachedSurface calls from GtkThemeService. BUG=106060 TEST=none R=rsesek@chromium.org TBR=ben@chromium.org Review URL: http://codereview.chromium.org/8769017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112778 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/ui.gyp')
-rw-r--r--ui/ui.gyp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/ui.gyp b/ui/ui.gyp
index 67af706..81cfb16 100644
--- a/ui/ui.gyp
+++ b/ui/ui.gyp
@@ -419,6 +419,8 @@
'gfx/gtk_preserve_window.h',
'gfx/gtk_util.cc',
'gfx/gtk_util.h',
+ 'gfx/image/cairo_cached_surface.cc',
+ 'gfx/image/cairo_cached_surface.h',
],
}, { # toolkit_uses_gtk != 1
'sources!': [