Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3984)

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_gtk.cc

Issue 195071: GTK: Cache our GdkCursor objects, since building them hits the disk. (Closed)
Patch Set: Put in gtk_util Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_host/render_widget_host_view_gtk.cc
diff --git a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc
index 0fb62b39735ccfff71dc39a625badd0da987dfd9..adc109f91d5a857905cf683f8390902921496027 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc
+++ b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc
@@ -24,6 +24,7 @@
#include "base/string_util.h"
#include "base/task.h"
#include "base/time.h"
+#include "chrome/common/gtk_util.h"
#include "chrome/common/native_web_keyboard_event.h"
#include "chrome/common/x11_util.h"
#include "chrome/browser/renderer_host/backing_store.h"
@@ -607,7 +608,7 @@ void RenderWidgetHostViewGtk::ShowCurrentCursor() {
break;
default:
- gdk_cursor = gdk_cursor_new(current_cursor_.GetCursorType());
+ gdk_cursor = gtk_util::GetCursor(current_cursor_.GetCursorType());
}
gdk_window_set_cursor(view_.get()->window, gdk_cursor);
// The window now owns the cursor.

Powered by Google App Engine
This is Rietveld 408576698