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

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

Issue 2124633002: Add new gpu driver bug workaround DISABLE_TRANSPARENT_VISUALS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just make sure the new gpu driver workaround exist in second test instead of using fake values Created 4 years, 5 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
« no previous file with comments | « ui/base/x/x11_util.cc ('k') | ui/gfx/x/x11_switches.h » ('j') | 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) 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // is to post a task in the error handler to call this function. 44 // is to post a task in the error handler to call this function.
45 UI_BASE_X_EXPORT void LogErrorEventDescription(Display* dpy, 45 UI_BASE_X_EXPORT void LogErrorEventDescription(Display* dpy,
46 const XErrorEvent& error_event); 46 const XErrorEvent& error_event);
47 47
48 // -------------------------------------------------------------------------- 48 // --------------------------------------------------------------------------
49 // Selects a visual with a preference for alpha support on compositing window 49 // Selects a visual with a preference for alpha support on compositing window
50 // managers. The caller must compare depth to 32 to know if the returned visual 50 // managers. The caller must compare depth to 32 to know if the returned visual
51 // supports transparency. NULL parameters are allowed to install or query the 51 // supports transparency. NULL parameters are allowed to install or query the
52 // cached visual and depth. 52 // cached visual and depth.
53 #if !defined(OS_CHROMEOS) 53 #if !defined(OS_CHROMEOS)
54 UI_BASE_X_EXPORT void ChooseVisualForWindow(Visual** visual, int* depth); 54 UI_BASE_X_EXPORT void ChooseVisualForWindow(bool enable_transparent_visuals,
55 Visual** visual,
56 int* depth);
55 #endif 57 #endif
56 58
57 } // namespace ui 59 } // namespace ui
58 60
59 #endif // UI_BASE_X_X11_UTIL_INTERNAL_H_ 61 #endif // UI_BASE_X_X11_UTIL_INTERNAL_H_
OLDNEW
« no previous file with comments | « ui/base/x/x11_util.cc ('k') | ui/gfx/x/x11_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698