summaryrefslogtreecommitdiffstats
path: root/app/gtk_util.h
diff options
context:
space:
mode:
authorpvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-13 22:06:01 +0000
committerpvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-13 22:06:01 +0000
commit7cd70c394eeaeb6a93a8e28142942b5584f01e2d (patch)
tree4a3bde2aefad49928afe234d0d48154370ecbfc5 /app/gtk_util.h
parent42b206a6890ec008ed2729b36a5a58f0f334b3be (diff)
downloadchromium_src-7cd70c394eeaeb6a93a8e28142942b5584f01e2d.zip
chromium_src-7cd70c394eeaeb6a93a8e28142942b5584f01e2d.tar.gz
chromium_src-7cd70c394eeaeb6a93a8e28142942b5584f01e2d.tar.bz2
Move non-linux specific code from base/linux_util to app/gtk_util
from sprewell Review URL: http://codereview.chromium.org/2058004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47201 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/gtk_util.h')
-rw-r--r--app/gtk_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/gtk_util.h b/app/gtk_util.h
index 22ab7d2..089e901 100644
--- a/app/gtk_util.h
+++ b/app/gtk_util.h
@@ -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 @@ void GetWidgetSizeFromCharacters(
// 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);
+
} // namespace gtk_util
#endif // APP_GTK_UTIL_H_