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

Unified Diff: ui/gl/BUILD.gn

Issue 2357453002: Fix ENABLE_SWIFTSHADER flag. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « chrome/browser/component_updater/swiftshader_component_installer.cc ('k') | ui/gl/init/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/BUILD.gn
diff --git a/ui/gl/BUILD.gn b/ui/gl/BUILD.gn
index 8f9896b54cde15ba62750257c21b0a3fe57ec56d..32027848dc137d56b5abf2a231f5baeb1dfc04f4 100644
--- a/ui/gl/BUILD.gn
+++ b/ui/gl/BUILD.gn
@@ -2,10 +2,16 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/buildflag_header.gni")
+import("//build/config/chrome_build.gni")
import("//build/config/linux/pkg_config.gni")
import("//build/config/ui.gni")
import("//testing/test.gni")
+declare_args() {
+ enable_swiftshader = false
+}
+
use_egl = is_win || is_android || is_linux
use_glx = use_x11
@@ -14,6 +20,11 @@ if (is_android) {
import("//build/config/android/rules.gni")
}
+buildflag_header("gl_features") {
+ header = "gl_features.h"
+ flags = [ "ENABLE_SWIFTSHADER=$enable_swiftshader" ]
+}
+
config("gl_config") {
defines = []
if (use_glx) {
« no previous file with comments | « chrome/browser/component_updater/swiftshader_component_installer.cc ('k') | ui/gl/init/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698