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 += [ "//third_party/khronos:khronos_headers" ] | |
46 | |
47 deps = [ | |
48 ":display_compositor", | |
49 "//base", | |
50 "//base/test:test_support", | |
51 "//cc:test_support", | |
52 "//gpu/command_buffer/client", | |
53 "//gpu/command_buffer/client:gl_in_process_context", | |
54 "//gpu/command_buffer/client:gles2_implementation", | |
55 "//media", | |
56 "//skia", | |
57 "//testing/gmock", | |
58 "//testing/gtest", | |
59 "//ui/gl:test_support", | |
60 ] | |
61 | |
62 data_deps = [ | |
63 "//third_party/mesa:osmesa", | |
64 ] | |
65 } | |
66 | |
67 test("display_compositor_benchmark") { | |
68 sources = [ | |
69 "display_compositor_test_suite.cc", | |
70 "display_compositor_test_suite.h", | |
71 "gl_helper_benchmark.cc", | |
72 "run_all_unittests.cc", | |
73 ] | |
74 | |
75 configs += [ "//third_party/khronos:khronos_headers" ] | |
76 | |
77 deps = [ | |
78 ":display_compositor", | |
79 "//base", | |
80 "//base/test:test_support", | |
81 "//cc:test_support", | |
82 "//gpu/command_buffer/client", | |
83 "//gpu/command_buffer/client:gl_in_process_context", | |
84 "//gpu/command_buffer/client:gles2_implementation", | |
85 "//media", | |
86 "//skia", | |
87 "//testing/gmock", | |
88 "//testing/gtest", | |
89 "//ui/gl:test_support", | |
90 ] | |
91 | |
92 data_deps = [ | |
93 "//third_party/mesa:osmesa", | |
94 ] | |
95 } | |
OLD | NEW |