| OLD | NEW |
| 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/linux/pkg_config.gni") | 5 import("//build/config/linux/pkg_config.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//ui/ozone/ozone.gni") |
| 7 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 8 | 9 |
| 9 use_egl = is_win || is_android || is_linux | 10 use_egl = is_win || is_android || is_linux |
| 10 use_glx = use_x11 | 11 use_glx = use_x11 || ozone_platform_x11 |
| 11 | 12 |
| 12 if (is_android) { | 13 if (is_android) { |
| 13 import("//build/config/android/config.gni") | 14 import("//build/config/android/config.gni") |
| 14 import("//build/config/android/rules.gni") | 15 import("//build/config/android/rules.gni") |
| 15 } | 16 } |
| 16 | 17 |
| 17 config("gl_config") { | 18 config("gl_config") { |
| 18 defines = [] | 19 defines = [] |
| 19 if (use_glx) { | 20 if (use_glx) { |
| 20 defines += [ | 21 defines += [ |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 if (is_android || is_linux) { | 162 if (is_android || is_linux) { |
| 162 sources += [ | 163 sources += [ |
| 163 "gl_implementation_osmesa.cc", | 164 "gl_implementation_osmesa.cc", |
| 164 "gl_implementation_osmesa.h", | 165 "gl_implementation_osmesa.h", |
| 165 ] | 166 ] |
| 166 } | 167 } |
| 167 if (use_x11) { | 168 if (use_x11) { |
| 168 sources += [ | 169 sources += [ |
| 169 "gl_surface_egl_x11.cc", | 170 "gl_surface_egl_x11.cc", |
| 170 "gl_surface_egl_x11.h", | 171 "gl_surface_egl_x11.h", |
| 172 "gl_surface_glx_x11.cc", |
| 173 "gl_surface_glx_x11.h", |
| 171 "gl_surface_osmesa_x11.cc", | 174 "gl_surface_osmesa_x11.cc", |
| 172 "gl_surface_osmesa_x11.h", | 175 "gl_surface_osmesa_x11.h", |
| 173 ] | 176 ] |
| 174 | 177 |
| 175 data_deps = [ | 178 data_deps = [ |
| 176 "//third_party/angle:libEGL", | 179 "//third_party/angle:libEGL", |
| 177 "//third_party/angle:libGLESv2", | 180 "//third_party/angle:libGLESv2", |
| 178 ] | 181 ] |
| 179 } | 182 } |
| 180 if (use_glx) { | 183 if (use_glx) { |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 sources = [ | 399 sources = [ |
| 397 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", | 400 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", |
| 398 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", | 401 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", |
| 399 ] | 402 ] |
| 400 public_deps = [ | 403 public_deps = [ |
| 401 ":surface_jni_headers", | 404 ":surface_jni_headers", |
| 402 ] | 405 ] |
| 403 jni_package = "ui/gl" | 406 jni_package = "ui/gl" |
| 404 } | 407 } |
| 405 } | 408 } |
| OLD | NEW |