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

Side by Side 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/buildflag_header.gni")
6 import("//build/config/chrome_build.gni")
5 import("//build/config/linux/pkg_config.gni") 7 import("//build/config/linux/pkg_config.gni")
6 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
7 import("//testing/test.gni") 9 import("//testing/test.gni")
8 10
11 declare_args() {
12 enable_swiftshader = false
13 }
14
9 use_egl = is_win || is_android || is_linux 15 use_egl = is_win || is_android || is_linux
10 use_glx = use_x11 16 use_glx = use_x11
11 17
12 if (is_android) { 18 if (is_android) {
13 import("//build/config/android/config.gni") 19 import("//build/config/android/config.gni")
14 import("//build/config/android/rules.gni") 20 import("//build/config/android/rules.gni")
15 } 21 }
16 22
23 buildflag_header("gl_features") {
24 header = "gl_features.h"
25 flags = [ "ENABLE_SWIFTSHADER=$enable_swiftshader" ]
26 }
27
17 config("gl_config") { 28 config("gl_config") {
18 defines = [] 29 defines = []
19 if (use_glx) { 30 if (use_glx) {
20 defines += [ 31 defines += [
21 "GL_GLEXT_PROTOTYPES", 32 "GL_GLEXT_PROTOTYPES",
22 "USE_GLX", 33 "USE_GLX",
23 ] 34 ]
24 } 35 }
25 if (use_egl) { 36 if (use_egl) {
26 defines += [ "USE_EGL" ] 37 defines += [ "USE_EGL" ]
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 sources = [ 403 sources = [
393 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", 404 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java",
394 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ", 405 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ",
395 ] 406 ]
396 public_deps = [ 407 public_deps = [
397 ":surface_jni_headers", 408 ":surface_jni_headers",
398 ] 409 ]
399 jni_package = "ui/gl" 410 jni_package = "ui/gl"
400 } 411 }
401 } 412 }
OLDNEW
« 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