Index: content/gpu/BUILD.gn |
diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn |
index 7736a555e46816f5ca63381c86baf7f2f67b0479..a31e94fdc3d421d103d844e4571c16e10f5bb9f9 100644 |
--- a/content/gpu/BUILD.gn |
+++ b/content/gpu/BUILD.gn |
@@ -8,7 +8,7 @@ import("//media/media_options.gni") |
# See //content/BUILD.gn for how this works. |
group("gpu") { |
- visibility = [ "//content/*" ] |
+ visibility = [ "//content/*" ] # This is an internal content API. |
if (is_component_build) { |
public_deps = [ |
@@ -22,6 +22,8 @@ group("gpu") { |
} |
source_set("gpu_sources") { |
+ # This is an internal content API. Code outside of the content "component" |
+ # (like content/test and content/shell) should depend on ":gpu" above. |
visibility = [ "//content/*" ] |
sources = [ |
@@ -42,21 +44,23 @@ source_set("gpu_sources") { |
deps = [ |
"//base", |
+ "//base/third_party/dynamic_annotations", |
+ "//components/tracing", |
"//content:export", |
+ "//content/common", |
"//content/public/child:child_sources", |
"//content/public/common:common_sources", |
"//gpu:gpu", |
"//gpu/ipc/common:command_buffer_traits", |
"//ipc", |
+ "//media/mojo/services:application_factory", |
"//mojo/shell/public/interfaces", |
"//skia", |
+ "//ui/events/ipc", |
+ "//ui/gfx/ipc", |
"//ui/gl", |
] |
- public_deps = [ |
- "//content/common:mojo_bindings", |
- ] |
- |
if (mojo_media_host == "gpu") { |
deps += [ "//media/mojo/services:application_factory" ] |
} |
@@ -68,6 +72,7 @@ source_set("gpu_sources") { |
] |
libs = [ "setupapi.lib" ] |
deps += [ |
+ "//sandbox", |
"//third_party/angle:libEGL", |
"//third_party/angle:libGLESv2", |
] |
@@ -81,6 +86,10 @@ source_set("gpu_sources") { |
deps += [ "//ui/events/platform/x11" ] |
} |
+ if (use_ozone) { |
+ deps += [ "//ui/ozone" ] |
+ } |
+ |
if (enable_vulkan) { |
deps += [ "//gpu/vulkan" ] |
} |