diff options
author | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-19 14:01:33 +0000 |
---|---|---|
committer | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-19 14:01:33 +0000 |
commit | 6c077af5c79a85d64e4b4363b8d0e29bb16543db (patch) | |
tree | 160a0dc0eb5b39a3c302655a287d1594d4ccf58e /app/x11_util_internal.h | |
parent | 9bb2d8b4792cbf769d744fd972da2d94e9fa9647 (diff) | |
download | chromium_src-6c077af5c79a85d64e4b4363b8d0e29bb16543db.zip chromium_src-6c077af5c79a85d64e4b4363b8d0e29bb16543db.tar.gz chromium_src-6c077af5c79a85d64e4b4363b8d0e29bb16543db.tar.bz2 |
Remove dependency from webkit on chrome/common by moving files to src/app.
BUG=37985
TEST=no functional change.
Review URL: http://codereview.chromium.org/1060001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42101 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/x11_util_internal.h')
-rw-r--r-- | app/x11_util_internal.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/app/x11_util_internal.h b/app/x11_util_internal.h new file mode 100644 index 0000000..81f2820 --- /dev/null +++ b/app/x11_util_internal.h @@ -0,0 +1,35 @@ +// Copyright (c) 2009 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_X11_UTIL_INTERNAL_H_ +#define APP_X11_UTIL_INTERNAL_H_ + +// This file declares utility functions for X11 (Linux only). +// +// These functions require the inclusion of the Xlib headers. Since the Xlib +// headers pollute so much of the namespace, this should only be included +// when needed. + +extern "C" { +#include <X11/Xatom.h> +#include <X11/Xlib.h> +#include <X11/extensions/XShm.h> +#include <X11/extensions/Xrender.h> +} + +namespace x11_util { + // NOTE: these function caches the results and must be called from the UI + // thread. + + // Get the XRENDER format id for ARGB32 (Skia's format). + // + // NOTE:Currently this don't support multiple screens/displays. + XRenderPictFormat* GetRenderARGB32Format(Display* dpy); + + // Get the XRENDER format id for the default visual on the first screen. This + // is the format which our GTK window will have. + XRenderPictFormat* GetRenderVisualFormat(Display* dpy, Visual* visual); +}; + +#endif // APP_X11_UTIL_INTERNAL_H_ |