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

Unified Diff: gpu/ipc/common/gpu_info_struct_traits.h

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/ipc/common/gpu_info.mojom ('k') | gpu/ipc/common/gpu_info_struct_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/common/gpu_info_struct_traits.h
diff --git a/gpu/ipc/common/gpu_info_struct_traits.h b/gpu/ipc/common/gpu_info_struct_traits.h
index 089dbaa8125dbc6a6b335a0d489f9c45f1b8e670..ea76e0e279ea3fbb03a08d77e1a0c756347b611d 100644
--- a/gpu/ipc/common/gpu_info_struct_traits.h
+++ b/gpu/ipc/common/gpu_info_struct_traits.h
@@ -284,6 +284,20 @@ struct StructTraits<gpu::mojom::GpuInfoDataView, gpu::GPUInfo> {
static bool jpeg_decode_accelerator_supported(const gpu::GPUInfo& input) {
return input.jpeg_decode_accelerator_supported;
}
+
+ static uint64_t system_visual(const gpu::GPUInfo& input) {
+#if defined(USE_X11) && !defined(OS_CHROMEOS)
+ return input.system_visual;
+#endif
+ return 0;
+ }
+
+ static uint64_t rgba_visual(const gpu::GPUInfo& input) {
+#if defined(USE_X11) && !defined(OS_CHROMEOS)
+ return input.rgba_visual;
+#endif
+ return 0;
+ }
};
} // namespace mojo
« no previous file with comments | « gpu/ipc/common/gpu_info.mojom ('k') | gpu/ipc/common/gpu_info_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698