|
Upload GdkPixbufs into cairo surfaces so they (hopefully) live on the X server and have better performance. In the presence of XRender, let cairo do things smarter.
This is a big win performance wise. BrowserWindowGtk::OnCustomFrameExpose, a heavy user of images sped up from an average runtime of 20.5ms to 0.7ms.
TEST=Run through valgrind, don't leak memory.
TEST=Run both before and after using xtrace. Notice fewer XCreatePixmap requests and more XRender-CreatePicture requests.
BUG=http://crbug.com/10499
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=25814
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+300 lines, -117 lines) |
Patch |
 |
M |
chrome/browser/browser_theme_provider.h
|
View
|
2
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/gtk/bookmark_bar_gtk.cc
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/gtk/browser_toolbar_gtk.cc
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/gtk/browser_window_gtk.cc
|
View
|
|
10 chunks |
+42 lines, -45 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/gtk/cairo_cached_surface.h
|
View
|
1
2
|
1 chunk |
+55 lines, -0 lines |
3 comments
|
Download
|
 |
A |
chrome/browser/gtk/cairo_cached_surface.cc
|
View
|
1
|
1 chunk |
+72 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/gtk/custom_button.h
|
View
|
|
3 chunks |
+7 lines, -4 lines |
2 comments
|
Download
|
 |
M |
chrome/browser/gtk/custom_button.cc
|
View
|
1
2
|
7 chunks |
+50 lines, -39 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/gtk/find_bar_gtk.cc
|
View
|
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/gtk/go_button_gtk.cc
|
View
|
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/gtk/gtk_theme_provider.h
|
View
|
2
3
|
5 chunks |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/gtk/gtk_theme_provider.cc
|
View
|
2
3
|
3 chunks |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/gtk/toolbar_star_toggle_gtk.cc
|
View
|
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome.gyp
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 7 (0 generated)
|