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

Unified Diff: ui/gl/BUILD.gn

Issue 2337243003: Fix ENABLE_SWIFTSHADER flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable by default 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 bc11394c49c611517446fc22cd23338a1a858942..a99b6160d408e3960d6b60da9fe2a1d99e7a4f0e 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