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 |