Index: content/browser/BUILD.gn |
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn |
index 968260b9c294468d2de855178199033d5b532f6d..b4985bd5d7ef028267ef502b873aa6b2c1592e5a 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", |
@@ -1560,6 +1561,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) { |