blob: c74e72bca65f72ad60687cb0833c13756a56eac9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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);
|