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

Unified Diff: content/browser/BUILD.gn

Issue 2715563002: Moving SwiftShader from component to bundled library (Closed)
Patch Set: Fixed nits and some unit tests 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 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) {

Powered by Google App Engine
This is Rietveld 408576698