Chromium Code Reviews| 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_ |