| OLD | NEW |
| (Empty) |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import("//testing/test.gni") | |
| 6 | |
| 7 component("display_compositor") { | |
| 8 sources = [ | |
| 9 "buffer_queue.cc", | |
| 10 "buffer_queue.h", | |
| 11 "display_compositor_export.h", | |
| 12 "gl_helper.cc", | |
| 13 "gl_helper.h", | |
| 14 "gl_helper_readback_support.cc", | |
| 15 "gl_helper_readback_support.h", | |
| 16 "gl_helper_scaling.cc", | |
| 17 "gl_helper_scaling.h", | |
| 18 ] | |
| 19 | |
| 20 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | |
| 21 | |
| 22 defines = [ "DISPLAY_COMPOSITOR_IMPLEMENTATION" ] | |
| 23 | |
| 24 deps = [ | |
| 25 "//base", | |
| 26 "//cc", | |
| 27 "//gpu/command_buffer/client", | |
| 28 "//gpu/command_buffer/client:gles2_interface", | |
| 29 "//gpu/command_buffer/common", | |
| 30 "//skia", | |
| 31 "//ui/gfx", | |
| 32 ] | |
| 33 } | |
| 34 | |
| 35 test("display_compositor_unittests") { | |
| 36 sources = [ | |
| 37 "buffer_queue_unittest.cc", | |
| 38 "display_compositor_test_suite.cc", | |
| 39 "display_compositor_test_suite.h", | |
| 40 "gl_helper_unittest.cc", | |
| 41 "run_all_unittests.cc", | |
| 42 "yuv_readback_unittest.cc", | |
| 43 ] | |
| 44 | |
| 45 configs += [ | |
| 46 "//build/config/compiler:no_size_t_to_int_warning", | |
| 47 "//third_party/khronos:khronos_headers", | |
| 48 ] | |
| 49 | |
| 50 deps = [ | |
| 51 ":display_compositor", | |
| 52 "//base", | |
| 53 "//base/test:test_support", | |
| 54 "//cc:test_support", | |
| 55 "//gpu/command_buffer/client", | |
| 56 "//gpu/command_buffer/client:gl_in_process_context", | |
| 57 "//gpu/command_buffer/client:gles2_implementation", | |
| 58 "//media", | |
| 59 "//skia", | |
| 60 "//testing/gmock", | |
| 61 "//testing/gtest", | |
| 62 "//ui/gl:test_support", | |
| 63 ] | |
| 64 | |
| 65 data_deps = [ | |
| 66 "//third_party/mesa:osmesa", | |
| 67 ] | |
| 68 } | |
| 69 | |
| 70 test("display_compositor_benchmark") { | |
| 71 sources = [ | |
| 72 "display_compositor_test_suite.cc", | |
| 73 "display_compositor_test_suite.h", | |
| 74 "gl_helper_benchmark.cc", | |
| 75 "run_all_unittests.cc", | |
| 76 ] | |
| 77 | |
| 78 configs += [ | |
| 79 "//build/config/compiler:no_size_t_to_int_warning", | |
| 80 "//third_party/khronos:khronos_headers", | |
| 81 ] | |
| 82 | |
| 83 deps = [ | |
| 84 ":display_compositor", | |
| 85 "//base", | |
| 86 "//base/test:test_support", | |
| 87 "//cc:test_support", | |
| 88 "//gpu/command_buffer/client", | |
| 89 "//gpu/command_buffer/client:gl_in_process_context", | |
| 90 "//gpu/command_buffer/client:gles2_implementation", | |
| 91 "//media", | |
| 92 "//skia", | |
| 93 "//testing/gmock", | |
| 94 "//testing/gtest", | |
| 95 "//ui/gl:test_support", | |
| 96 ] | |
| 97 | |
| 98 data_deps = [ | |
| 99 "//third_party/mesa:osmesa", | |
| 100 ] | |
| 101 } | |
| OLD | NEW |