| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 "gl_context_egl.cc", | 159 "gl_context_egl.cc", |
| 160 "gl_context_egl.h", | 160 "gl_context_egl.h", |
| 161 "gl_egl_api_implementation.cc", | 161 "gl_egl_api_implementation.cc", |
| 162 "gl_egl_api_implementation.h", | 162 "gl_egl_api_implementation.h", |
| 163 "gl_fence_egl.cc", | 163 "gl_fence_egl.cc", |
| 164 "gl_fence_egl.h", | 164 "gl_fence_egl.h", |
| 165 "gl_image_egl.cc", | 165 "gl_image_egl.cc", |
| 166 "gl_image_egl.h", | 166 "gl_image_egl.h", |
| 167 "gl_surface_egl.cc", | 167 "gl_surface_egl.cc", |
| 168 "gl_surface_egl.h", | 168 "gl_surface_egl.h", |
| 169 "gl_surface_egl_android.cc", | |
| 170 "gl_surface_egl_win.cc", | |
| 171 ] | 169 ] |
| 172 } | 170 } |
| 173 if (is_android || is_linux) { | 171 if (is_android || is_linux) { |
| 174 sources += [ | 172 sources += [ |
| 175 "gl_implementation_osmesa.cc", | 173 "gl_implementation_osmesa.cc", |
| 176 "gl_implementation_osmesa.h", | 174 "gl_implementation_osmesa.h", |
| 177 ] | 175 ] |
| 178 } | 176 } |
| 179 if (use_x11) { | 177 if (use_x11) { |
| 180 sources += [ | 178 sources += [ |
| 181 "gl_implementation_x11.cc", | 179 "gl_implementation_x11.cc", |
| 182 "gl_surface_egl_x11.cc", | 180 "gl_surface_egl_x11.cc", |
| 183 "gl_surface_egl_x11.h", | 181 "gl_surface_egl_x11.h", |
| 184 "gl_surface_osmesa_x11.cc", | 182 "gl_surface_osmesa_x11.cc", |
| 185 "gl_surface_osmesa_x11.h", | 183 "gl_surface_osmesa_x11.h", |
| 186 ] | 184 ] |
| 187 | 185 |
| 188 data_deps = [ | 186 data_deps = [ |
| 189 "//third_party/angle:libEGL", | 187 "//third_party/angle:libEGL", |
| 190 "//third_party/angle:libGLESv2", | 188 "//third_party/angle:libGLESv2", |
| 191 ] | 189 ] |
| 192 } | 190 } |
| 193 if (use_ozone) { | 191 if (use_ozone) { |
| 194 sources += [ | 192 sources += [ |
| 195 "gl_image_ozone_native_pixmap.cc", | 193 "gl_image_ozone_native_pixmap.cc", |
| 196 "gl_image_ozone_native_pixmap.h", | 194 "gl_image_ozone_native_pixmap.h", |
| 197 "gl_implementation_ozone.cc", | 195 "gl_implementation_ozone.cc", |
| 198 "gl_surface_egl_ozone.cc", | |
| 199 ] | 196 ] |
| 200 | 197 |
| 201 deps += [ "//ui/ozone" ] | 198 deps += [ "//ui/ozone" ] |
| 202 } | 199 } |
| 203 if (use_glx) { | 200 if (use_glx) { |
| 204 sources += [ | 201 sources += [ |
| 205 "gl_bindings_autogen_glx.cc", | 202 "gl_bindings_autogen_glx.cc", |
| 206 "gl_bindings_autogen_glx.h", | 203 "gl_bindings_autogen_glx.h", |
| 207 "gl_context_glx.cc", | 204 "gl_context_glx.cc", |
| 208 "gl_context_glx.h", | 205 "gl_context_glx.h", |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 sources = [ | 411 sources = [ |
| 415 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", | 412 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", |
| 416 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", | 413 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", |
| 417 ] | 414 ] |
| 418 public_deps = [ | 415 public_deps = [ |
| 419 ":surface_jni_headers", | 416 ":surface_jni_headers", |
| 420 ] | 417 ] |
| 421 jni_package = "ui/gl" | 418 jni_package = "ui/gl" |
| 422 } | 419 } |
| 423 } | 420 } |
| OLD | NEW |