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

Unified Diff: gpu/config/gpu_info.cc

Issue 2347383002: X11: Use better visuals for OpenGL (Closed)
Patch Set: auto* Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/config/gpu_info.h ('k') | gpu/config/gpu_info_collector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_info.cc
diff --git a/gpu/config/gpu_info.cc b/gpu/config/gpu_info.cc
index 5a3f10921cc74c04eaf182a27fbdc984c396beb2..3af11f67644d8c2a59f3829a451a8bf1afda181e 100644
--- a/gpu/config/gpu_info.cc
+++ b/gpu/config/gpu_info.cc
@@ -81,7 +81,13 @@ GPUInfo::GPUInfo()
#if defined(OS_WIN)
dx_diagnostics_info_state(kCollectInfoNone),
#endif
- jpeg_decode_accelerator_supported(false) {
+ jpeg_decode_accelerator_supported(false)
+#if defined(USE_X11) && !defined(OS_CHROMEOS)
+ ,
+ system_visual(0),
+ rgba_visual(0)
+#endif
+{
}
GPUInfo::GPUInfo(const GPUInfo& other) = default;
@@ -129,6 +135,10 @@ void GPUInfo::EnumerateFields(Enumerator* enumerator) const {
VideoEncodeAcceleratorSupportedProfiles
video_encode_accelerator_supported_profiles;
bool jpeg_decode_accelerator_supported;
+#if defined(USE_X11) && !defined(OS_CHROMEOS)
+ VisualID system_visual;
+ VisualID rgba_visual;
+#endif
};
// If this assert fails then most likely something below needs to be updated.
@@ -193,6 +203,10 @@ void GPUInfo::EnumerateFields(Enumerator* enumerator) const {
EnumerateVideoEncodeAcceleratorSupportedProfile(profile, enumerator);
enumerator->AddBool("jpegDecodeAcceleratorSupported",
jpeg_decode_accelerator_supported);
+#if defined(USE_X11) && !defined(OS_CHROMEOS)
+ enumerator->AddInt64("systemVisual", system_visual);
+ enumerator->AddInt64("rgbaVisual", rgba_visual);
+#endif
enumerator->EndAuxAttributes();
}
« no previous file with comments | « gpu/config/gpu_info.h ('k') | gpu/config/gpu_info_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698