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

Unified Diff: ui/gl/BUILD.gn

Issue 2730993002: Finish OSMesa support for Ozone X11. (Closed)
Patch Set: Also InitializeGLOneOffPlatform(). Created 3 years, 10 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 | « no previous file | ui/ozone/platform/x11/x11_surface_factory.cc » ('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 183df6572d11a4ad430de409a9063252760df460..0dd5f6fc0a7bdf1e36c50fa8ba8a95438a0d22f5 100644
--- a/ui/gl/BUILD.gn
+++ b/ui/gl/BUILD.gn
@@ -14,7 +14,7 @@ declare_args() {
}
use_egl = is_win || is_android || is_linux
-use_glx = use_x11 || ozone_platform_x11
+build_x11_gl = use_x11 || ozone_platform_x11
if (is_android) {
import("//build/config/android/config.gni")
@@ -28,7 +28,7 @@ buildflag_header("gl_features") {
config("gl_config") {
defines = []
- if (use_glx) {
+ if (build_x11_gl) {
defines += [
"GL_GLEXT_PROTOTYPES",
"USE_GLX",
@@ -189,8 +189,6 @@ component("gl") {
"gl_surface_egl_x11.h",
"gl_surface_glx_x11.cc",
"gl_surface_glx_x11.h",
- "gl_surface_osmesa_x11.cc",
- "gl_surface_osmesa_x11.h",
]
deps += [ "//ui/base/x" ]
@@ -200,7 +198,7 @@ component("gl") {
"//third_party/angle:libGLESv2",
]
}
- if (use_glx) {
+ if (build_x11_gl) {
sources += [
"gl_bindings_autogen_glx.cc",
"gl_bindings_autogen_glx.h",
@@ -212,6 +210,8 @@ component("gl") {
"gl_image_glx.h",
"gl_surface_glx.cc",
"gl_surface_glx.h",
+ "gl_surface_osmesa_x11.cc",
+ "gl_surface_osmesa_x11.h",
"gl_visual_picker_glx.cc",
"gl_visual_picker_glx.h",
]
@@ -383,7 +383,7 @@ test("gl_unittests") {
]
}
- if (use_glx) {
+ if (build_x11_gl) {
sources += [ "glx_api_unittest.cc" ]
}
« no previous file with comments | « no previous file | ui/ozone/platform/x11/x11_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698