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

Unified Diff: ui/gl/init/BUILD.gn

Issue 2024953002: Move GL one-off initialization code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@split_x11
Patch Set: Delete GLInitializer class. Created 4 years, 6 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 | « ui/gl/gl_surface_x11.cc ('k') | ui/gl/init/gl_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/init/BUILD.gn
diff --git a/ui/gl/init/BUILD.gn b/ui/gl/init/BUILD.gn
index 844ee291e5d59c58f1791c1913ba5f7f295d3965..35df78355aef40fb88c2c7513432b4d7a0cd5af6 100644
--- a/ui/gl/init/BUILD.gn
+++ b/ui/gl/init/BUILD.gn
@@ -2,13 +2,19 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/ui.gni")
+
component("init") {
output_name = "gl_init"
+ public = [
+ "gl_factory.h",
+ ]
+
sources = [
"gl_factory.cc",
- "gl_factory.h",
"gl_init_export.h",
+ "gl_initializer.h",
]
defines = [ "GL_INIT_IMPLEMENTATION" ]
@@ -20,4 +26,18 @@ component("init") {
public_deps = [
"//ui/gl",
]
+
+ if (is_android) {
+ sources += [ "gl_initializer_android.cc" ]
+ } else if (is_win) {
+ sources += [ "gl_initializer_win.cc" ]
+ } else if (is_mac) {
+ sources += [ "gl_initializer_mac.cc" ]
+
+ libs = [ "OpenGL.framework" ]
+ } else if (use_x11) {
+ sources += [ "gl_initializer_x11.cc" ]
+ } else if (use_ozone) {
+ sources += [ "gl_initializer_ozone.cc" ]
+ }
}
« no previous file with comments | « ui/gl/gl_surface_x11.cc ('k') | ui/gl/init/gl_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698