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

Side by Side Diff: ui/base/x/x11_util_internal.h

Issue 1429083002: gl_surface_egl: ensure off and on screen surfaces use the same EGLConfig (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 UI_BASE_X_X11_UTIL_INTERNAL_H_ 5 #ifndef UI_BASE_X_X11_UTIL_INTERNAL_H_
6 #define UI_BASE_X_X11_UTIL_INTERNAL_H_ 6 #define UI_BASE_X_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
(...skipping 26 matching lines...) Expand all
37 UI_BASE_EXPORT void SetX11ErrorHandlers(XErrorHandler error_handler, 37 UI_BASE_EXPORT void SetX11ErrorHandlers(XErrorHandler error_handler,
38 XIOErrorHandler io_error_handler); 38 XIOErrorHandler io_error_handler);
39 39
40 // NOTE: This function should not be called directly from the 40 // NOTE: This function should not be called directly from the
41 // X11 Error handler because it queries the server to decode the 41 // X11 Error handler because it queries the server to decode the
42 // error message, which may trigger other errors. A suitable workaround 42 // error message, which may trigger other errors. A suitable workaround
43 // is to post a task in the error handler to call this function. 43 // is to post a task in the error handler to call this function.
44 UI_BASE_EXPORT void LogErrorEventDescription(Display* dpy, 44 UI_BASE_EXPORT void LogErrorEventDescription(Display* dpy,
45 const XErrorEvent& error_event); 45 const XErrorEvent& error_event);
46 46
47 // --------------------------------------------------------------------------
48 // NOTE: This function cache the results and can be called from any thread.
piman 2015/11/20 01:44:41 This is not true, it can only be called from the U
Julien Isorce Samsung 2015/11/20 09:13:56 Acknowledged. This will also make the function mor
49 // Select a Visual with preference of alpha support. Compare depth to 32 to
50 // know if the returned visual support transparency. NULL parameters is allowed.
51 UI_BASE_EXPORT void ChooseARGBVisualForWindow(Visual** visual, int* depth);
piman 2015/11/20 01:44:41 How about ChooseVisualForWindow? It's not guarante
Julien Isorce Samsung 2015/11/20 09:13:56 Make sense.
52
47 } // namespace ui 53 } // namespace ui
48 54
49 #endif // UI_BASE_X_X11_UTIL_INTERNAL_H_ 55 #endif // UI_BASE_X_X11_UTIL_INTERNAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698