OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//testing/test.gni") |
| 6 |
| 7 source_set("cc") { |
| 8 sources = [ |
| 9 "debug/frame_timing_request.cc", |
| 10 "debug/frame_timing_request.h", |
| 11 "debug/lap_timer.cc", |
| 12 "debug/lap_timer.h", |
| 13 "debug/paint_time_counter.cc", |
| 14 "debug/paint_time_counter.h", |
| 15 "debug/rendering_stats.cc", |
| 16 "debug/rendering_stats.h", |
| 17 "debug/rendering_stats_instrumentation.cc", |
| 18 "debug/rendering_stats_instrumentation.h", |
| 19 "debug/ring_buffer.h", |
| 20 "debug/traced_value.cc", |
| 21 "debug/traced_value.h", |
| 22 "output/begin_frame_args.cc", |
| 23 "output/begin_frame_args.h", |
| 24 "output/bsp_tree.cc", |
| 25 "output/bsp_tree.h", |
| 26 "output/bsp_walk_action.cc", |
| 27 "output/bsp_walk_action.h", |
| 28 "output/compositor_frame.cc", |
| 29 "output/compositor_frame.h", |
| 30 "output/compositor_frame_ack.cc", |
| 31 "output/compositor_frame_ack.h", |
| 32 "output/compositor_frame_metadata.cc", |
| 33 "output/compositor_frame_metadata.h", |
| 34 "output/context_provider.cc", |
| 35 "output/context_provider.h", |
| 36 "output/copy_output_request.cc", |
| 37 "output/copy_output_request.h", |
| 38 "output/copy_output_result.cc", |
| 39 "output/copy_output_result.h", |
| 40 "output/delegated_frame_data.cc", |
| 41 "output/delegated_frame_data.h", |
| 42 "output/delegating_renderer.cc", |
| 43 "output/delegating_renderer.h", |
| 44 "output/direct_renderer.cc", |
| 45 "output/direct_renderer.h", |
| 46 "output/dynamic_geometry_binding.cc", |
| 47 "output/dynamic_geometry_binding.h", |
| 48 "output/filter_operation.cc", |
| 49 "output/filter_operation.h", |
| 50 "output/filter_operations.cc", |
| 51 "output/filter_operations.h", |
| 52 "output/geometry_binding.cc", |
| 53 "output/geometry_binding.h", |
| 54 "output/gl_frame_data.cc", |
| 55 "output/gl_frame_data.h", |
| 56 "output/gl_renderer.cc", |
| 57 "output/gl_renderer.h", |
| 58 "output/gl_renderer_draw_cache.cc", |
| 59 "output/gl_renderer_draw_cache.h", |
| 60 "output/output_surface.cc", |
| 61 "output/output_surface.h", |
| 62 "output/output_surface_client.h", |
| 63 "output/overlay_candidate.cc", |
| 64 "output/overlay_candidate.h", |
| 65 "output/overlay_candidate_validator.h", |
| 66 "output/overlay_processor.cc", |
| 67 "output/overlay_processor.h", |
| 68 "output/overlay_strategy_single_on_top.cc", |
| 69 "output/overlay_strategy_single_on_top.h", |
| 70 "output/program_binding.cc", |
| 71 "output/program_binding.h", |
| 72 "output/render_surface_filters.cc", |
| 73 "output/render_surface_filters.h", |
| 74 "output/renderer.cc", |
| 75 "output/renderer.h", |
| 76 "output/renderer_capabilities.cc", |
| 77 "output/renderer_capabilities.h", |
| 78 "output/renderer_settings.cc", |
| 79 "output/renderer_settings.h", |
| 80 "output/shader.cc", |
| 81 "output/shader.h", |
| 82 "output/software_frame_data.cc", |
| 83 "output/software_frame_data.h", |
| 84 "output/software_output_device.cc", |
| 85 "output/software_output_device.h", |
| 86 "output/software_renderer.cc", |
| 87 "output/software_renderer.h", |
| 88 "output/static_geometry_binding.cc", |
| 89 "output/static_geometry_binding.h", |
| 90 "output/vsync_parameter_observer.h", |
| 91 "quads/checkerboard_draw_quad.cc", |
| 92 "quads/checkerboard_draw_quad.h", |
| 93 "quads/content_draw_quad_base.cc", |
| 94 "quads/content_draw_quad_base.h", |
| 95 "quads/debug_border_draw_quad.cc", |
| 96 "quads/debug_border_draw_quad.h", |
| 97 "quads/draw_polygon.cc", |
| 98 "quads/draw_polygon.h", |
| 99 "quads/draw_quad.cc", |
| 100 "quads/draw_quad.h", |
| 101 "quads/io_surface_draw_quad.cc", |
| 102 "quads/io_surface_draw_quad.h", |
| 103 "quads/largest_draw_quad.cc", |
| 104 "quads/largest_draw_quad.h", |
| 105 "quads/list_container.cc", |
| 106 "quads/list_container.h", |
| 107 "quads/render_pass.cc", |
| 108 "quads/render_pass.h", |
| 109 "quads/render_pass_draw_quad.cc", |
| 110 "quads/render_pass_draw_quad.h", |
| 111 "quads/render_pass_id.cc", |
| 112 "quads/render_pass_id.h", |
| 113 "quads/shared_quad_state.cc", |
| 114 "quads/shared_quad_state.h", |
| 115 "quads/solid_color_draw_quad.cc", |
| 116 "quads/solid_color_draw_quad.h", |
| 117 "quads/stream_video_draw_quad.cc", |
| 118 "quads/stream_video_draw_quad.h", |
| 119 "quads/surface_draw_quad.cc", |
| 120 "quads/surface_draw_quad.h", |
| 121 "quads/texture_draw_quad.cc", |
| 122 "quads/texture_draw_quad.h", |
| 123 "quads/tile_draw_quad.cc", |
| 124 "quads/tile_draw_quad.h", |
| 125 "quads/yuv_video_draw_quad.cc", |
| 126 "quads/yuv_video_draw_quad.h", |
| 127 "resources/layer_quad.cc", |
| 128 "resources/layer_quad.h", |
| 129 "resources/platform_color.h", |
| 130 "resources/release_callback.h", |
| 131 "resources/resource.cc", |
| 132 "resources/resource.h", |
| 133 "resources/resource_format.cc", |
| 134 "resources/resource_format.h", |
| 135 "resources/resource_pool.cc", |
| 136 "resources/resource_pool.h", |
| 137 "resources/resource_provider.cc", |
| 138 "resources/resource_provider.h", |
| 139 "resources/returned_resource.h", |
| 140 "resources/scoped_resource.cc", |
| 141 "resources/scoped_resource.h", |
| 142 "resources/shared_bitmap.cc", |
| 143 "resources/shared_bitmap.h", |
| 144 "resources/shared_bitmap_manager.h", |
| 145 "resources/single_release_callback.cc", |
| 146 "resources/single_release_callback.h", |
| 147 "resources/single_release_callback_impl.cc", |
| 148 "resources/single_release_callback_impl.h", |
| 149 "resources/texture_compressor.cc", |
| 150 "resources/texture_compressor.h", |
| 151 "resources/texture_compressor_etc1.cc", |
| 152 "resources/texture_compressor_etc1.h", |
| 153 "resources/texture_mailbox.cc", |
| 154 "resources/texture_mailbox.h", |
| 155 "resources/texture_mailbox_deleter.cc", |
| 156 "resources/texture_mailbox_deleter.h", |
| 157 "resources/texture_uploader.cc", |
| 158 "resources/texture_uploader.h", |
| 159 "resources/transferable_resource.cc", |
| 160 "resources/transferable_resource.h", |
| 161 "scheduler/begin_frame_source.cc", |
| 162 "scheduler/begin_frame_source.h", |
| 163 "scheduler/commit_earlyout_reason.h", |
| 164 "scheduler/delay_based_time_source.cc", |
| 165 "scheduler/delay_based_time_source.h", |
| 166 "scheduler/draw_result.h", |
| 167 "scheduler/scheduler.cc", |
| 168 "scheduler/scheduler.h", |
| 169 "scheduler/scheduler_settings.cc", |
| 170 "scheduler/scheduler_settings.h", |
| 171 "scheduler/scheduler_state_machine.cc", |
| 172 "scheduler/scheduler_state_machine.h", |
| 173 ] |
| 174 |
| 175 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 176 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 177 |
| 178 public_deps = [ |
| 179 "//cc/base", |
| 180 "//skia", |
| 181 ] |
| 182 deps = [ |
| 183 "//base", |
| 184 "//base/third_party/dynamic_annotations", |
| 185 "//cc/surfaces:surface_id", |
| 186 "//gpu", |
| 187 "//gpu/command_buffer/client:gles2_interface", |
| 188 "//gpu/command_buffer/client:gpu_memory_buffer_manager", |
| 189 "//ui/events:events_base", |
| 190 "//ui/gfx", |
| 191 "//ui/gfx/geometry", |
| 192 ] |
| 193 |
| 194 defines = [ "CC_IMPLEMENTATION=1" ] |
| 195 |
| 196 if (!is_debug && (is_win || is_android)) { |
| 197 configs -= [ "//build/config/compiler:optimize" ] |
| 198 configs += [ "//build/config/compiler:optimize_max" ] |
| 199 } |
| 200 } |
| 201 |
| 202 source_set("test_support") { |
| 203 testonly = true |
| 204 sources = [ |
| 205 "test/begin_frame_args_test.cc", |
| 206 "test/begin_frame_args_test.h", |
| 207 "test/failure_output_surface.cc", |
| 208 "test/failure_output_surface.h", |
| 209 "test/fake_external_begin_frame_source.cc", |
| 210 "test/fake_external_begin_frame_source.h", |
| 211 "test/fake_output_surface.cc", |
| 212 "test/fake_output_surface.h", |
| 213 "test/fake_output_surface_client.cc", |
| 214 "test/fake_output_surface_client.h", |
| 215 "test/fake_renderer_client.cc", |
| 216 "test/fake_renderer_client.h", |
| 217 "test/geometry_test_utils.cc", |
| 218 "test/geometry_test_utils.h", |
| 219 "test/mock_occlusion_tracker.h", |
| 220 "test/ordered_simple_task_runner.cc", |
| 221 "test/ordered_simple_task_runner.h", |
| 222 "test/ordered_texture_map.cc", |
| 223 "test/ordered_texture_map.h", |
| 224 "test/paths.cc", |
| 225 "test/paths.h", |
| 226 "test/pixel_comparator.cc", |
| 227 "test/pixel_comparator.h", |
| 228 "test/pixel_test.cc", |
| 229 "test/pixel_test.h", |
| 230 "test/pixel_test_output_surface.cc", |
| 231 "test/pixel_test_output_surface.h", |
| 232 "test/pixel_test_software_output_device.cc", |
| 233 "test/pixel_test_software_output_device.h", |
| 234 "test/pixel_test_utils.cc", |
| 235 "test/pixel_test_utils.h", |
| 236 "test/render_pass_test_common.cc", |
| 237 "test/render_pass_test_common.h", |
| 238 "test/render_pass_test_utils.cc", |
| 239 "test/render_pass_test_utils.h", |
| 240 "test/scheduler_test_common.cc", |
| 241 "test/scheduler_test_common.h", |
| 242 "test/skia_common.cc", |
| 243 "test/skia_common.h", |
| 244 "test/test_context_provider.cc", |
| 245 "test/test_context_provider.h", |
| 246 "test/test_context_support.cc", |
| 247 "test/test_context_support.h", |
| 248 "test/test_gles2_interface.cc", |
| 249 "test/test_gles2_interface.h", |
| 250 "test/test_gpu_memory_buffer_manager.cc", |
| 251 "test/test_gpu_memory_buffer_manager.h", |
| 252 "test/test_image_factory.cc", |
| 253 "test/test_image_factory.h", |
| 254 "test/test_in_process_context_provider.cc", |
| 255 "test/test_in_process_context_provider.h", |
| 256 "test/test_now_source.cc", |
| 257 "test/test_now_source.h", |
| 258 "test/test_occlusion_tracker.h", |
| 259 "test/test_shared_bitmap_manager.cc", |
| 260 "test/test_shared_bitmap_manager.h", |
| 261 "test/test_task_graph_runner.cc", |
| 262 "test/test_task_graph_runner.h", |
| 263 "test/test_texture.cc", |
| 264 "test/test_texture.h", |
| 265 ] |
| 266 |
| 267 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 268 |
| 269 include_dirs = [ |
| 270 ".", |
| 271 "test", |
| 272 ] |
| 273 |
| 274 public_deps = [ |
| 275 ":cc", |
| 276 "//gpu:test_support", |
| 277 ] |
| 278 deps = [ |
| 279 "//base", |
| 280 "//base/test:test_support", |
| 281 "//base/third_party/dynamic_annotations", |
| 282 "//gpu/command_buffer/client:gles2_c_lib", |
| 283 "//gpu/command_buffer/client:gles2_implementation", |
| 284 "//gpu/command_buffer/client:gpu_memory_buffer_manager", |
| 285 "//gpu/command_buffer/client:gl_in_process_context", |
| 286 "//gpu/command_buffer/common:gles2_utils", |
| 287 "//gpu/skia_bindings", |
| 288 "//skia", |
| 289 "//testing/gmock", |
| 290 "//testing/gtest", |
| 291 "//ui/gfx", |
| 292 "//ui/gfx/geometry", |
| 293 "//ui/gfx:test_support", |
| 294 "//ui/gl", |
| 295 ] |
| 296 |
| 297 if (!is_android) { # TODO(GYP) Enable on Android when osmesa links. |
| 298 deps += [ "//third_party/mesa:osmesa" ] |
| 299 } |
| 300 } |
| 301 |
| 302 test("cc_unittests") { |
| 303 sources = [ |
| 304 "base/float_quad_unittest.cc", |
| 305 "base/math_util_unittest.cc", |
| 306 "base/scoped_ptr_vector_unittest.cc", |
| 307 "base/util_unittest.cc", |
| 308 "output/begin_frame_args_unittest.cc", |
| 309 "output/delegating_renderer_unittest.cc", |
| 310 "output/filter_operations_unittest.cc", |
| 311 "output/gl_renderer_unittest.cc", |
| 312 "output/output_surface_unittest.cc", |
| 313 "output/overlay_unittest.cc", |
| 314 "output/renderer_pixeltest.cc", |
| 315 "output/renderer_unittest.cc", |
| 316 "output/shader_unittest.cc", |
| 317 "output/software_renderer_unittest.cc", |
| 318 "quads/draw_quad_unittest.cc", |
| 319 "quads/list_container_unittest.cc", |
| 320 "quads/render_pass_unittest.cc", |
| 321 "resources/platform_color_unittest.cc", |
| 322 "resources/resource_provider_unittest.cc", |
| 323 "scheduler/begin_frame_source_unittest.cc", |
| 324 "scheduler/delay_based_time_source_unittest.cc", |
| 325 "scheduler/scheduler_state_machine_unittest.cc", |
| 326 "scheduler/scheduler_unittest.cc", |
| 327 |
| 328 # Surfaces test files. |
| 329 "surfaces/surface_aggregator_test_helpers.cc", |
| 330 "surfaces/surface_aggregator_test_helpers.h", |
| 331 "surfaces/surface_aggregator_unittest.cc", |
| 332 "surfaces/surface_unittest.cc", |
| 333 "surfaces/surfaces_pixeltest.cc", |
| 334 |
| 335 # Setup. |
| 336 "test/cc_test_suite.cc", |
| 337 "test/run_all_unittests.cc", |
| 338 ] |
| 339 |
| 340 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 341 |
| 342 deps = [ |
| 343 ":cc", |
| 344 ":test_support", |
| 345 "//base/test:test_support", |
| 346 "//cc/surfaces", |
| 347 "//cc/surfaces:surface_id", |
| 348 "//gpu", |
| 349 "//gpu:test_support", |
| 350 "//gpu/command_buffer/client:gles2_interface", |
| 351 "//gpu/command_buffer/common:gles2_utils", |
| 352 "//testing/gmock", |
| 353 "//testing/gtest", |
| 354 "//ui/events:events_base", |
| 355 "//ui/gfx", |
| 356 "//ui/gfx/geometry", |
| 357 "//ui/gfx:test_support", |
| 358 "//ui/gl", |
| 359 ] |
| 360 } |
| 361 |
| 362 test("cc_perftests") { |
| 363 sources = [ |
| 364 "resources/texture_compressor_perftest.cc", |
| 365 "test/cc_test_suite.cc", |
| 366 "test/run_all_perftests.cc", |
| 367 ] |
| 368 |
| 369 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 370 |
| 371 deps = [ |
| 372 ":cc", |
| 373 ":test_support", |
| 374 "//base", |
| 375 "//base/test:test_support", |
| 376 "//gpu", |
| 377 "//gpu:test_support", |
| 378 "//gpu/command_buffer/common:gles2_utils", |
| 379 "//skia", |
| 380 "//testing/gmock", |
| 381 "//testing/gtest", |
| 382 "//testing/perf", |
| 383 "//ui/gfx", |
| 384 "//ui/gfx/geometry", |
| 385 "//ui/gl", |
| 386 ] |
| 387 } |
OLD | NEW |