Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Side by Side Diff: ui/gl/BUILD.gn

Issue 2037793002: Move GLContext creation from //ui/gl to //ui/gl/init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gl_init
Patch Set: Change to scoped_refptr. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/gl/gl.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 28 matching lines...) Expand all
39 "android/surface_texture_listener.cc", 39 "android/surface_texture_listener.cc",
40 "android/surface_texture_listener.h", 40 "android/surface_texture_listener.h",
41 "gl_bindings.cc", 41 "gl_bindings.cc",
42 "gl_bindings.h", 42 "gl_bindings.h",
43 "gl_bindings_autogen_gl.cc", 43 "gl_bindings_autogen_gl.cc",
44 "gl_bindings_autogen_gl.h", 44 "gl_bindings_autogen_gl.h",
45 "gl_bindings_autogen_osmesa.cc", 45 "gl_bindings_autogen_osmesa.cc",
46 "gl_bindings_autogen_osmesa.h", 46 "gl_bindings_autogen_osmesa.h",
47 "gl_context.cc", 47 "gl_context.cc",
48 "gl_context.h", 48 "gl_context.h",
49 "gl_context_android.cc",
50 "gl_context_mac.mm",
51 "gl_context_osmesa.cc", 49 "gl_context_osmesa.cc",
52 "gl_context_osmesa.h", 50 "gl_context_osmesa.h",
53 "gl_context_stub.cc", 51 "gl_context_stub.cc",
54 "gl_context_stub.h", 52 "gl_context_stub.h",
55 "gl_context_stub_with_extensions.cc", 53 "gl_context_stub_with_extensions.cc",
56 "gl_context_stub_with_extensions.h", 54 "gl_context_stub_with_extensions.h",
57 "gl_context_win.cc",
58 "gl_enums.cc", 55 "gl_enums.cc",
59 "gl_enums.h", 56 "gl_enums.h",
60 "gl_enums_implementation_autogen.h", 57 "gl_enums_implementation_autogen.h",
61 "gl_export.h", 58 "gl_export.h",
62 "gl_fence.cc", 59 "gl_fence.cc",
63 "gl_fence.h", 60 "gl_fence.h",
64 "gl_fence_arb.cc", 61 "gl_fence_arb.cc",
65 "gl_fence_arb.h", 62 "gl_fence_arb.h",
66 "gl_fence_nv.cc", 63 "gl_fence_nv.cc",
67 "gl_fence_nv.h", 64 "gl_fence_nv.h",
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 ] 161 ]
165 } 162 }
166 if (is_android || is_linux) { 163 if (is_android || is_linux) {
167 sources += [ 164 sources += [
168 "gl_implementation_osmesa.cc", 165 "gl_implementation_osmesa.cc",
169 "gl_implementation_osmesa.h", 166 "gl_implementation_osmesa.h",
170 ] 167 ]
171 } 168 }
172 if (use_x11) { 169 if (use_x11) {
173 sources += [ 170 sources += [
174 "gl_context_x11.cc",
175 "gl_implementation_x11.cc", 171 "gl_implementation_x11.cc",
176 "gl_surface_egl_x11.cc", 172 "gl_surface_egl_x11.cc",
177 "gl_surface_egl_x11.h", 173 "gl_surface_egl_x11.h",
178 "gl_surface_osmesa_x11.cc", 174 "gl_surface_osmesa_x11.cc",
179 "gl_surface_osmesa_x11.h", 175 "gl_surface_osmesa_x11.h",
180 "gl_surface_x11.cc", 176 "gl_surface_x11.cc",
181 ] 177 ]
182 178
183 data_deps = [ 179 data_deps = [
184 "//third_party/angle:libEGL", 180 "//third_party/angle:libEGL",
185 "//third_party/angle:libGLESv2", 181 "//third_party/angle:libGLESv2",
186 ] 182 ]
187 } 183 }
188 if (use_ozone) { 184 if (use_ozone) {
189 sources += [ 185 sources += [
190 "gl_context_ozone.cc",
191 "gl_image_ozone_native_pixmap.cc", 186 "gl_image_ozone_native_pixmap.cc",
192 "gl_image_ozone_native_pixmap.h", 187 "gl_image_ozone_native_pixmap.h",
193 "gl_implementation_ozone.cc", 188 "gl_implementation_ozone.cc",
194 "gl_surface_ozone.cc", 189 "gl_surface_ozone.cc",
195 ] 190 ]
196 191
197 deps += [ "//ui/ozone" ] 192 deps += [ "//ui/ozone" ]
198 } 193 }
199 if (use_glx) { 194 if (use_glx) {
200 sources += [ 195 sources += [
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 sources = [ 395 sources = [
401 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", 396 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java",
402 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ", 397 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ",
403 ] 398 ]
404 public_deps = [ 399 public_deps = [
405 ":surface_jni_headers", 400 ":surface_jni_headers",
406 ] 401 ]
407 jni_package = "ui/gl" 402 jni_package = "ui/gl"
408 } 403 }
409 } 404 }
OLDNEW
« no previous file with comments | « no previous file | ui/gl/gl.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698