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

Unified Diff: gfx/gtk_util.h

Issue 4508004: gtk: refactor copy-pasted code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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: gfx/gtk_util.h
diff --git a/gfx/gtk_util.h b/gfx/gtk_util.h
index 5c4ad94bfd342a5495faa506fce010178d58c397..8f9618dd9797079514532cf4bc7e1d84f7b7ddcb 100644
--- a/gfx/gtk_util.h
+++ b/gfx/gtk_util.h
@@ -17,12 +17,18 @@
typedef struct _GdkPixbuf GdkPixbuf;
typedef struct _GdkRegion GdkRegion;
+class CommandLine;
class SkBitmap;
namespace gfx {
class Rect;
+// Call gtk_init() using the argc and argv from command_line.
+// gtk_init() wants an argc and argv that it can mutate; we provide those,
+// but leave the original CommandLine unaltered.
+void GtkInitFromCommandLine(const CommandLine& command_line);
+
// Convert and copy a SkBitmap to a GdkPixbuf. NOTE: this uses BGRAToRGBA, so
// it is an expensive operation. The returned GdkPixbuf will have a refcount of
// 1, and the caller is responsible for unrefing it when done.
« no previous file with comments | « chrome/plugin/plugin_thread.cc ('k') | gfx/gtk_util.cc » ('j') | gfx/gtk_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698