| 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("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 use_egl = is_win || is_android || is_linux | 9 use_egl = is_win || is_android || is_linux |
| 10 use_glx = use_x11 | 10 use_glx = use_x11 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 "gl_context_egl.cc", | 154 "gl_context_egl.cc", |
| 155 "gl_context_egl.h", | 155 "gl_context_egl.h", |
| 156 "gl_egl_api_implementation.cc", | 156 "gl_egl_api_implementation.cc", |
| 157 "gl_egl_api_implementation.h", | 157 "gl_egl_api_implementation.h", |
| 158 "gl_fence_egl.cc", | 158 "gl_fence_egl.cc", |
| 159 "gl_fence_egl.h", | 159 "gl_fence_egl.h", |
| 160 "gl_image_egl.cc", | 160 "gl_image_egl.cc", |
| 161 "gl_image_egl.h", | 161 "gl_image_egl.h", |
| 162 "gl_surface_egl.cc", | 162 "gl_surface_egl.cc", |
| 163 "gl_surface_egl.h", | 163 "gl_surface_egl.h", |
| 164 "gl_surface_egl_android.cc", | |
| 165 "gl_surface_egl_win.cc", | |
| 166 ] | 164 ] |
| 167 } | 165 } |
| 168 if (is_android || is_linux) { | 166 if (is_android || is_linux) { |
| 169 sources += [ | 167 sources += [ |
| 170 "gl_implementation_osmesa.cc", | 168 "gl_implementation_osmesa.cc", |
| 171 "gl_implementation_osmesa.h", | 169 "gl_implementation_osmesa.h", |
| 172 ] | 170 ] |
| 173 } | 171 } |
| 174 if (use_x11) { | 172 if (use_x11) { |
| 175 sources += [ | 173 sources += [ |
| 176 "gl_implementation_x11.cc", | 174 "gl_implementation_x11.cc", |
| 177 "gl_surface_egl_x11.cc", | 175 "gl_surface_egl_x11.cc", |
| 178 "gl_surface_egl_x11.h", | 176 "gl_surface_egl_x11.h", |
| 179 "gl_surface_osmesa_x11.cc", | 177 "gl_surface_osmesa_x11.cc", |
| 180 "gl_surface_osmesa_x11.h", | 178 "gl_surface_osmesa_x11.h", |
| 181 ] | 179 ] |
| 182 | 180 |
| 183 data_deps = [ | 181 data_deps = [ |
| 184 "//third_party/angle:libEGL", | 182 "//third_party/angle:libEGL", |
| 185 "//third_party/angle:libGLESv2", | 183 "//third_party/angle:libGLESv2", |
| 186 ] | 184 ] |
| 187 } | 185 } |
| 188 if (use_ozone) { | 186 if (use_ozone) { |
| 189 sources += [ | 187 sources += [ "gl_implementation_ozone.cc" ] |
| 190 "gl_image_ozone_native_pixmap.cc", | |
| 191 "gl_image_ozone_native_pixmap.h", | |
| 192 "gl_implementation_ozone.cc", | |
| 193 "gl_surface_egl_ozone.cc", | |
| 194 ] | |
| 195 | |
| 196 deps += [ "//ui/ozone" ] | |
| 197 } | 188 } |
| 198 if (use_glx) { | 189 if (use_glx) { |
| 199 sources += [ | 190 sources += [ |
| 200 "gl_bindings_autogen_glx.cc", | 191 "gl_bindings_autogen_glx.cc", |
| 201 "gl_bindings_autogen_glx.h", | 192 "gl_bindings_autogen_glx.h", |
| 202 "gl_context_glx.cc", | 193 "gl_context_glx.cc", |
| 203 "gl_context_glx.h", | 194 "gl_context_glx.h", |
| 204 "gl_glx_api_implementation.cc", | 195 "gl_glx_api_implementation.cc", |
| 205 "gl_glx_api_implementation.h", | 196 "gl_glx_api_implementation.h", |
| 206 "gl_image_glx.cc", | 197 "gl_image_glx.cc", |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 sources = [ | 400 sources = [ |
| 410 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", | 401 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", |
| 411 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", | 402 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", |
| 412 ] | 403 ] |
| 413 public_deps = [ | 404 public_deps = [ |
| 414 ":surface_jni_headers", | 405 ":surface_jni_headers", |
| 415 ] | 406 ] |
| 416 jni_package = "ui/gl" | 407 jni_package = "ui/gl" |
| 417 } | 408 } |
| 418 } | 409 } |
| OLD | NEW |