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/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 use_egl = is_win || is_android || is_linux | 8 use_egl = is_win || is_android || is_linux |
9 use_glx = use_x11 | 9 use_glx = use_x11 |
10 | 10 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 "gl_implementation_win.cc", | 83 "gl_implementation_win.cc", |
84 "gl_osmesa_api_implementation.cc", | 84 "gl_osmesa_api_implementation.cc", |
85 "gl_osmesa_api_implementation.h", | 85 "gl_osmesa_api_implementation.h", |
86 "gl_share_group.cc", | 86 "gl_share_group.cc", |
87 "gl_share_group.h", | 87 "gl_share_group.h", |
88 "gl_state_restorer.cc", | 88 "gl_state_restorer.cc", |
89 "gl_state_restorer.h", | 89 "gl_state_restorer.h", |
90 "gl_surface.cc", | 90 "gl_surface.cc", |
91 "gl_surface.h", | 91 "gl_surface.h", |
92 "gl_surface_android.cc", | 92 "gl_surface_android.cc", |
93 "gl_surface_mac.cc", | |
94 "gl_surface_osmesa.cc", | 93 "gl_surface_osmesa.cc", |
95 "gl_surface_osmesa.h", | 94 "gl_surface_osmesa.h", |
96 "gl_surface_overlay.cc", | 95 "gl_surface_overlay.cc", |
97 "gl_surface_overlay.h", | 96 "gl_surface_overlay.h", |
98 "gl_surface_stub.cc", | 97 "gl_surface_stub.cc", |
99 "gl_surface_stub.h", | 98 "gl_surface_stub.h", |
100 "gl_surface_win.cc", | 99 "gl_surface_win.cc", |
101 "gl_switches.cc", | 100 "gl_switches.cc", |
102 "gl_switches.h", | 101 "gl_switches.h", |
103 "gl_version_info.cc", | 102 "gl_version_info.cc", |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 "//third_party/angle:libEGL", | 179 "//third_party/angle:libEGL", |
181 "//third_party/angle:libGLESv2", | 180 "//third_party/angle:libGLESv2", |
182 ] | 181 ] |
183 } | 182 } |
184 if (use_ozone) { | 183 if (use_ozone) { |
185 sources += [ | 184 sources += [ |
186 "gl_image_ozone_native_pixmap.cc", | 185 "gl_image_ozone_native_pixmap.cc", |
187 "gl_image_ozone_native_pixmap.h", | 186 "gl_image_ozone_native_pixmap.h", |
188 "gl_implementation_ozone.cc", | 187 "gl_implementation_ozone.cc", |
189 "gl_surface_ozone.cc", | 188 "gl_surface_ozone.cc", |
| 189 "gl_surface_ozone.h", |
190 ] | 190 ] |
191 | 191 |
192 deps += [ "//ui/ozone" ] | 192 deps += [ "//ui/ozone" ] |
193 } | 193 } |
194 if (use_glx) { | 194 if (use_glx) { |
195 sources += [ | 195 sources += [ |
196 "gl_bindings_autogen_glx.cc", | 196 "gl_bindings_autogen_glx.cc", |
197 "gl_bindings_autogen_glx.h", | 197 "gl_bindings_autogen_glx.h", |
198 "gl_context_glx.cc", | 198 "gl_context_glx.cc", |
199 "gl_context_glx.h", | 199 "gl_context_glx.h", |
(...skipping 14 matching lines...) Expand all Loading... |
214 deps += [ "//ui/gfx/x" ] | 214 deps += [ "//ui/gfx/x" ] |
215 } | 215 } |
216 if (is_win) { | 216 if (is_win) { |
217 sources += [ | 217 sources += [ |
218 "angle_platform_impl.cc", | 218 "angle_platform_impl.cc", |
219 "angle_platform_impl.h", | 219 "angle_platform_impl.h", |
220 "gl_bindings_autogen_wgl.cc", | 220 "gl_bindings_autogen_wgl.cc", |
221 "gl_bindings_autogen_wgl.h", | 221 "gl_bindings_autogen_wgl.h", |
222 "gl_context_wgl.cc", | 222 "gl_context_wgl.cc", |
223 "gl_context_wgl.h", | 223 "gl_context_wgl.h", |
| 224 "gl_surface_osmesa_win.cc", |
| 225 "gl_surface_osmesa_win.h", |
224 "gl_surface_wgl.cc", | 226 "gl_surface_wgl.cc", |
225 "gl_surface_wgl.h", | 227 "gl_surface_wgl.h", |
226 "gl_wgl_api_implementation.cc", | 228 "gl_wgl_api_implementation.cc", |
227 "gl_wgl_api_implementation.h", | 229 "gl_wgl_api_implementation.h", |
228 "vsync_provider_win.cc", | 230 "vsync_provider_win.cc", |
229 "vsync_provider_win.h", | 231 "vsync_provider_win.h", |
230 ] | 232 ] |
231 | 233 |
232 libs = [ "dwmapi.lib" ] | 234 libs = [ "dwmapi.lib" ] |
233 ldflags = [ "/DELAYLOAD:dwmapi.dll" ] | 235 ldflags = [ "/DELAYLOAD:dwmapi.dll" ] |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 sources = [ | 397 sources = [ |
396 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", | 398 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", |
397 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", | 399 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", |
398 ] | 400 ] |
399 public_deps = [ | 401 public_deps = [ |
400 ":surface_jni_headers", | 402 ":surface_jni_headers", |
401 ] | 403 ] |
402 jni_package = "ui/gl" | 404 jni_package = "ui/gl" |
403 } | 405 } |
404 } | 406 } |
OLD | NEW |