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

Side by Side Diff: ui/gl/BUILD.gn

Issue 1723303002: Implement GLX for Ozone X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move refactor to new CL. Created 4 years, 8 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/config/ui.gni") 5 import("//build/config/ui.gni")
6 import("//ui/ozone/ozone.gni")
6 import("//testing/test.gni") 7 import("//testing/test.gni")
7 8
8 use_egl = is_win || is_android || is_linux 9 use_egl = is_win || is_android || is_linux
9 use_glx = use_x11 10 use_glx = use_x11 || ozone_platform_x11
10 11
11 if (is_android) { 12 if (is_android) {
12 import("//build/config/android/config.gni") 13 import("//build/config/android/config.gni")
13 import("//build/config/android/rules.gni") 14 import("//build/config/android/rules.gni")
14 } 15 }
15 16
16 config("gl_config") { 17 config("gl_config") {
17 defines = [] 18 defines = []
18 if (use_glx) { 19 if (use_glx) {
19 defines += [ 20 defines += [
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 if (use_ozone) { 190 if (use_ozone) {
190 sources += [ 191 sources += [
191 "gl_context_ozone.cc", 192 "gl_context_ozone.cc",
192 "gl_image_ozone_native_pixmap.cc", 193 "gl_image_ozone_native_pixmap.cc",
193 "gl_image_ozone_native_pixmap.h", 194 "gl_image_ozone_native_pixmap.h",
194 "gl_implementation_ozone.cc", 195 "gl_implementation_ozone.cc",
195 "gl_surface_ozone.cc", 196 "gl_surface_ozone.cc",
196 ] 197 ]
197 198
198 deps += [ "//ui/ozone" ] 199 deps += [ "//ui/ozone" ]
200
201 if (ozone_platform_x11) {
202 deps += [ "//ui/events/platform/x11" ]
203 }
199 } 204 }
200 if (use_glx) { 205 if (use_glx) {
201 sources += [ 206 sources += [
202 "gl_bindings_autogen_glx.cc", 207 "gl_bindings_autogen_glx.cc",
203 "gl_bindings_autogen_glx.h", 208 "gl_bindings_autogen_glx.h",
204 "gl_context_glx.cc", 209 "gl_context_glx.cc",
205 "gl_context_glx.h", 210 "gl_context_glx.h",
206 "gl_glx_api_implementation.cc", 211 "gl_glx_api_implementation.cc",
207 "gl_glx_api_implementation.h", 212 "gl_glx_api_implementation.h",
208 "gl_image_glx.cc", 213 "gl_image_glx.cc",
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 sources = [ 398 sources = [
394 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", 399 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java",
395 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ", 400 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ",
396 ] 401 ]
397 public_deps = [ 402 public_deps = [
398 ":surface_jni_headers", 403 ":surface_jni_headers",
399 ] 404 ]
400 jni_package = "ui/gl" 405 jni_package = "ui/gl"
401 } 406 }
402 } 407 }
OLDNEW
« no previous file with comments | « ui/gfx/x/x11_types.h ('k') | ui/gl/gl_context_ozone.cc » ('j') | ui/gl/gl_context_ozone.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698