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

Unified Diff: ui/base/x/x11_util_internal.h

Issue 2471073002: X11: Use CopyFromParent colormap when possible (Reland) (Closed)
Patch Set: Fix segfault in Angle Created 4 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/x/x11_util_internal.h
diff --git a/ui/base/x/x11_util_internal.h b/ui/base/x/x11_util_internal.h
index 054490da4be4473494f2d561c8179b53250acc8f..0b4095142fd168ea94c26bd37a03e1c23678f417 100644
--- a/ui/base/x/x11_util_internal.h
+++ b/ui/base/x/x11_util_internal.h
@@ -63,6 +63,9 @@ class UI_BASE_X_EXPORT XVisualManager {
public:
static XVisualManager* GetInstance();
+ // Picks the best argb or opaque visual given |want_argb_visual|. If the
+ // default visual is returned, |visual|, |depth|, and |colormap| are all set
+ // to CopyFromParent.
void ChooseVisualForWindow(bool want_argb_visual,
Visual** visual,
int* depth,
@@ -101,6 +104,10 @@ class UI_BASE_X_EXPORT XVisualManager {
XDisplay* display_;
+ VisualID default_visual_id_;
+
+ // The system visual is usually the same as the default visual, but
+ // may not be in general.
VisualID system_visual_id_;
VisualID transparent_visual_id_;
« no previous file with comments | « ui/base/x/x11_util.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | ui/gl/gl_surface_egl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698