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

Unified Diff: chrome/common/gtk_util.h

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/common/gtk_util.h
diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h
index c12fe98cbd31d7e5f1d5cb646cf2ee2ef7f1b2ab..ada8a2a246483bc351730b7e5070317683de44df 100644
--- a/chrome/common/gtk_util.h
+++ b/chrome/common/gtk_util.h
@@ -171,6 +171,11 @@ void DrawTextEntryBackground(GtkWidget* offscreen_entry,
// Returns the two colors averaged together.
GdkColor AverageColors(GdkColor color_one, GdkColor color_two);
+// Returns a static instance of a GdkCursor* object, sharable across the
+// process. Returns a GdkCursor with a +1 refcount, as if it was just created
+// with gdk_cursor_new(); owner must gdk_cursor_unref() it when done with it.
+GdkCursor* GetCursor(GdkCursorType type);
+
} // namespace gtk_util
#endif // CHROME_COMMON_GTK_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698