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

Unified Diff: ui/gl/BUILD.gn

Issue 1238983002: Initial ui/gl updates for Mac Sky shell target (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 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/gfx/native_widget_types.h ('k') | ui/gl/gl_context_cgl.h » ('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 332d8ce36a0735f499163aa4c247dbaad25d5a23..a5ed5ccbb2a66769b7a95f5d915f175eb3767c94 100644
--- a/ui/gl/BUILD.gn
+++ b/ui/gl/BUILD.gn
@@ -207,7 +207,7 @@ component("gl") {
"//ui/ozone:ozone_base",
]
}
- if (is_ios) {
+ if (is_ios || is_mac) {
sources = []
sources = [
"gl_bindings_autogen_gl.cc",
@@ -218,6 +218,7 @@ component("gl") {
"gl_context.h",
"gl_context_ios.h",
"gl_context_ios.mm",
+ "gl_context_mac.mm",
"gl_context_stub.cc",
"gl_context_stub.h",
"gl_context_stub_with_extensions.cc",
@@ -230,12 +231,14 @@ component("gl") {
"gl_implementation.cc",
"gl_implementation.h",
"gl_implementation_ios.cc",
+ "gl_implementation_mac.cc",
"gl_share_group.cc",
"gl_share_group.h",
"gl_surface.cc",
"gl_surface.h",
"gl_surface_ios.h",
"gl_surface_ios.mm",
+ "gl_surface_mac.cc",
"gl_surface_stub.cc",
"gl_surface_stub.h",
"gl_switches.cc",
@@ -246,6 +249,15 @@ component("gl") {
"gpu_timing.h",
]
}
+
+ if (is_mac) {
+ sources += [
+ "gl_context_cgl.cc",
+ "gl_context_cgl.h",
+ "gpu_switching_manager.cc",
+ "gpu_switching_manager.h",
+ ]
+ }
}
source_set("gl_unittest_utils") {
« no previous file with comments | « ui/gfx/native_widget_types.h ('k') | ui/gl/gl_context_cgl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698