Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Side by Side Diff: chrome/common/x11_util_internal.h

Issue 210021: Changes x11_util::GetRenderVisualFormat to determine the format id... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« chrome/common/x11_util.cc ('K') | « chrome/common/x11_util.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_X11_UTIL_INTERNAL_H_ 5 #ifndef CHROME_COMMON_X11_UTIL_INTERNAL_H_
6 #define CHROME_COMMON_X11_UTIL_INTERNAL_H_ 6 #define CHROME_COMMON_X11_UTIL_INTERNAL_H_
7 7
8 // This file declares utility functions for X11 (Linux only). 8 // This file declares utility functions for X11 (Linux only).
9 // 9 //
10 // These functions require the inclusion of the Xlib headers. Since the Xlib 10 // These functions require the inclusion of the Xlib headers. Since the Xlib
11 // headers pollute so much of the namespace, this should only be included 11 // headers pollute so much of the namespace, this should only be included
12 // when needed. 12 // when needed.
13 13
14 extern "C" { 14 extern "C" {
15 #include <X11/Xatom.h> 15 #include <X11/Xatom.h>
16 #include <X11/Xlib.h> 16 #include <X11/Xlib.h>
17 #include <X11/extensions/XShm.h> 17 #include <X11/extensions/XShm.h>
18 #include <X11/extensions/Xrender.h> 18 #include <X11/extensions/Xrender.h>
19 } 19 }
20 20
21 namespace x11_util { 21 namespace x11_util {
22 // These functions cache their results and must be called from the UI thread. 22 // NOTE: these function caches the results and must be called from the UI
23 // Currently they don't support multiple screens/displays. 23 // thread.
24 24
25 // Get the XRENDER format id for ARGB32 (Skia's format). 25 // Get the XRENDER format id for ARGB32 (Skia's format).
26 //
27 // NOTE:Currently this don't support multiple screens/displays.
26 XRenderPictFormat* GetRenderARGB32Format(Display* dpy); 28 XRenderPictFormat* GetRenderARGB32Format(Display* dpy);
29
27 // Get the XRENDER format id for the default visual on the first screen. This 30 // Get the XRENDER format id for the default visual on the first screen. This
28 // is the format which our GTK window will have. 31 // is the format which our GTK window will have.
29 XRenderPictFormat* GetRenderVisualFormat(Display* dpy, Visual* visual); 32 XRenderPictFormat* GetRenderVisualFormat(Display* dpy, Visual* visual);
30 }; 33 };
31 34
32 #endif // CHROME_COMMON_X11_UTIL_INTERNAL_H_ 35 #endif // CHROME_COMMON_X11_UTIL_INTERNAL_H_
OLDNEW
« chrome/common/x11_util.cc ('K') | « chrome/common/x11_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698