Factor out a BluetoothChannelMac base class and a BluetoothRfcommChannelMac subclass.
[chromium-blink-merge.git] / cc / BUILD.gn
blobfef36f1eb1fb710bc1b0f7bcc172147b20229777
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.
5 component("cc") {
6   sources = [
7     "animation/animation.cc",
8     "animation/animation.h",
9     "animation/animation_curve.cc",
10     "animation/animation_curve.h",
11     "animation/animation_delegate.h",
12     "animation/animation_events.cc",
13     "animation/animation_events.h",
14     "animation/animation_id_provider.cc",
15     "animation/animation_id_provider.h",
16     "animation/animation_registrar.cc",
17     "animation/animation_registrar.h",
18     "animation/keyframed_animation_curve.cc",
19     "animation/keyframed_animation_curve.h",
20     "animation/layer_animation_controller.cc",
21     "animation/layer_animation_controller.h",
22     "animation/layer_animation_event_observer.h",
23     "animation/layer_animation_value_observer.h",
24     "animation/layer_animation_value_provider.h",
25     "animation/scroll_offset_animation_curve.cc",
26     "animation/scroll_offset_animation_curve.h",
27     "animation/scrollbar_animation_controller.h",
28     "animation/scrollbar_animation_controller.cc",
29     "animation/scrollbar_animation_controller_linear_fade.cc",
30     "animation/scrollbar_animation_controller_linear_fade.h",
31     "animation/scrollbar_animation_controller_thinning.cc",
32     "animation/scrollbar_animation_controller_thinning.h",
33     "animation/timing_function.cc",
34     "animation/timing_function.h",
35     "animation/transform_operation.cc",
36     "animation/transform_operation.h",
37     "animation/transform_operations.cc",
38     "animation/transform_operations.h",
39     "base/completion_event.h",
40     "base/invalidation_region.cc",
41     "base/invalidation_region.h",
42     "base/latency_info_swap_promise.cc",
43     "base/latency_info_swap_promise.h",
44     "base/latency_info_swap_promise_monitor.cc",
45     "base/latency_info_swap_promise_monitor.h",
46     "base/math_util.cc",
47     "base/math_util.h",
48     "base/ref_counted_managed.h",
49     "base/region.cc",
50     "base/region.h",
51     "base/rolling_time_delta_history.cc",
52     "base/rolling_time_delta_history.h",
53     "base/scoped_ptr_algorithm.h",
54     "base/scoped_ptr_deque.h",
55     "base/scoped_ptr_vector.h",
56     "base/swap_promise.h",
57     "base/swap_promise_monitor.cc",
58     "base/swap_promise_monitor.h",
59     "base/switches.cc",
60     "base/switches.h",
61     "base/tiling_data.cc",
62     "base/tiling_data.h",
63     "base/util.h",
64     "debug/benchmark_instrumentation.cc",
65     "debug/benchmark_instrumentation.h",
66     "debug/debug_colors.cc",
67     "debug/debug_colors.h",
68     "debug/debug_rect_history.cc",
69     "debug/debug_rect_history.h",
70     "debug/devtools_instrumentation.h",
71     "debug/frame_rate_counter.cc",
72     "debug/frame_rate_counter.h",
73     "debug/frame_viewer_instrumentation.h",
74     "debug/lap_timer.cc",
75     "debug/lap_timer.h",
76     "debug/layer_tree_debug_state.cc",
77     "debug/layer_tree_debug_state.h",
78     "debug/micro_benchmark.cc",
79     "debug/micro_benchmark.h",
80     "debug/micro_benchmark_impl.cc",
81     "debug/micro_benchmark_impl.h",
82     "debug/micro_benchmark_controller.cc",
83     "debug/micro_benchmark_controller.h",
84     "debug/micro_benchmark_controller_impl.cc",
85     "debug/micro_benchmark_controller_impl.h",
86     "debug/paint_time_counter.cc",
87     "debug/paint_time_counter.h",
88     "debug/picture_record_benchmark.cc",
89     "debug/picture_record_benchmark.h",
90     "debug/rasterize_and_record_benchmark.cc",
91     "debug/rasterize_and_record_benchmark.h",
92     "debug/rasterize_and_record_benchmark_impl.cc",
93     "debug/rasterize_and_record_benchmark_impl.h",
94     "debug/rendering_stats.cc",
95     "debug/rendering_stats.h",
96     "debug/rendering_stats_instrumentation.cc",
97     "debug/rendering_stats_instrumentation.h",
98     "debug/ring_buffer.h",
99     "debug/traced_picture.cc",
100     "debug/traced_picture.h",
101     "debug/traced_value.cc",
102     "debug/traced_value.h",
103     "debug/unittest_only_benchmark.cc",
104     "debug/unittest_only_benchmark.h",
105     "debug/unittest_only_benchmark_impl.cc",
106     "debug/unittest_only_benchmark_impl.h",
107     "input/input_handler.h",
108     "input/page_scale_animation.cc",
109     "input/page_scale_animation.h",
110     "input/top_controls_manager.cc",
111     "input/top_controls_manager.h",
112     "input/top_controls_manager_client.h",
113     "layers/append_quads_data.h",
114     "layers/content_layer.cc",
115     "layers/content_layer.h",
116     "layers/content_layer_client.h",
117     "layers/contents_scaling_layer.cc",
118     "layers/contents_scaling_layer.h",
119     "layers/delegated_frame_provider.cc",
120     "layers/delegated_frame_provider.h",
121     "layers/delegated_frame_resource_collection.cc",
122     "layers/delegated_frame_resource_collection.h",
123     "layers/delegated_renderer_layer.cc",
124     "layers/delegated_renderer_layer.h",
125     "layers/delegated_renderer_layer_impl.cc",
126     "layers/delegated_renderer_layer_impl.h",
127     "layers/draw_properties.h",
128     "layers/heads_up_display_layer.cc",
129     "layers/heads_up_display_layer.h",
130     "layers/heads_up_display_layer_impl.cc",
131     "layers/heads_up_display_layer_impl.h",
132     "layers/image_layer.cc",
133     "layers/image_layer.h",
134     "layers/io_surface_layer.cc",
135     "layers/io_surface_layer.h",
136     "layers/io_surface_layer_impl.cc",
137     "layers/io_surface_layer_impl.h",
138     "layers/layer.cc",
139     "layers/layer.h",
140     "layers/layer_client.h",
141     "layers/layer_impl.cc",
142     "layers/layer_impl.h",
143     "layers/layer_iterator.h",
144     "layers/layer_lists.cc",
145     "layers/layer_lists.h",
146     "layers/layer_position_constraint.cc",
147     "layers/layer_position_constraint.h",
148     "layers/layer_utils.cc",
149     "layers/layer_utils.h",
150     "layers/nine_patch_layer.cc",
151     "layers/nine_patch_layer.h",
152     "layers/nine_patch_layer_impl.cc",
153     "layers/nine_patch_layer_impl.h",
154     "layers/paint_properties.h",
155     "layers/painted_scrollbar_layer.cc",
156     "layers/painted_scrollbar_layer.h",
157     "layers/painted_scrollbar_layer_impl.cc",
158     "layers/painted_scrollbar_layer_impl.h",
159     "layers/picture_image_layer.cc",
160     "layers/picture_image_layer.h",
161     "layers/picture_image_layer_impl.cc",
162     "layers/picture_image_layer_impl.h",
163     "layers/picture_layer.cc",
164     "layers/picture_layer.h",
165     "layers/picture_layer_impl.cc",
166     "layers/picture_layer_impl.h",
167     "layers/quad_sink.h",
168     "layers/render_pass_sink.h",
169     "layers/render_surface.cc",
170     "layers/render_surface.h",
171     "layers/render_surface_impl.cc",
172     "layers/render_surface_impl.h",
173     "layers/scrollbar_layer_impl_base.cc",
174     "layers/scrollbar_layer_impl_base.h",
175     "layers/scrollbar_layer_interface.h",
176     "layers/solid_color_layer.cc",
177     "layers/solid_color_layer.h",
178     "layers/solid_color_layer_impl.cc",
179     "layers/solid_color_layer_impl.h",
180     "layers/solid_color_scrollbar_layer.cc",
181     "layers/solid_color_scrollbar_layer.h",
182     "layers/solid_color_scrollbar_layer_impl.cc",
183     "layers/solid_color_scrollbar_layer_impl.h",
184     "layers/surface_layer.cc",
185     "layers/surface_layer.h",
186     "layers/surface_layer_impl.cc",
187     "layers/surface_layer_impl.h",
188     "layers/texture_layer.cc",
189     "layers/texture_layer.h",
190     "layers/texture_layer_client.h",
191     "layers/texture_layer_impl.cc",
192     "layers/texture_layer_impl.h",
193     "layers/tiled_layer.cc",
194     "layers/tiled_layer.h",
195     "layers/tiled_layer_impl.cc",
196     "layers/tiled_layer_impl.h",
197     "layers/ui_resource_layer.cc",
198     "layers/ui_resource_layer.h",
199     "layers/ui_resource_layer_impl.cc",
200     "layers/ui_resource_layer_impl.h",
201     "layers/video_frame_provider.h",
202     "layers/video_frame_provider_client_impl.cc",
203     "layers/video_frame_provider_client_impl.h",
204     "layers/video_layer.cc",
205     "layers/video_layer.h",
206     "layers/video_layer_impl.cc",
207     "layers/video_layer_impl.h",
208     "output/begin_frame_args.cc",
209     "output/begin_frame_args.h",
210     "output/compositor_frame.cc",
211     "output/compositor_frame.h",
212     "output/compositor_frame_ack.cc",
213     "output/compositor_frame_ack.h",
214     "output/compositor_frame_metadata.cc",
215     "output/compositor_frame_metadata.h",
216     "output/context_provider.cc",
217     "output/context_provider.h",
218     "output/copy_output_request.cc",
219     "output/copy_output_request.h",
220     "output/copy_output_result.cc",
221     "output/copy_output_result.h",
222     "output/delegated_frame_data.h",
223     "output/delegated_frame_data.cc",
224     "output/delegating_renderer.cc",
225     "output/delegating_renderer.h",
226     "output/direct_renderer.cc",
227     "output/direct_renderer.h",
228     "output/filter_operation.cc",
229     "output/filter_operation.h",
230     "output/filter_operations.cc",
231     "output/filter_operations.h",
232     "output/geometry_binding.cc",
233     "output/geometry_binding.h",
234     "output/gl_frame_data.h",
235     "output/gl_frame_data.cc",
236     "output/gl_renderer.cc",
237     "output/gl_renderer.h",
238     "output/gl_renderer_draw_cache.cc",
239     "output/gl_renderer_draw_cache.h",
240     "output/managed_memory_policy.cc",
241     "output/managed_memory_policy.h",
242     "output/output_surface.cc",
243     "output/output_surface.h",
244     "output/output_surface_client.h",
245     "output/overlay_candidate.cc",
246     "output/overlay_candidate.h",
247     "output/overlay_candidate_validator.h",
248     "output/overlay_processor.cc",
249     "output/overlay_processor.h",
250     "output/overlay_strategy_single_on_top.cc",
251     "output/overlay_strategy_single_on_top.h",
252     "output/program_binding.cc",
253     "output/program_binding.h",
254     "output/render_surface_filters.cc",
255     "output/render_surface_filters.h",
256     "output/renderer.cc",
257     "output/renderer.h",
258     "output/shader.cc",
259     "output/shader.h",
260     "output/software_frame_data.cc",
261     "output/software_frame_data.h",
262     "output/software_output_device.cc",
263     "output/software_output_device.h",
264     "output/software_renderer.cc",
265     "output/software_renderer.h",
266     "quads/checkerboard_draw_quad.cc",
267     "quads/checkerboard_draw_quad.h",
268     "quads/content_draw_quad_base.cc",
269     "quads/content_draw_quad_base.h",
270     "quads/debug_border_draw_quad.cc",
271     "quads/debug_border_draw_quad.h",
272     "quads/draw_quad.cc",
273     "quads/draw_quad.h",
274     "quads/io_surface_draw_quad.cc",
275     "quads/io_surface_draw_quad.h",
276     "quads/picture_draw_quad.cc",
277     "quads/picture_draw_quad.h",
278     "quads/render_pass.cc",
279     "quads/render_pass.h",
280     "quads/render_pass_draw_quad.cc",
281     "quads/render_pass_draw_quad.h",
282     "quads/shared_quad_state.cc",
283     "quads/shared_quad_state.h",
284     "quads/solid_color_draw_quad.cc",
285     "quads/solid_color_draw_quad.h",
286     "quads/stream_video_draw_quad.cc",
287     "quads/stream_video_draw_quad.h",
288     "quads/surface_draw_quad.cc",
289     "quads/surface_draw_quad.h",
290     "quads/texture_draw_quad.cc",
291     "quads/texture_draw_quad.h",
292     "quads/tile_draw_quad.cc",
293     "quads/tile_draw_quad.h",
294     "quads/yuv_video_draw_quad.cc",
295     "quads/yuv_video_draw_quad.h",
296     "resources/bitmap_content_layer_updater.cc",
297     "resources/bitmap_content_layer_updater.h",
298     "resources/bitmap_skpicture_content_layer_updater.cc",
299     "resources/bitmap_skpicture_content_layer_updater.h",
300     "resources/content_layer_updater.cc",
301     "resources/content_layer_updater.h",
302     "resources/direct_raster_worker_pool.cc",
303     "resources/direct_raster_worker_pool.h",
304     "resources/image_layer_updater.cc",
305     "resources/image_layer_updater.h",
306     "resources/image_raster_worker_pool.cc",
307     "resources/image_raster_worker_pool.h",
308     "resources/image_copy_raster_worker_pool.cc",
309     "resources/image_copy_raster_worker_pool.h",
310     "resources/layer_painter.h",
311     "resources/layer_quad.cc",
312     "resources/layer_quad.h",
313     "resources/layer_tiling_data.cc",
314     "resources/layer_tiling_data.h",
315     "resources/layer_updater.cc",
316     "resources/layer_updater.h",
317     "resources/managed_tile_state.cc",
318     "resources/managed_tile_state.h",
319     "resources/memory_history.cc",
320     "resources/memory_history.h",
321     "resources/picture.cc",
322     "resources/picture.h",
323     "resources/picture_layer_tiling.cc",
324     "resources/picture_layer_tiling.h",
325     "resources/picture_layer_tiling_set.cc",
326     "resources/picture_layer_tiling_set.h",
327     "resources/picture_pile.cc",
328     "resources/picture_pile.h",
329     "resources/picture_pile_base.cc",
330     "resources/picture_pile_base.h",
331     "resources/picture_pile_impl.cc",
332     "resources/picture_pile_impl.h",
333     "resources/pixel_buffer_raster_worker_pool.cc",
334     "resources/pixel_buffer_raster_worker_pool.h",
335     "resources/platform_color.h",
336     "resources/prioritized_resource.cc",
337     "resources/prioritized_resource.h",
338     "resources/prioritized_resource_manager.cc",
339     "resources/prioritized_resource_manager.h",
340     "resources/prioritized_tile_set.cc",
341     "resources/prioritized_tile_set.h",
342     "resources/priority_calculator.cc",
343     "resources/priority_calculator.h",
344     "resources/raster_mode.cc",
345     "resources/raster_mode.h",
346     "resources/raster_worker_pool.cc",
347     "resources/raster_worker_pool.h",
348     "resources/rasterizer.cc",
349     "resources/rasterizer.h",
350     "resources/release_callback.h",
351     "resources/resource.cc",
352     "resources/resource.h",
353     "resources/resource_format.h",
354     "resources/resource_format.cc",
355     "resources/resource_pool.cc",
356     "resources/resource_pool.h",
357     "resources/resource_provider.cc",
358     "resources/resource_provider.h",
359     "resources/resource_update.cc",
360     "resources/resource_update.h",
361     "resources/resource_update_controller.cc",
362     "resources/resource_update_controller.h",
363     "resources/resource_update_queue.cc",
364     "resources/resource_update_queue.h",
365     "resources/returned_resource.h",
366     "resources/scoped_resource.cc",
367     "resources/scoped_resource.h",
368     "resources/scoped_ui_resource.cc",
369     "resources/scoped_ui_resource.h",
370     "resources/shared_bitmap.cc",
371     "resources/shared_bitmap.h",
372     "resources/shared_bitmap_manager.h",
373     "resources/single_release_callback.cc",
374     "resources/single_release_callback.h",
375     "resources/skpicture_content_layer_updater.cc",
376     "resources/skpicture_content_layer_updater.h",
377     "resources/task_graph_runner.cc",
378     "resources/task_graph_runner.h",
379     "resources/texture_mailbox.cc",
380     "resources/texture_mailbox.h",
381     "resources/texture_mailbox_deleter.cc",
382     "resources/texture_mailbox_deleter.h",
383     "resources/texture_uploader.cc",
384     "resources/texture_uploader.h",
385     "resources/tile.cc",
386     "resources/tile.h",
387     "resources/tile_manager.cc",
388     "resources/tile_manager.h",
389     "resources/tile_priority.cc",
390     "resources/tile_priority.h",
391     "resources/transferable_resource.cc",
392     "resources/transferable_resource.h",
393     "resources/ui_resource_bitmap.cc",
394     "resources/ui_resource_bitmap.h",
395     "resources/ui_resource_client.h",
396     "resources/ui_resource_request.cc",
397     "resources/ui_resource_request.h",
398     "resources/video_resource_updater.cc",
399     "resources/video_resource_updater.h",
400     "scheduler/delay_based_time_source.cc",
401     "scheduler/delay_based_time_source.h",
402     "scheduler/draw_result.h",
403     "scheduler/scheduler.cc",
404     "scheduler/scheduler.h",
405     "scheduler/scheduler_settings.cc",
406     "scheduler/scheduler_settings.h",
407     "scheduler/scheduler_state_machine.cc",
408     "scheduler/scheduler_state_machine.h",
409     "scheduler/time_source.h",
410     "trees/blocking_task_runner.cc",
411     "trees/blocking_task_runner.h",
412     "trees/damage_tracker.cc",
413     "trees/damage_tracker.h",
414     "trees/layer_sorter.cc",
415     "trees/layer_sorter.h",
416     "trees/layer_tree_host.cc",
417     "trees/layer_tree_host.h",
418     "trees/layer_tree_host_client.h",
419     "trees/layer_tree_host_common.cc",
420     "trees/layer_tree_host_common.h",
421     "trees/layer_tree_host_impl.cc",
422     "trees/layer_tree_host_impl.h",
423     "trees/layer_tree_impl.cc",
424     "trees/layer_tree_impl.h",
425     "trees/layer_tree_settings.cc",
426     "trees/layer_tree_settings.h",
427     "trees/occlusion_tracker.cc",
428     "trees/occlusion_tracker.h",
429     "trees/proxy.cc",
430     "trees/proxy.h",
431     "trees/proxy_timing_history.cc",
432     "trees/proxy_timing_history.h",
433     "trees/quad_culler.cc",
434     "trees/quad_culler.h",
435     "trees/single_thread_proxy.cc",
436     "trees/single_thread_proxy.h",
437     "trees/thread_proxy.cc",
438     "trees/thread_proxy.h",
439     "trees/tree_synchronizer.cc",
440     "trees/tree_synchronizer.h",
441   ]
443   if (is_win) {
444     # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
445     cflags = [ "/wd4267" ]  # size_t -> int
446   }
448   deps = [
449     "//base",
450     "//base/third_party/dynamic_annotations",
451     "//gpu",
452     #"//media",  TODO(GYP)
453     "//skia",
454     "//ui/events:events_base",
455     "//ui/gfx",
456     "//ui/gfx/geometry",
457     "//ui/gl",
458   ]
459   forward_dependent_configs_from = [
460     "//skia",
461   ]
463   defined = [ "CC_IMPLEMENTATION=1" ]
465   if (!is_debug && is_win) {
466     configs -= [ "//build/config/compiler:optimize" ]
467     configs += [ "//build/config/compiler:optimize_max" ]
468   }
471 component("cc_surfaces") {
472   sources = [
473     "surfaces/surface.cc",
474     "surfaces/surface.h",
475     "surfaces/surface_aggregator.cc",
476     "surfaces/surface_aggregator.h",
477     "surfaces/surface_manager.cc",
478     "surfaces/surface_manager.h",
479     "surfaces/surfaces_export.h",
480   ]
482   defines = [ "CC_SURFACES_IMPLEMENTATION=1" ]
484   deps = [
485     ":cc",
486     "//base",
487     "//base/third_party/dynamic_annotations",
488     "//skia",
489     "//ui/gfx",
490     "//ui/gfx/geometry",
491   ]
494 source_set("test_support") {
495   sources = [
496     "test/animation_test_common.cc",
497     "test/animation_test_common.h",
498     "test/begin_frame_args_test.cc",
499     "test/begin_frame_args_test.h",
500     "test/fake_content_layer.cc",
501     "test/fake_content_layer.h",
502     "test/fake_content_layer_client.cc",
503     "test/fake_content_layer_client.h",
504     "test/fake_content_layer_impl.cc",
505     "test/fake_content_layer_impl.h",
506     "test/fake_delegated_renderer_layer.cc",
507     "test/fake_delegated_renderer_layer.h",
508     "test/fake_delegated_renderer_layer_impl.cc",
509     "test/fake_delegated_renderer_layer_impl.h",
510     "test/fake_impl_proxy.h",
511     "test/fake_layer_tree_host.cc",
512     "test/fake_layer_tree_host.h",
513     "test/fake_layer_tree_host_client.cc",
514     "test/fake_layer_tree_host_client.h",
515     "test/fake_layer_tree_host_impl.cc",
516     "test/fake_layer_tree_host_impl.h",
517     "test/fake_layer_tree_host_impl_client.cc",
518     "test/fake_layer_tree_host_impl_client.h",
519     "test/fake_output_surface.cc",
520     "test/fake_output_surface.h",
521     "test/fake_output_surface_client.cc",
522     "test/fake_output_surface_client.h",
523     "test/fake_painted_scrollbar_layer.cc",
524     "test/fake_painted_scrollbar_layer.h",
525     "test/fake_picture_layer.cc",
526     "test/fake_picture_layer.h",
527     "test/fake_picture_layer_impl.cc",
528     "test/fake_picture_layer_impl.h",
529     "test/fake_picture_layer_tiling_client.cc",
530     "test/fake_picture_layer_tiling_client.h",
531     "test/fake_picture_pile_impl.cc",
532     "test/fake_picture_pile_impl.h",
533     "test/fake_proxy.cc",
534     "test/fake_proxy.h",
535     "test/fake_renderer_client.cc",
536     "test/fake_renderer_client.h",
537     "test/fake_rendering_stats_instrumentation.h",
538     "test/fake_scoped_ui_resource.cc",
539     "test/fake_scoped_ui_resource.h",
540     "test/fake_scrollbar.cc",
541     "test/fake_scrollbar.h",
542     "test/fake_tile_manager.cc",
543     "test/fake_tile_manager.h",
544     "test/fake_tile_manager_client.cc",
545     "test/fake_tile_manager_client.h",
546     "test/fake_ui_resource_layer_tree_host_impl.cc",
547     "test/fake_ui_resource_layer_tree_host_impl.h",
548     "test/fake_video_frame_provider.cc",
549     "test/fake_video_frame_provider.h",
550     "test/geometry_test_utils.cc",
551     "test/geometry_test_utils.h",
552     "test/test_in_process_context_provider.cc",
553     "test/test_in_process_context_provider.h",
554     "test/impl_side_painting_settings.h",
555     "test/layer_test_common.cc",
556     "test/layer_test_common.h",
557     "test/layer_tree_host_common_test.cc",
558     "test/layer_tree_host_common_test.h",
559     "test/layer_tree_json_parser.cc",
560     "test/layer_tree_json_parser.h",
561     "test/layer_tree_pixel_test.cc",
562     "test/layer_tree_pixel_test.h",
563     "test/layer_tree_test.cc",
564     "test/layer_tree_test.h",
565     "test/mock_quad_culler.cc",
566     "test/mock_quad_culler.h",
567     "test/ordered_texture_map.cc",
568     "test/ordered_texture_map.h",
569     "test/paths.cc",
570     "test/paths.h",
571     "test/pixel_comparator.cc",
572     "test/pixel_comparator.h",
573     "test/pixel_test.cc",
574     "test/pixel_test.h",
575     "test/pixel_test_output_surface.cc",
576     "test/pixel_test_output_surface.h",
577     "test/pixel_test_software_output_device.cc",
578     "test/pixel_test_software_output_device.h",
579     "test/pixel_test_utils.cc",
580     "test/pixel_test_utils.h",
581     "test/render_pass_test_common.cc",
582     "test/render_pass_test_common.h",
583     "test/render_pass_test_utils.cc",
584     "test/render_pass_test_utils.h",
585     "test/scheduler_test_common.cc",
586     "test/scheduler_test_common.h",
587     "test/skia_common.cc",
588     "test/skia_common.h",
589     "test/solid_color_content_layer_client.cc",
590     "test/solid_color_content_layer_client.h",
591     "test/test_context_provider.cc",
592     "test/test_context_provider.h",
593     "test/test_context_support.cc",
594     "test/test_context_support.h",
595     "test/test_gles2_interface.cc",
596     "test/test_gles2_interface.h",
597     "test/test_occlusion_tracker.h",
598     "test/test_shared_bitmap_manager.cc",
599     "test/test_shared_bitmap_manager.h",
600     "test/test_texture.cc",
601     "test/test_texture.h",
602     "test/test_tile_priorities.cc",
603     "test/test_tile_priorities.h",
604     "test/test_web_graphics_context_3d.cc",
605     "test/test_web_graphics_context_3d.h",
606     "test/tiled_layer_test_common.cc",
607     "test/tiled_layer_test_common.h",
608   ]
610   include_dirs = [
611     ".",
612     "test",
613   ]
615   deps = [
616     "//base",
617     "//base/third_party/dynamic_annotations",
618     "//gpu:gpu_unittest_utils",
619     "//gpu/command_buffer/client:gles2_c_lib",
620     "//gpu/command_buffer/client:gles2_implementation",
621     "//gpu/command_buffer/client:gl_in_process_context",
622     "//gpu/skia_bindings",
623     "//skia",
624     "//testing/gmock",
625     "//testing/gtest",
626     # TODO(GYP)
627     #"//third_party/mesa/mesa.gyp:osmesa",
628     "//ui/gfx",
629     "//ui/gfx/geometry",
630     "//ui/gfx:gfx_test_support",
631     "//ui/gl",
632   ]
635 # TODO(GYP) make these tests link when all deps are resolved.
636 if (false) {
638 test("cc_unittests") {
639   sources = [
640     "animation/animation_unittest.cc",
641     "animation/keyframed_animation_curve_unittest.cc",
642     "animation/layer_animation_controller_unittest.cc",
643     "animation/scroll_offset_animation_curve_unittest.cc",
644     "animation/scrollbar_animation_controller_linear_fade_unittest.cc",
645     "animation/scrollbar_animation_controller_thinning_unittest.cc",
646     "animation/transform_operations_unittest.cc",
647     "base/float_quad_unittest.cc",
648     "base/math_util_unittest.cc",
649     "base/region_unittest.cc",
650     "base/rolling_time_delta_history_unittest.cc",
651     "base/scoped_ptr_vector_unittest.cc",
652     "base/tiling_data_unittest.cc",
653     "base/util_unittest.cc",
654     "debug/micro_benchmark_controller_unittest.cc",
655     "input/top_controls_manager_unittest.cc",
656     "layers/content_layer_unittest.cc",
657     "layers/contents_scaling_layer_unittest.cc",
658     "layers/delegated_frame_provider_unittest.cc",
659     "layers/delegated_frame_resource_collection_unittest.cc",
660     "layers/delegated_renderer_layer_impl_unittest.cc",
661     "layers/heads_up_display_unittest.cc",
662     "layers/heads_up_display_layer_impl_unittest.cc",
663     "layers/io_surface_layer_impl_unittest.cc",
664     "layers/layer_impl_unittest.cc",
665     "layers/layer_iterator_unittest.cc",
666     "layers/layer_position_constraint_unittest.cc",
667     "layers/layer_unittest.cc",
668     "layers/layer_utils_unittest.cc",
669     "layers/nine_patch_layer_impl_unittest.cc",
670     "layers/nine_patch_layer_unittest.cc",
671     "layers/painted_scrollbar_layer_impl_unittest.cc",
672     "layers/picture_image_layer_impl_unittest.cc",
673     "layers/picture_layer_impl_unittest.cc",
674     "layers/picture_layer_unittest.cc",
675     "layers/render_surface_unittest.cc",
676     "layers/render_surface_impl_unittest.cc",
677     "layers/scrollbar_layer_unittest.cc",
678     "layers/solid_color_layer_impl_unittest.cc",
679     "layers/solid_color_scrollbar_layer_impl_unittest.cc",
680     "layers/surface_layer_impl_unittest.cc",
681     "layers/texture_layer_unittest.cc",
682     "layers/texture_layer_impl_unittest.cc",
683     "layers/tiled_layer_impl_unittest.cc",
684     "layers/tiled_layer_unittest.cc",
685     "layers/ui_resource_layer_impl_unittest.cc",
686     "layers/ui_resource_layer_unittest.cc",
687     "layers/video_layer_impl_unittest.cc",
688     "output/begin_frame_args_unittest.cc",
689     "output/delegating_renderer_unittest.cc",
690     "output/filter_operations_unittest.cc",
691     "output/gl_renderer_unittest.cc",
692     "output/output_surface_unittest.cc",
693     "output/overlay_unittest.cc",
694     "output/renderer_pixeltest.cc",
695     "output/renderer_unittest.cc",
696     "output/shader_unittest.cc",
697     "output/software_renderer_unittest.cc",
698     "quads/draw_quad_unittest.cc",
699     "quads/render_pass_unittest.cc",
700     "resources/layer_quad_unittest.cc",
701     "resources/picture_layer_tiling_set_unittest.cc",
702     "resources/picture_layer_tiling_unittest.cc",
703     "resources/picture_pile_impl_unittest.cc",
704     "resources/picture_pile_unittest.cc",
705     "resources/picture_unittest.cc",
706     "resources/prioritized_resource_unittest.cc",
707     "resources/prioritized_tile_set_unittest.cc",
708     "resources/raster_worker_pool_unittest.cc",
709     "resources/resource_provider_unittest.cc",
710     "resources/resource_update_controller_unittest.cc",
711     "resources/scoped_resource_unittest.cc",
712     "resources/task_graph_runner_unittest.cc",
713     "resources/texture_mailbox_deleter_unittest.cc",
714     "resources/texture_uploader_unittest.cc",
715     "resources/tile_manager_unittest.cc",
716     "resources/tile_priority_unittest.cc",
717     "resources/video_resource_updater_unittest.cc",
718     "scheduler/delay_based_time_source_unittest.cc",
719     "scheduler/scheduler_state_machine_unittest.cc",
720     "scheduler/scheduler_unittest.cc",
721     "test/layer_tree_json_parser_unittest.cc",
722     "test/test_web_graphics_context_3d_unittest.cc",
723     "trees/damage_tracker_unittest.cc",
724     "trees/layer_sorter_unittest.cc",
725     "trees/layer_tree_host_common_unittest.cc",
726     "trees/layer_tree_host_impl_unittest.cc",
727     "trees/layer_tree_host_pixeltest_blending.cc",
728     "trees/layer_tree_host_pixeltest_filters.cc",
729     "trees/layer_tree_host_pixeltest_masks.cc",
730     "trees/layer_tree_host_pixeltest_on_demand_raster.cc",
731     "trees/layer_tree_host_pixeltest_readback.cc",
732     "trees/layer_tree_host_unittest.cc",
733     "trees/layer_tree_host_unittest_animation.cc",
734     "trees/layer_tree_host_unittest_context.cc",
735     "trees/layer_tree_host_unittest_copyrequest.cc",
736     "trees/layer_tree_host_unittest_damage.cc",
737     "trees/layer_tree_host_unittest_delegated.cc",
738     "trees/layer_tree_host_unittest_occlusion.cc",
739     "trees/layer_tree_host_unittest_no_message_loop.cc",
740     "trees/layer_tree_host_unittest_picture.cc",
741     "trees/layer_tree_host_unittest_proxy.cc",
742     "trees/layer_tree_host_unittest_scroll.cc",
743     "trees/layer_tree_host_unittest_video.cc",
744     "trees/layer_tree_impl_unittest.cc",
745     "trees/occlusion_tracker_unittest.cc",
746     "trees/tree_synchronizer_unittest.cc",
748     # Surfaces test files.
749     "surfaces/surface_aggregator_test_helpers.cc",
750     "surfaces/surface_aggregator_test_helpers.h",
751     "surfaces/surface_aggregator_unittest.cc",
752     "surfaces/surface_unittest.cc",
753     "surfaces/surfaces_pixeltest.cc",
755     # Setup.
756     "test/run_all_unittests.cc",
757     "test/cc_test_suite.cc",
758   ]
760   deps = [
761     ":cc",
762     ":cc_surfaces",
763     ":test_support",
764     "//base/test:test_support",
765     "//gpu",
766     "//gpu:gpu_unittest_utils",
767     # TODO(GYP)
768     #"//media",
769     "//testing/gmock",
770     "//testing/gtest",
771     "//ui/events:events_base",
772     "//ui/gfx",
773     "//ui/gfx/geometry",
774   ]
777 test("cc_perftests") {
778   # TODO(GYP)
781 }  # if false