| 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 "test/gl_surface_test_support.cc", | 315 "test/gl_surface_test_support.cc", |
| 316 "test/gl_surface_test_support.h", | 316 "test/gl_surface_test_support.h", |
| 317 "test/gl_test_helper.cc", | 317 "test/gl_test_helper.cc", |
| 318 "test/gl_test_helper.h", | 318 "test/gl_test_helper.h", |
| 319 ] | 319 ] |
| 320 | 320 |
| 321 configs += [ "//third_party/khronos:khronos_headers" ] | 321 configs += [ "//third_party/khronos:khronos_headers" ] |
| 322 | 322 |
| 323 public_deps = [ | 323 public_deps = [ |
| 324 ":gl", | 324 ":gl", |
| 325 "//ui/gl/init", |
| 325 ] | 326 ] |
| 326 deps = [ | 327 deps = [ |
| 327 "//testing/gtest", | 328 "//testing/gtest", |
| 328 ] | 329 ] |
| 329 | 330 |
| 330 if (use_x11) { | 331 if (use_x11) { |
| 331 configs += [ "//build/config/linux:x11" ] | 332 configs += [ "//build/config/linux:x11" ] |
| 332 deps += [ "//ui/platform_window/x11" ] | 333 deps += [ "//ui/platform_window/x11" ] |
| 333 } | 334 } |
| 334 } | 335 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 deps = [ | 367 deps = [ |
| 367 ":gl", | 368 ":gl", |
| 368 ":gl_unittest_utils", | 369 ":gl_unittest_utils", |
| 369 ":test_support", | 370 ":test_support", |
| 370 "//base", | 371 "//base", |
| 371 "//base/test:test_support", | 372 "//base/test:test_support", |
| 372 "//testing/gmock", | 373 "//testing/gmock", |
| 373 "//testing/gtest", | 374 "//testing/gtest", |
| 374 "//ui/gfx", | 375 "//ui/gfx", |
| 375 "//ui/gfx/geometry", | 376 "//ui/gfx/geometry", |
| 377 "//ui/gl/init", |
| 376 ] | 378 ] |
| 377 | 379 |
| 378 data_deps = [ | 380 data_deps = [ |
| 379 "//third_party/mesa:osmesa", | 381 "//third_party/mesa:osmesa", |
| 380 ] | 382 ] |
| 381 | 383 |
| 382 if (use_ozone) { | 384 if (use_ozone) { |
| 383 deps += [ "//ui/ozone" ] | 385 deps += [ "//ui/ozone" ] |
| 384 } | 386 } |
| 385 } | 387 } |
| 386 | 388 |
| 387 if (is_android) { | 389 if (is_android) { |
| 388 generate_jar_jni("surface_jni_headers") { | 390 generate_jar_jni("surface_jni_headers") { |
| 389 jni_package = "ui/gl" | 391 jni_package = "ui/gl" |
| 390 classes = [ "android/view/Surface.class" ] | 392 classes = [ "android/view/Surface.class" ] |
| 391 } | 393 } |
| 392 | 394 |
| 393 generate_jni("gl_jni_headers") { | 395 generate_jni("gl_jni_headers") { |
| 394 sources = [ | 396 sources = [ |
| 395 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", | 397 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", |
| 396 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", | 398 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", |
| 397 ] | 399 ] |
| 398 public_deps = [ | 400 public_deps = [ |
| 399 ":surface_jni_headers", | 401 ":surface_jni_headers", |
| 400 ] | 402 ] |
| 401 jni_package = "ui/gl" | 403 jni_package = "ui/gl" |
| 402 } | 404 } |
| 403 } | 405 } |
| OLD | NEW |