|
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
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112778
Total comments: 9
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+324 lines, -288 lines) |
Patch |
|
M |
chrome/browser/ui/gtk/about_chrome_dialog.cc
|
View
|
|
3 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/browser_toolbar_gtk.cc
|
View
|
1
2
3
4
|
5 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/browser_window_gtk.cc
|
View
|
1
2
3
4
|
12 chunks |
+28 lines, -24 lines |
0 comments
|
Download
|
|
D |
chrome/browser/ui/gtk/cairo_cached_surface.h
|
View
|
|
1 chunk |
+0 lines, -70 lines |
0 comments
|
Download
|
|
D |
chrome/browser/ui/gtk/cairo_cached_surface.cc
|
View
|
|
1 chunk |
+0 lines, -93 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/custom_button.h
|
View
|
1
2
3
4
|
2 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/custom_button.cc
|
View
|
1
2
3
4
|
6 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/find_bar_gtk.cc
|
View
|
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/gtk_theme_service.h
|
View
|
|
4 chunks |
+13 lines, -9 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/gtk_theme_service.cc
|
View
|
|
8 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/gtk_util.cc
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/location_bar_view_gtk.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/tabs/tab_renderer_gtk.h
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc
|
View
|
|
13 chunks |
+26 lines, -24 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
A + |
ui/gfx/image/cairo_cached_surface.h
|
View
|
|
3 chunks |
+28 lines, -13 lines |
0 comments
|
Download
|
|
A |
ui/gfx/image/cairo_cached_surface.cc
|
View
|
|
1 chunk |
+109 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/gfx/image/image.h
|
View
|
1
|
3 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/gfx/image/image.cc
|
View
|
1
2
3
4
|
8 chunks |
+52 lines, -2 lines |
0 comments
|
Download
|
|
M |
ui/gfx/image/image_unittest.cc
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/ui.gyp
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 13 (0 generated)
|