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

Side by Side Diff: components/display_compositor/BUILD.gn

Issue 2873243002: Move components/display_compositor to components/viz/display_compositor (Closed)
Patch Set: Rebase Created 3 years, 7 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 | « components/BUILD.gn ('k') | components/display_compositor/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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("//build/config/ui.gni")
6 import("//testing/test.gni")
7
8 component("display_compositor") {
9 sources = [
10 "buffer_queue.cc",
11 "buffer_queue.h",
12 "compositor_overlay_candidate_validator.h",
13 "display_compositor_export.h",
14 "gl_helper.cc",
15 "gl_helper.h",
16 "gl_helper_readback_support.cc",
17 "gl_helper_readback_support.h",
18 "gl_helper_scaling.cc",
19 "gl_helper_scaling.h",
20 "host_shared_bitmap_manager.cc",
21 "host_shared_bitmap_manager.h",
22 ]
23
24 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
25
26 defines = [ "DISPLAY_COMPOSITOR_IMPLEMENTATION" ]
27
28 deps = [
29 "//base",
30 "//cc",
31 "//cc/ipc:interfaces",
32 "//cc/surfaces",
33 "//gpu/command_buffer/client",
34 "//gpu/command_buffer/client:gles2_interface",
35 "//gpu/command_buffer/common",
36 "//gpu/ipc/common:surface_handle_type",
37 "//skia",
38 "//ui/display/types",
39 "//ui/gfx",
40 ]
41
42 if (is_mac) {
43 sources += [
44 "compositor_overlay_candidate_validator_mac.h",
45 "compositor_overlay_candidate_validator_mac.mm",
46 ]
47 }
48
49 if (is_android) {
50 sources += [
51 "compositor_overlay_candidate_validator_android.cc",
52 "compositor_overlay_candidate_validator_android.h",
53 ]
54 }
55
56 if (use_ozone) {
57 sources += [
58 "compositor_overlay_candidate_validator_ozone.cc",
59 "compositor_overlay_candidate_validator_ozone.h",
60 ]
61
62 deps += [ "//ui/ozone" ]
63 }
64
65 if (is_win) {
66 sources += [
67 "compositor_overlay_candidate_validator_win.cc",
68 "compositor_overlay_candidate_validator_win.h",
69 ]
70 }
71 }
72
73 # These are part of the components_unittests build target.
74 source_set("unit_tests") {
75 testonly = true
76 sources = [
77 "buffer_queue_unittest.cc",
78 "host_shared_bitmap_manager_unittest.cc",
79 ]
80
81 if (!use_aura && !is_mac) {
82 sources -= [ "buffer_queue_unittest.cc" ]
83 }
84
85 configs += [
86 "//build/config/compiler:no_size_t_to_int_warning",
87 "//third_party/khronos:khronos_headers",
88 ]
89
90 deps = [
91 ":display_compositor",
92 "//base",
93 "//base/test:test_support",
94 "//cc:test_support",
95 "//gpu/command_buffer/client",
96 "//gpu/command_buffer/client:gles2_implementation",
97 "//gpu/ipc:gl_in_process_context",
98 "//media",
99 "//skia",
100 "//testing/gmock",
101 "//testing/gtest",
102 "//ui/display/types",
103 "//ui/gl:test_support",
104 ]
105
106 data_deps = [
107 "//third_party/mesa:osmesa",
108 ]
109 }
110
111 test("display_compositor_gl_tests") {
112 sources = [
113 "display_compositor_test_suite.cc",
114 "display_compositor_test_suite.h",
115 "gl_helper_unittest.cc",
116 "run_all_unittests.cc",
117 "yuv_readback_unittest.cc",
118 ]
119
120 configs += [
121 "//build/config/compiler:no_size_t_to_int_warning",
122 "//third_party/khronos:khronos_headers",
123 ]
124
125 deps = [
126 ":display_compositor",
127 "//base",
128 "//base/test:test_support",
129 "//cc:test_support",
130 "//gpu/command_buffer/client",
131 "//gpu/command_buffer/client:gles2_implementation",
132 "//gpu/ipc:gl_in_process_context",
133 "//media",
134 "//skia",
135 "//testing/gmock",
136 "//testing/gtest",
137 "//ui/gl:test_support",
138 ]
139
140 data_deps = [
141 "//third_party/mesa:osmesa",
142 ]
143 }
144
145 test("display_compositor_benchmark") {
146 sources = [
147 "display_compositor_test_suite.cc",
148 "display_compositor_test_suite.h",
149 "gl_helper_benchmark.cc",
150 "run_all_unittests.cc",
151 ]
152
153 configs += [
154 "//build/config/compiler:no_size_t_to_int_warning",
155 "//third_party/khronos:khronos_headers",
156 ]
157
158 deps = [
159 ":display_compositor",
160 "//base",
161 "//base/test:test_support",
162 "//cc:test_support",
163 "//gpu/command_buffer/client",
164 "//gpu/command_buffer/client:gles2_implementation",
165 "//gpu/ipc:gl_in_process_context",
166 "//media",
167 "//skia",
168 "//testing/gmock",
169 "//testing/gtest",
170 "//ui/gl:test_support",
171 ]
172
173 data_deps = [
174 "//third_party/mesa:osmesa",
175 ]
176 }
OLDNEW
« no previous file with comments | « components/BUILD.gn ('k') | components/display_compositor/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698