| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 deps = [ | 368 deps = [ |
| 368 ":gl", | 369 ":gl", |
| 369 ":gl_unittest_utils", | 370 ":gl_unittest_utils", |
| 370 ":test_support", | 371 ":test_support", |
| 371 "//base", | 372 "//base", |
| 372 "//base/test:test_support", | 373 "//base/test:test_support", |
| 373 "//testing/gmock", | 374 "//testing/gmock", |
| 374 "//testing/gtest", | 375 "//testing/gtest", |
| 375 "//ui/gfx", | 376 "//ui/gfx", |
| 376 "//ui/gfx/geometry", | 377 "//ui/gfx/geometry", |
| 378 "//ui/gl/init", |
| 377 ] | 379 ] |
| 378 | 380 |
| 379 data_deps = [ | 381 data_deps = [ |
| 380 "//third_party/mesa:osmesa", | 382 "//third_party/mesa:osmesa", |
| 381 ] | 383 ] |
| 382 | 384 |
| 383 if (use_ozone) { | 385 if (use_ozone) { |
| 384 deps += [ "//ui/ozone" ] | 386 deps += [ "//ui/ozone" ] |
| 385 } | 387 } |
| 386 } | 388 } |
| 387 | 389 |
| 388 if (is_android) { | 390 if (is_android) { |
| 389 generate_jar_jni("surface_jni_headers") { | 391 generate_jar_jni("surface_jni_headers") { |
| 390 jni_package = "ui/gl" | 392 jni_package = "ui/gl" |
| 391 classes = [ "android/view/Surface.class" ] | 393 classes = [ "android/view/Surface.class" ] |
| 392 } | 394 } |
| 393 | 395 |
| 394 generate_jni("gl_jni_headers") { | 396 generate_jni("gl_jni_headers") { |
| 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 |