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

Side by Side Diff: gpu/BUILD.gn

Issue 1867873002: Move unittests in content/common/gpu/client to gpu/ipc/client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 8 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
OLDNEW
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 # GYP-to-GN project mappings: 5 # GYP-to-GN project mappings:
6 # 6 #
7 # gpu.gyp:command_buffer_client => //gpu/command_buffer/client 7 # gpu.gyp:command_buffer_client => //gpu/command_buffer/client
8 # 8 #
9 # gpu.gyp:command_buffer_common => //gpu/command_buffer/common 9 # gpu.gyp:command_buffer_common => //gpu/command_buffer/common
10 # 10 #
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 "command_buffer/tests/gl_stream_draw_unittest.cc", 175 "command_buffer/tests/gl_stream_draw_unittest.cc",
176 "command_buffer/tests/gl_test_utils.cc", 176 "command_buffer/tests/gl_test_utils.cc",
177 "command_buffer/tests/gl_test_utils.h", 177 "command_buffer/tests/gl_test_utils.h",
178 "command_buffer/tests/gl_tests_main.cc", 178 "command_buffer/tests/gl_tests_main.cc",
179 "command_buffer/tests/gl_texture_mailbox_unittest.cc", 179 "command_buffer/tests/gl_texture_mailbox_unittest.cc",
180 "command_buffer/tests/gl_texture_storage_unittest.cc", 180 "command_buffer/tests/gl_texture_storage_unittest.cc",
181 "command_buffer/tests/gl_unittest.cc", 181 "command_buffer/tests/gl_unittest.cc",
182 "command_buffer/tests/gl_unittests_android.cc", 182 "command_buffer/tests/gl_unittests_android.cc",
183 "command_buffer/tests/gl_virtual_contexts_unittest.cc", 183 "command_buffer/tests/gl_virtual_contexts_unittest.cc",
184 "command_buffer/tests/occlusion_query_unittest.cc", 184 "command_buffer/tests/occlusion_query_unittest.cc",
185 "ipc/client/gpu_context_tests.h",
186 "ipc/client/gpu_in_process_context_tests.cc",
185 ] 187 ]
186 188
187 defines = [ "GL_GLEXT_PROTOTYPES" ] 189 defines = [ "GL_GLEXT_PROTOTYPES" ]
188 190
189 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 191 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
190 192
191 deps = [ 193 deps = [
192 ":gpu", 194 ":gpu",
193 ":test_support", 195 ":test_support",
194 "//base", 196 "//base",
195 "//base/test:test_support", 197 "//base/test:test_support",
196 "//base/third_party/dynamic_annotations", 198 "//base/third_party/dynamic_annotations",
199 "//gpu/command_buffer/client:gl_in_process_context",
197 "//gpu/command_buffer/client:gles2_c_lib", 200 "//gpu/command_buffer/client:gles2_c_lib",
198 "//gpu/command_buffer/client:gles2_implementation", 201 "//gpu/command_buffer/client:gles2_implementation",
199 "//gpu/command_buffer/common:gles2_utils", 202 "//gpu/command_buffer/common:gles2_utils",
200 "//testing/gmock", 203 "//testing/gmock",
201 "//testing/gtest", 204 "//testing/gtest",
202 "//third_party/angle:translator", 205 "//third_party/angle:translator",
203 "//ui/gfx", 206 "//ui/gfx",
204 "//ui/gfx:test_support", 207 "//ui/gfx:test_support",
205 "//ui/gfx/geometry", 208 "//ui/gfx/geometry",
206 "//ui/gl", 209 "//ui/gl",
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 "config/gpu_control_list_version_info_unittest.cc", 308 "config/gpu_control_list_version_info_unittest.cc",
306 "config/gpu_driver_bug_list_unittest.cc", 309 "config/gpu_driver_bug_list_unittest.cc",
307 "config/gpu_info_collector_unittest.cc", 310 "config/gpu_info_collector_unittest.cc",
308 "config/gpu_info_unittest.cc", 311 "config/gpu_info_unittest.cc",
309 "config/gpu_test_config_unittest.cc", 312 "config/gpu_test_config_unittest.cc",
310 "config/gpu_test_expectations_parser_unittest.cc", 313 "config/gpu_test_expectations_parser_unittest.cc",
311 "config/gpu_util_unittest.cc", 314 "config/gpu_util_unittest.cc",
312 "ipc/client/gpu_memory_buffer_impl_shared_memory_unittest.cc", 315 "ipc/client/gpu_memory_buffer_impl_shared_memory_unittest.cc",
313 "ipc/client/gpu_memory_buffer_impl_test_template.h", 316 "ipc/client/gpu_memory_buffer_impl_test_template.h",
314 ] 317 ]
318
319 if (is_android) {
320 sources +=
321 [ "ipc/client/gpu_memory_buffer_impl_surface_texture_unittest.cc" ]
322 }
323
315 if (is_mac) { 324 if (is_mac) {
316 sources += [ "ipc/client/gpu_memory_buffer_impl_io_surface_unittest.cc" ] 325 sources += [ "ipc/client/gpu_memory_buffer_impl_io_surface_unittest.cc" ]
317 } 326 }
318 327
319 configs += [ 328 configs += [
320 "//build/config:precompiled_headers", 329 "//build/config:precompiled_headers",
321 330
322 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 331 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
323 "//build/config/compiler:no_size_t_to_int_warning", 332 "//build/config/compiler:no_size_t_to_int_warning",
324 ] 333 ]
(...skipping 12 matching lines...) Expand all
337 "//testing/gtest", 346 "//testing/gtest",
338 "//third_party/angle:translator", 347 "//third_party/angle:translator",
339 "//ui/gfx", 348 "//ui/gfx",
340 "//ui/gfx:test_support", 349 "//ui/gfx:test_support",
341 "//ui/gfx/geometry", 350 "//ui/gfx/geometry",
342 "//ui/gl", 351 "//ui/gl",
343 "//ui/gl:gl_unittest_utils", 352 "//ui/gl:gl_unittest_utils",
344 "//ui/gl:test_support", 353 "//ui/gl:test_support",
345 ] 354 ]
346 355
356 if (is_android) {
357 deps += [
358 "//ui/android:ui_java",
359 "//ui/gl:gl_jni_headers",
360 ]
361 }
362
347 if (use_ozone) { 363 if (use_ozone) {
348 deps += [ "//ui/ozone" ] 364 deps += [ "//ui/ozone" ]
349 sources += 365 sources +=
350 [ "ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap_unittest.cc" ] 366 [ "ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap_unittest.cc" ]
351 } 367 }
352 } 368 }
353 369
354 test("gpu_perftests") { 370 test("gpu_perftests") {
355 sources = [ 371 sources = [
356 "perftests/measurements.cc", 372 "perftests/measurements.cc",
357 "perftests/run_all_tests.cc", 373 "perftests/run_all_tests.cc",
358 "perftests/texture_upload_perftest.cc", 374 "perftests/texture_upload_perftest.cc",
359 ] 375 ]
360 376
361 deps = [ 377 deps = [
362 "//base", 378 "//base",
363 "//base/test:test_support", 379 "//base/test:test_support",
364 "//gpu/command_buffer/service", 380 "//gpu/command_buffer/service",
365 "//testing/gmock", 381 "//testing/gmock",
366 "//testing/gtest", 382 "//testing/gtest",
367 "//testing/perf", 383 "//testing/perf",
368 "//ui/gfx/geometry", 384 "//ui/gfx/geometry",
369 "//ui/gl", 385 "//ui/gl",
370 ] 386 ]
371 } 387 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698