| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 "gl_implementation_mac.cc", | 89 "gl_implementation_mac.cc", |
| 90 "gl_implementation_win.cc", | 90 "gl_implementation_win.cc", |
| 91 "gl_osmesa_api_implementation.cc", | 91 "gl_osmesa_api_implementation.cc", |
| 92 "gl_osmesa_api_implementation.h", | 92 "gl_osmesa_api_implementation.h", |
| 93 "gl_share_group.cc", | 93 "gl_share_group.cc", |
| 94 "gl_share_group.h", | 94 "gl_share_group.h", |
| 95 "gl_state_restorer.cc", | 95 "gl_state_restorer.cc", |
| 96 "gl_state_restorer.h", | 96 "gl_state_restorer.h", |
| 97 "gl_surface.cc", | 97 "gl_surface.cc", |
| 98 "gl_surface.h", | 98 "gl_surface.h", |
| 99 "gl_surface_android.cc", | |
| 100 "gl_surface_osmesa.cc", | 99 "gl_surface_osmesa.cc", |
| 101 "gl_surface_osmesa.h", | 100 "gl_surface_osmesa.h", |
| 102 "gl_surface_overlay.cc", | 101 "gl_surface_overlay.cc", |
| 103 "gl_surface_overlay.h", | 102 "gl_surface_overlay.h", |
| 104 "gl_surface_stub.cc", | 103 "gl_surface_stub.cc", |
| 105 "gl_surface_stub.h", | 104 "gl_surface_stub.h", |
| 106 "gl_surface_win.cc", | |
| 107 "gl_switches.cc", | 105 "gl_switches.cc", |
| 108 "gl_switches.h", | 106 "gl_switches.h", |
| 109 "gl_version_info.cc", | 107 "gl_version_info.cc", |
| 110 "gl_version_info.h", | 108 "gl_version_info.h", |
| 111 "gpu_switching_manager.cc", | 109 "gpu_switching_manager.cc", |
| 112 "gpu_switching_manager.h", | 110 "gpu_switching_manager.h", |
| 113 "gpu_timing.cc", | 111 "gpu_timing.cc", |
| 114 "gpu_timing.h", | 112 "gpu_timing.h", |
| 115 "scoped_api.cc", | 113 "scoped_api.cc", |
| 116 "scoped_api.h", | 114 "scoped_api.h", |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 "gl_context_egl.cc", | 155 "gl_context_egl.cc", |
| 158 "gl_context_egl.h", | 156 "gl_context_egl.h", |
| 159 "gl_egl_api_implementation.cc", | 157 "gl_egl_api_implementation.cc", |
| 160 "gl_egl_api_implementation.h", | 158 "gl_egl_api_implementation.h", |
| 161 "gl_fence_egl.cc", | 159 "gl_fence_egl.cc", |
| 162 "gl_fence_egl.h", | 160 "gl_fence_egl.h", |
| 163 "gl_image_egl.cc", | 161 "gl_image_egl.cc", |
| 164 "gl_image_egl.h", | 162 "gl_image_egl.h", |
| 165 "gl_surface_egl.cc", | 163 "gl_surface_egl.cc", |
| 166 "gl_surface_egl.h", | 164 "gl_surface_egl.h", |
| 165 "gl_surface_egl_android.cc", |
| 166 "gl_surface_egl_win.cc", |
| 167 ] | 167 ] |
| 168 } | 168 } |
| 169 if (is_android || is_linux) { | 169 if (is_android || is_linux) { |
| 170 sources += [ | 170 sources += [ |
| 171 "gl_implementation_osmesa.cc", | 171 "gl_implementation_osmesa.cc", |
| 172 "gl_implementation_osmesa.h", | 172 "gl_implementation_osmesa.h", |
| 173 ] | 173 ] |
| 174 } | 174 } |
| 175 if (use_x11) { | 175 if (use_x11) { |
| 176 sources += [ | 176 sources += [ |
| 177 "gl_implementation_x11.cc", | 177 "gl_implementation_x11.cc", |
| 178 "gl_surface_egl_x11.cc", | 178 "gl_surface_egl_x11.cc", |
| 179 "gl_surface_egl_x11.h", | 179 "gl_surface_egl_x11.h", |
| 180 "gl_surface_osmesa_x11.cc", | 180 "gl_surface_osmesa_x11.cc", |
| 181 "gl_surface_osmesa_x11.h", | 181 "gl_surface_osmesa_x11.h", |
| 182 "gl_surface_x11.cc", | |
| 183 ] | 182 ] |
| 184 | 183 |
| 185 data_deps = [ | 184 data_deps = [ |
| 186 "//third_party/angle:libEGL", | 185 "//third_party/angle:libEGL", |
| 187 "//third_party/angle:libGLESv2", | 186 "//third_party/angle:libGLESv2", |
| 188 ] | 187 ] |
| 189 } | 188 } |
| 190 if (use_ozone) { | 189 if (use_ozone) { |
| 191 sources += [ | 190 sources += [ |
| 192 "gl_image_ozone_native_pixmap.cc", | 191 "gl_image_ozone_native_pixmap.cc", |
| 193 "gl_image_ozone_native_pixmap.h", | 192 "gl_image_ozone_native_pixmap.h", |
| 194 "gl_implementation_ozone.cc", | 193 "gl_implementation_ozone.cc", |
| 195 "gl_surface_ozone.cc", | 194 "gl_surface_egl_ozone.cc", |
| 196 "gl_surface_ozone.h", | |
| 197 ] | 195 ] |
| 198 | 196 |
| 199 deps += [ "//ui/ozone" ] | 197 deps += [ "//ui/ozone" ] |
| 200 } | 198 } |
| 201 if (use_glx) { | 199 if (use_glx) { |
| 202 sources += [ | 200 sources += [ |
| 203 "gl_bindings_autogen_glx.cc", | 201 "gl_bindings_autogen_glx.cc", |
| 204 "gl_bindings_autogen_glx.h", | 202 "gl_bindings_autogen_glx.h", |
| 205 "gl_context_glx.cc", | 203 "gl_context_glx.cc", |
| 206 "gl_context_glx.h", | 204 "gl_context_glx.h", |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 sources = [ | 409 sources = [ |
| 412 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", | 410 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", |
| 413 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", | 411 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", |
| 414 ] | 412 ] |
| 415 public_deps = [ | 413 public_deps = [ |
| 416 ":surface_jni_headers", | 414 ":surface_jni_headers", |
| 417 ] | 415 ] |
| 418 jni_package = "ui/gl" | 416 jni_package = "ui/gl" |
| 419 } | 417 } |
| 420 } | 418 } |
| OLD | NEW |