summaryrefslogtreecommitdiffstats
path: root/app/gfx/skia_utils_gtk.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-26 00:47:59 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-26 00:47:59 +0000
commitad02174ccfde818097757bef93c9ae6ea62c68bd (patch)
tree3d7190ae70d55bec354bab112ee6bcbcad7e29ad /app/gfx/skia_utils_gtk.h
parent05af3561d9685d9b54e4d2e4fe35b2c69bd6bec0 (diff)
downloadchromium_src-ad02174ccfde818097757bef93c9ae6ea62c68bd.zip
chromium_src-ad02174ccfde818097757bef93c9ae6ea62c68bd.tar.gz
chromium_src-ad02174ccfde818097757bef93c9ae6ea62c68bd.tar.bz2
Move skia_utils_gtk.cc/.h to app/gfx/. Original patch by Thiago Farina (see http://codereview.chromium.org/660063 ), r=me.
BUG=22853 TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40083 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/gfx/skia_utils_gtk.h')
-rw-r--r--app/gfx/skia_utils_gtk.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/gfx/skia_utils_gtk.h b/app/gfx/skia_utils_gtk.h
new file mode 100644
index 0000000..df68581
--- /dev/null
+++ b/app/gfx/skia_utils_gtk.h
@@ -0,0 +1,22 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef APP_GFX_SKIA_UTILS_GTK_H_
+#define APP_GFX_SKIA_UTILS_GTK_H_
+
+#include "third_party/skia/include/core/SkColor.h"
+
+typedef struct _GdkColor GdkColor;
+
+namespace gfx {
+
+// Converts GdkColors to the ARGB layout Skia expects.
+SkColor GdkColorToSkColor(GdkColor color);
+
+// Converts ARGB to GdkColor.
+GdkColor SkColorToGdkColor(SkColor color);
+
+} // namespace gfx
+
+#endif // APP_GFX_SKIA_UTILS_GTK_H_