summaryrefslogblamecommitdiff
path: root/www-client/chromium/files/chromium-88-gpu-internals-ozone.patch
blob: c74e72bca65f72ad60687cb0833c13756a56eac9 (plain) (tree)




















                                                                                              
diff --git a/content/browser/gpu/gpu_internals_ui.cc b/content/browser/gpu/gpu_internals_ui.cc
index ce9359413..472d42913 100644
--- a/content/browser/gpu/gpu_internals_ui.cc
+++ b/content/browser/gpu/gpu_internals_ui.cc
@@ -69,6 +69,7 @@
 
 #if defined(USE_OZONE)
 #include "ui/base/ui_base_features.h"
+#include "ui/ozone/public/ozone_platform.h"
 #endif
 
 namespace content {
@@ -393,7 +394,7 @@ std::unique_ptr<base::ListValue> GpuMemoryBufferInfo(
   gpu::GpuMemoryBufferSupport gpu_memory_buffer_support;
 
   gpu::GpuMemoryBufferConfigurationSet native_config;
-#if defined(USE_X11)
+#if defined(USE_X11) && defined(USE_OZONE)
   if (!features::IsUsingOzonePlatform()) {
     for (const auto& config : gpu_extra_info.gpu_memory_buffer_support_x11) {
       native_config.emplace(config);