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

Unified Diff: app/gtk_util.h

Issue 2058004: Move non-linux specific code from base/linux_util to app/gtk_util... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 7 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: app/gtk_util.h
===================================================================
--- app/gtk_util.h (revision 46986)
+++ app/gtk_util.h (working copy)
@@ -5,6 +5,7 @@
#ifndef APP_GTK_UTIL_H_
#define APP_GTK_UTIL_H_
+#include <stdint.h>
typedef struct _GtkWidget GtkWidget;
namespace gtk_util {
@@ -29,6 +30,11 @@
// with gtk_message_dialog_new.
void ApplyMessageDialogQuirks(GtkWidget* dialog);
+// Makes a copy of |pixels| with the ordering changed from BGRA to RGBA.
+// The caller is responsible for free()ing the data. If |stride| is 0,
+// it's assumed to be 4 * |width|.
+uint8_t* BGRAToRGBA(const uint8_t* pixels, int width, int height, int stride);
Evan Martin 2010/05/12 10:20:47 This is a sorta strange place for it, but the old
Peter Valchev 2010/05/12 23:05:13 Yeah, dunno what's a better place..
+
} // namespace gtk_util
#endif // APP_GTK_UTIL_H_
« app/app_paths.cc ('K') | « app/clipboard/clipboard_linux.cc ('k') | app/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698