summaryrefslogtreecommitdiffstats
path: root/base/gfx/gtk_util.h
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-21 17:20:10 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-21 17:20:10 +0000
commit75ae542de5a321e53449c8d5da34ffd519680db5 (patch)
tree9bea9a95fdbf0c8c746e31d90c291c564985c0a2 /base/gfx/gtk_util.h
parent08f75ed78a7f1823b850aa8cc0c90d4f760fc6ca (diff)
downloadchromium_src-75ae542de5a321e53449c8d5da34ffd519680db5.zip
chromium_src-75ae542de5a321e53449c8d5da34ffd519680db5.tar.gz
chromium_src-75ae542de5a321e53449c8d5da34ffd519680db5.tar.bz2
Eliminate a circular dependency by making BGRAToRGBA() generic (no pulling in guchar from gtk.h) and moving it from base/gfx to base.
Review URL: http://codereview.chromium.org/87016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14117 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx/gtk_util.h')
-rwxr-xr-xbase/gfx/gtk_util.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/base/gfx/gtk_util.h b/base/gfx/gtk_util.h
index 3a1a1d4..110caf5 100755
--- a/base/gfx/gtk_util.h
+++ b/base/gfx/gtk_util.h
@@ -28,11 +28,6 @@ extern const GdkColor kGdkGreen;
void SubtractRectanglesFromRegion(GdkRegion* region,
const std::vector<Rect>& cutouts);
-// 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 gfx
#endif // BASE_GFX_GTK_UTIL_H_