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

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: add dep 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..cbe832e10ab6d0e030d0e0340721439a0e71a8d2 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 = is_chrome_branded
Ken Russell (switch to Gerrit) 2016/09/14 20:27:52 It looks like this will take effect for all platfo
+}
+
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