Index: gpu/ipc/service/BUILD.gn |
diff --git a/gpu/ipc/service/BUILD.gn b/gpu/ipc/service/BUILD.gn |
index abec3f8b454ed9a31381f8e342b8c532075108a6..811db059379fa6e4d97f4e5724353f59901c83c3 100644 |
--- a/gpu/ipc/service/BUILD.gn |
+++ b/gpu/ipc/service/BUILD.gn |
@@ -117,6 +117,10 @@ target(link_target_type, "ipc_service_sources") { |
"gpu_memory_buffer_factory_native_pixmap.h", |
"image_transport_surface_linux.cc", |
] |
+ |
+ if (!use_ozone) { |
+ deps += [ "//ui/gfx:memory_buffer_sources" ] |
+ } |
} |
if (use_x11) { |
sources += [ "x_util.h" ] |
@@ -179,6 +183,10 @@ test("gpu_ipc_service_unittests") { |
} |
if (is_linux) { |
sources += [ "gpu_memory_buffer_factory_native_pixmap_unittest.cc" ] |
+ |
+ if (!use_ozone) { |
+ deps += [ "//ui/gfx:memory_buffer_sources" ] |
+ } |
} |
if (use_ozone) { |
deps += [ "//ui/ozone" ] |