Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(509)

Unified Diff: content/browser/BUILD.gn

Issue 2715563002: Moving SwiftShader from component to bundled library (Closed)
Patch Set: Specify x11 only support on Linux Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698