Index: content/browser/BUILD.gn |
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn |
index e22683b4fb223b97ebea2e5dcd2170ce6e80ba05..a54c83f99ab6d50b0ee23fe5273ff452e443d574 100644 |
--- a/content/browser/BUILD.gn |
+++ b/content/browser/BUILD.gn |
@@ -145,6 +145,7 @@ source_set("browser") { |
"//ui/gfx/geometry", |
"//ui/gfx/geometry/mojo", |
"//ui/gl", |
+ "//ui/gl:gl_features", |
"//ui/native_theme", |
"//ui/resources", |
"//ui/shell_dialogs", |
@@ -1568,6 +1569,12 @@ source_set("browser") { |
] |
deps += [ "//third_party/webrtc/modules/desktop_capture" ] |
} |
+ |
+ # SwiftShader only supports x86 or x64 architectures |
+ # On Linux, only x11 is supported |
+ if ((target_cpu == "x86" || target_cpu == "x64") && (use_x11 || !is_linux)) { |
+ deps += [ "//third_party/swiftshader" ] |
+ } |
} |
if (is_win) { |