summaryrefslogtreecommitdiffstats
path: root/ui/gfx/gtk_util.h
diff options
context:
space:
mode:
authordnicoara@chromium.org <dnicoara@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-10 16:50:44 +0000
committerdnicoara@chromium.org <dnicoara@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-10 16:50:44 +0000
commitf1b2cd0ebbdbcd4765f3d8a83ddeaccaa74c715b (patch)
tree0e711e1f5d167a35844627206d709485a730b804 /ui/gfx/gtk_util.h
parent11edb87b32bc384c4df1ff342a38647c076a722f (diff)
downloadchromium_src-f1b2cd0ebbdbcd4765f3d8a83ddeaccaa74c715b.zip
chromium_src-f1b2cd0ebbdbcd4765f3d8a83ddeaccaa74c715b.tar.gz
chromium_src-f1b2cd0ebbdbcd4765f3d8a83ddeaccaa74c715b.tar.bz2
Adding Wayland support for ui/gfx
* Added GL surface and context support for Wayland. * Updated ui/gfx files to allow Wayland support * All Wayland code is behind the use_wayland gyp flag This CL depends on http://codereview.chromium.org/7457023 BUG= TEST=Compiled Chrome with use_wayland disabled to verify that the changes didn't break anything Review URL: http://codereview.chromium.org/7467007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96192 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/gtk_util.h')
-rw-r--r--ui/gfx/gtk_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/gfx/gtk_util.h b/ui/gfx/gtk_util.h
index 1f72c01..7438165 100644
--- a/ui/gfx/gtk_util.h
+++ b/ui/gfx/gtk_util.h
@@ -19,6 +19,8 @@ typedef struct _GdkPixbuf GdkPixbuf;
typedef struct _GdkRegion GdkRegion;
typedef struct _GdkCursor GdkCursor;
+typedef struct _PangoContext PangoContext;
+
class CommandLine;
class SkBitmap;
@@ -40,6 +42,9 @@ UI_EXPORT GdkPixbuf* GdkPixbufFromSkBitmap(const SkBitmap* bitmap);
UI_EXPORT void SubtractRectanglesFromRegion(GdkRegion* region,
const std::vector<Rect>& cutouts);
+// Creates and returns a PangoContext. The caller owns the context.
+PangoContext* GetPangoContext();
+
// Returns the resolution (DPI) used by pango. A negative values means the
// resolution hasn't been set.
double GetPangoResolution();