Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / cc / BUILD.gn
blob004a1b86e1878971474911f0040a1c46b23e3aa1
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 import("//testing/test.gni")
7 component("cc") {
8   sources = [
9     "animation/animation.cc",
10     "animation/animation.h",
11     "animation/animation_curve.cc",
12     "animation/animation_curve.h",
13     "animation/animation_delegate.h",
14     "animation/animation_events.cc",
15     "animation/animation_events.h",
16     "animation/animation_host.cc",
17     "animation/animation_host.h",
18     "animation/animation_id_provider.cc",
19     "animation/animation_id_provider.h",
20     "animation/animation_player.cc",
21     "animation/animation_player.h",
22     "animation/animation_registrar.cc",
23     "animation/animation_registrar.h",
24     "animation/animation_timeline.cc",
25     "animation/animation_timeline.h",
26     "animation/element_animations.cc",
27     "animation/element_animations.h",
28     "animation/keyframed_animation_curve.cc",
29     "animation/keyframed_animation_curve.h",
30     "animation/layer_animation_controller.cc",
31     "animation/layer_animation_controller.h",
32     "animation/layer_animation_event_observer.h",
33     "animation/layer_animation_value_observer.h",
34     "animation/layer_animation_value_provider.h",
35     "animation/scroll_offset_animation_curve.cc",
36     "animation/scroll_offset_animation_curve.h",
37     "animation/scrollbar_animation_controller.cc",
38     "animation/scrollbar_animation_controller.h",
39     "animation/scrollbar_animation_controller_linear_fade.cc",
40     "animation/scrollbar_animation_controller_linear_fade.h",
41     "animation/scrollbar_animation_controller_thinning.cc",
42     "animation/scrollbar_animation_controller_thinning.h",
43     "animation/timing_function.cc",
44     "animation/timing_function.h",
45     "animation/transform_operation.cc",
46     "animation/transform_operation.h",
47     "animation/transform_operations.cc",
48     "animation/transform_operations.h",
49     "debug/benchmark_instrumentation.cc",
50     "debug/benchmark_instrumentation.h",
51     "debug/debug_colors.cc",
52     "debug/debug_colors.h",
53     "debug/debug_rect_history.cc",
54     "debug/debug_rect_history.h",
55     "debug/devtools_instrumentation.h",
56     "debug/frame_rate_counter.cc",
57     "debug/frame_rate_counter.h",
58     "debug/frame_timing_request.cc",
59     "debug/frame_timing_request.h",
60     "debug/frame_timing_tracker.cc",
61     "debug/frame_timing_tracker.h",
62     "debug/frame_viewer_instrumentation.cc",
63     "debug/frame_viewer_instrumentation.h",
64     "debug/invalidation_benchmark.cc",
65     "debug/invalidation_benchmark.h",
66     "debug/lap_timer.cc",
67     "debug/lap_timer.h",
68     "debug/layer_tree_debug_state.cc",
69     "debug/layer_tree_debug_state.h",
70     "debug/micro_benchmark.cc",
71     "debug/micro_benchmark.h",
72     "debug/micro_benchmark_controller.cc",
73     "debug/micro_benchmark_controller.h",
74     "debug/micro_benchmark_controller_impl.cc",
75     "debug/micro_benchmark_controller_impl.h",
76     "debug/micro_benchmark_impl.cc",
77     "debug/micro_benchmark_impl.h",
78     "debug/paint_time_counter.cc",
79     "debug/paint_time_counter.h",
80     "debug/picture_debug_util.cc",
81     "debug/picture_debug_util.h",
82     "debug/picture_record_benchmark.cc",
83     "debug/picture_record_benchmark.h",
84     "debug/rasterize_and_record_benchmark.cc",
85     "debug/rasterize_and_record_benchmark.h",
86     "debug/rasterize_and_record_benchmark_impl.cc",
87     "debug/rasterize_and_record_benchmark_impl.h",
88     "debug/rendering_stats.cc",
89     "debug/rendering_stats.h",
90     "debug/rendering_stats_instrumentation.cc",
91     "debug/rendering_stats_instrumentation.h",
92     "debug/ring_buffer.h",
93     "debug/traced_display_item_list.cc",
94     "debug/traced_display_item_list.h",
95     "debug/traced_picture.cc",
96     "debug/traced_picture.h",
97     "debug/traced_value.cc",
98     "debug/traced_value.h",
99     "debug/unittest_only_benchmark.cc",
100     "debug/unittest_only_benchmark.h",
101     "debug/unittest_only_benchmark_impl.cc",
102     "debug/unittest_only_benchmark_impl.h",
103     "input/input_handler.cc",
104     "input/input_handler.h",
105     "input/layer_selection_bound.cc",
106     "input/layer_selection_bound.h",
107     "input/page_scale_animation.cc",
108     "input/page_scale_animation.h",
109     "input/scroll_elasticity_helper.cc",
110     "input/scroll_elasticity_helper.h",
111     "input/scroll_state.cc",
112     "input/scroll_state.h",
113     "input/selection.h",
114     "input/selection_bound_type.h",
115     "input/top_controls_manager.cc",
116     "input/top_controls_manager.h",
117     "input/top_controls_manager_client.h",
118     "layers/append_quads_data.h",
119     "layers/content_layer_client.h",
120     "layers/delegated_frame_provider.cc",
121     "layers/delegated_frame_provider.h",
122     "layers/delegated_frame_resource_collection.cc",
123     "layers/delegated_frame_resource_collection.h",
124     "layers/delegated_renderer_layer.cc",
125     "layers/delegated_renderer_layer.h",
126     "layers/delegated_renderer_layer_impl.cc",
127     "layers/delegated_renderer_layer_impl.h",
128     "layers/draw_properties.cc",
129     "layers/draw_properties.h",
130     "layers/heads_up_display_layer.cc",
131     "layers/heads_up_display_layer.h",
132     "layers/heads_up_display_layer_impl.cc",
133     "layers/heads_up_display_layer_impl.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.h",
145     "layers/layer_position_constraint.cc",
146     "layers/layer_position_constraint.h",
147     "layers/layer_utils.cc",
148     "layers/layer_utils.h",
149     "layers/nine_patch_layer.cc",
150     "layers/nine_patch_layer.h",
151     "layers/nine_patch_layer_impl.cc",
152     "layers/nine_patch_layer_impl.h",
153     "layers/paint_properties.h",
154     "layers/painted_scrollbar_layer.cc",
155     "layers/painted_scrollbar_layer.h",
156     "layers/painted_scrollbar_layer_impl.cc",
157     "layers/painted_scrollbar_layer_impl.h",
158     "layers/picture_image_layer.cc",
159     "layers/picture_image_layer.h",
160     "layers/picture_image_layer_impl.cc",
161     "layers/picture_image_layer_impl.h",
162     "layers/picture_layer.cc",
163     "layers/picture_layer.h",
164     "layers/picture_layer_impl.cc",
165     "layers/picture_layer_impl.h",
166     "layers/render_pass_sink.h",
167     "layers/render_surface_draw_properties.cc",
168     "layers/render_surface_draw_properties.h",
169     "layers/render_surface_impl.cc",
170     "layers/render_surface_impl.h",
171     "layers/scrollbar_layer_impl_base.cc",
172     "layers/scrollbar_layer_impl_base.h",
173     "layers/scrollbar_layer_interface.h",
174     "layers/solid_color_layer.cc",
175     "layers/solid_color_layer.h",
176     "layers/solid_color_layer_impl.cc",
177     "layers/solid_color_layer_impl.h",
178     "layers/solid_color_scrollbar_layer.cc",
179     "layers/solid_color_scrollbar_layer.h",
180     "layers/solid_color_scrollbar_layer_impl.cc",
181     "layers/solid_color_scrollbar_layer_impl.h",
182     "layers/surface_layer.cc",
183     "layers/surface_layer.h",
184     "layers/surface_layer_impl.cc",
185     "layers/surface_layer_impl.h",
186     "layers/texture_layer.cc",
187     "layers/texture_layer.h",
188     "layers/texture_layer_client.h",
189     "layers/texture_layer_impl.cc",
190     "layers/texture_layer_impl.h",
191     "layers/ui_resource_layer.cc",
192     "layers/ui_resource_layer.h",
193     "layers/ui_resource_layer_impl.cc",
194     "layers/ui_resource_layer_impl.h",
195     "layers/video_frame_provider.h",
196     "layers/video_frame_provider_client_impl.cc",
197     "layers/video_frame_provider_client_impl.h",
198     "layers/video_layer.cc",
199     "layers/video_layer.h",
200     "layers/video_layer_impl.cc",
201     "layers/video_layer_impl.h",
202     "layers/viewport.cc",
203     "layers/viewport.h",
204     "output/begin_frame_args.cc",
205     "output/begin_frame_args.h",
206     "output/bsp_tree.cc",
207     "output/bsp_tree.h",
208     "output/bsp_walk_action.cc",
209     "output/bsp_walk_action.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.cc",
223     "output/delegated_frame_data.h",
224     "output/delegating_renderer.cc",
225     "output/delegating_renderer.h",
226     "output/direct_renderer.cc",
227     "output/direct_renderer.h",
228     "output/dynamic_geometry_binding.cc",
229     "output/dynamic_geometry_binding.h",
230     "output/filter_operation.cc",
231     "output/filter_operation.h",
232     "output/filter_operations.cc",
233     "output/filter_operations.h",
234     "output/geometry_binding.cc",
235     "output/geometry_binding.h",
236     "output/gl_frame_data.cc",
237     "output/gl_frame_data.h",
238     "output/gl_renderer.cc",
239     "output/gl_renderer.h",
240     "output/gl_renderer_draw_cache.cc",
241     "output/gl_renderer_draw_cache.h",
242     "output/latency_info_swap_promise.cc",
243     "output/latency_info_swap_promise.h",
244     "output/layer_quad.cc",
245     "output/layer_quad.h",
246     "output/managed_memory_policy.cc",
247     "output/managed_memory_policy.h",
248     "output/output_surface.cc",
249     "output/output_surface.h",
250     "output/output_surface_client.h",
251     "output/overlay_candidate.cc",
252     "output/overlay_candidate.h",
253     "output/overlay_candidate_validator.h",
254     "output/overlay_processor.cc",
255     "output/overlay_processor.h",
256     "output/overlay_strategy_common.cc",
257     "output/overlay_strategy_common.h",
258     "output/overlay_strategy_sandwich.cc",
259     "output/overlay_strategy_sandwich.h",
260     "output/overlay_strategy_single_on_top.cc",
261     "output/overlay_strategy_single_on_top.h",
262     "output/overlay_strategy_underlay.cc",
263     "output/overlay_strategy_underlay.h",
264     "output/program_binding.cc",
265     "output/program_binding.h",
266     "output/render_surface_filters.cc",
267     "output/render_surface_filters.h",
268     "output/renderer.cc",
269     "output/renderer.h",
270     "output/renderer_capabilities.cc",
271     "output/renderer_capabilities.h",
272     "output/renderer_settings.cc",
273     "output/renderer_settings.h",
274     "output/shader.cc",
275     "output/shader.h",
276     "output/software_output_device.cc",
277     "output/software_output_device.h",
278     "output/software_renderer.cc",
279     "output/software_renderer.h",
280     "output/static_geometry_binding.cc",
281     "output/static_geometry_binding.h",
282     "output/swap_promise.h",
283     "output/texture_mailbox_deleter.cc",
284     "output/texture_mailbox_deleter.h",
285     "output/viewport_selection_bound.cc",
286     "output/viewport_selection_bound.h",
287     "playback/clip_display_item.cc",
288     "playback/clip_display_item.h",
289     "playback/clip_path_display_item.cc",
290     "playback/clip_path_display_item.h",
291     "playback/compositing_display_item.cc",
292     "playback/compositing_display_item.h",
293     "playback/display_item.cc",
294     "playback/display_item.h",
295     "playback/display_item_list.cc",
296     "playback/display_item_list.h",
297     "playback/display_item_list_settings.cc",
298     "playback/display_item_list_settings.h",
299     "playback/display_list_raster_source.cc",
300     "playback/display_list_raster_source.h",
301     "playback/display_list_recording_source.cc",
302     "playback/display_list_recording_source.h",
303     "playback/drawing_display_item.cc",
304     "playback/drawing_display_item.h",
305     "playback/filter_display_item.cc",
306     "playback/filter_display_item.h",
307     "playback/float_clip_display_item.cc",
308     "playback/float_clip_display_item.h",
309     "playback/largest_display_item.cc",
310     "playback/largest_display_item.h",
311     "playback/picture.cc",
312     "playback/picture.h",
313     "playback/picture_pile.cc",
314     "playback/picture_pile.h",
315     "playback/picture_pile_impl.cc",
316     "playback/picture_pile_impl.h",
317     "playback/pixel_ref_map.cc",
318     "playback/pixel_ref_map.h",
319     "playback/raster_source.h",
320     "playback/raster_source_helper.cc",
321     "playback/raster_source_helper.h",
322     "playback/transform_display_item.cc",
323     "playback/transform_display_item.h",
324     "quads/content_draw_quad_base.cc",
325     "quads/content_draw_quad_base.h",
326     "quads/debug_border_draw_quad.cc",
327     "quads/debug_border_draw_quad.h",
328     "quads/draw_polygon.cc",
329     "quads/draw_polygon.h",
330     "quads/draw_quad.cc",
331     "quads/draw_quad.h",
332     "quads/io_surface_draw_quad.cc",
333     "quads/io_surface_draw_quad.h",
334     "quads/largest_draw_quad.cc",
335     "quads/largest_draw_quad.h",
336     "quads/picture_draw_quad.cc",
337     "quads/picture_draw_quad.h",
338     "quads/render_pass.cc",
339     "quads/render_pass.h",
340     "quads/render_pass_draw_quad.cc",
341     "quads/render_pass_draw_quad.h",
342     "quads/render_pass_id.cc",
343     "quads/render_pass_id.h",
344     "quads/shared_quad_state.cc",
345     "quads/shared_quad_state.h",
346     "quads/solid_color_draw_quad.cc",
347     "quads/solid_color_draw_quad.h",
348     "quads/stream_video_draw_quad.cc",
349     "quads/stream_video_draw_quad.h",
350     "quads/surface_draw_quad.cc",
351     "quads/surface_draw_quad.h",
352     "quads/texture_draw_quad.cc",
353     "quads/texture_draw_quad.h",
354     "quads/tile_draw_quad.cc",
355     "quads/tile_draw_quad.h",
356     "quads/yuv_video_draw_quad.cc",
357     "quads/yuv_video_draw_quad.h",
358     "raster/bitmap_tile_task_worker_pool.cc",
359     "raster/bitmap_tile_task_worker_pool.h",
360     "raster/gpu_rasterizer.cc",
361     "raster/gpu_rasterizer.h",
362     "raster/gpu_tile_task_worker_pool.cc",
363     "raster/gpu_tile_task_worker_pool.h",
364     "raster/one_copy_tile_task_worker_pool.cc",
365     "raster/one_copy_tile_task_worker_pool.h",
366     "raster/raster_buffer.cc",
367     "raster/raster_buffer.h",
368     "raster/scoped_gpu_raster.cc",
369     "raster/scoped_gpu_raster.h",
370     "raster/task_graph_runner.cc",
371     "raster/task_graph_runner.h",
372     "raster/texture_compressor.cc",
373     "raster/texture_compressor.h",
374     "raster/texture_compressor_etc1.cc",
375     "raster/texture_compressor_etc1.h",
376     "raster/tile_task_runner.cc",
377     "raster/tile_task_runner.h",
378     "raster/tile_task_worker_pool.cc",
379     "raster/tile_task_worker_pool.h",
380     "raster/zero_copy_tile_task_worker_pool.cc",
381     "raster/zero_copy_tile_task_worker_pool.h",
382     "resources/memory_history.cc",
383     "resources/memory_history.h",
384     "resources/platform_color.h",
385     "resources/release_callback.h",
386     "resources/resource.h",
387     "resources/resource_format.cc",
388     "resources/resource_format.h",
389     "resources/resource_pool.cc",
390     "resources/resource_pool.h",
391     "resources/resource_provider.cc",
392     "resources/resource_provider.h",
393     "resources/resource_util.h",
394     "resources/returned_resource.h",
395     "resources/scoped_resource.cc",
396     "resources/scoped_resource.h",
397     "resources/scoped_ui_resource.cc",
398     "resources/scoped_ui_resource.h",
399     "resources/shared_bitmap.cc",
400     "resources/shared_bitmap.h",
401     "resources/shared_bitmap_manager.h",
402     "resources/single_release_callback.cc",
403     "resources/single_release_callback.h",
404     "resources/single_release_callback_impl.cc",
405     "resources/single_release_callback_impl.h",
406     "resources/texture_mailbox.cc",
407     "resources/texture_mailbox.h",
408     "resources/transferable_resource.cc",
409     "resources/transferable_resource.h",
410     "resources/ui_resource_bitmap.cc",
411     "resources/ui_resource_bitmap.h",
412     "resources/ui_resource_client.h",
413     "resources/ui_resource_request.cc",
414     "resources/ui_resource_request.h",
415     "resources/video_resource_updater.cc",
416     "resources/video_resource_updater.h",
417     "scheduler/begin_frame_source.cc",
418     "scheduler/begin_frame_source.h",
419     "scheduler/begin_frame_tracker.cc",
420     "scheduler/begin_frame_tracker.h",
421     "scheduler/commit_earlyout_reason.h",
422     "scheduler/compositor_timing_history.cc",
423     "scheduler/compositor_timing_history.h",
424     "scheduler/delay_based_time_source.cc",
425     "scheduler/delay_based_time_source.h",
426     "scheduler/draw_result.h",
427     "scheduler/scheduler.cc",
428     "scheduler/scheduler.h",
429     "scheduler/scheduler_settings.cc",
430     "scheduler/scheduler_settings.h",
431     "scheduler/scheduler_state_machine.cc",
432     "scheduler/scheduler_state_machine.h",
433     "scheduler/video_frame_controller.h",
434     "tiles/eviction_tile_priority_queue.cc",
435     "tiles/eviction_tile_priority_queue.h",
436     "tiles/image_decode_controller.cc",
437     "tiles/image_decode_controller.h",
438     "tiles/picture_layer_tiling.cc",
439     "tiles/picture_layer_tiling.h",
440     "tiles/picture_layer_tiling_set.cc",
441     "tiles/picture_layer_tiling_set.h",
442     "tiles/prioritized_tile.cc",
443     "tiles/prioritized_tile.h",
444     "tiles/raster_tile_priority_queue.cc",
445     "tiles/raster_tile_priority_queue.h",
446     "tiles/raster_tile_priority_queue_all.cc",
447     "tiles/raster_tile_priority_queue_all.h",
448     "tiles/raster_tile_priority_queue_required.cc",
449     "tiles/raster_tile_priority_queue_required.h",
450     "tiles/tile.cc",
451     "tiles/tile.h",
452     "tiles/tile_draw_info.cc",
453     "tiles/tile_draw_info.h",
454     "tiles/tile_manager.cc",
455     "tiles/tile_manager.h",
456     "tiles/tile_priority.cc",
457     "tiles/tile_priority.h",
458     "tiles/tiling_set_eviction_queue.cc",
459     "tiles/tiling_set_eviction_queue.h",
460     "tiles/tiling_set_raster_queue_all.cc",
461     "tiles/tiling_set_raster_queue_all.h",
462     "tiles/tiling_set_raster_queue_required.cc",
463     "tiles/tiling_set_raster_queue_required.h",
464     "trees/blocking_task_runner.cc",
465     "trees/blocking_task_runner.h",
466     "trees/damage_tracker.cc",
467     "trees/damage_tracker.h",
468     "trees/draw_property_utils.cc",
469     "trees/draw_property_utils.h",
470     "trees/latency_info_swap_promise_monitor.cc",
471     "trees/latency_info_swap_promise_monitor.h",
472     "trees/layer_tree_host.cc",
473     "trees/layer_tree_host.h",
474     "trees/layer_tree_host_client.h",
475     "trees/layer_tree_host_common.cc",
476     "trees/layer_tree_host_common.h",
477     "trees/layer_tree_host_impl.cc",
478     "trees/layer_tree_host_impl.h",
479     "trees/layer_tree_host_single_thread_client.h",
480     "trees/layer_tree_impl.cc",
481     "trees/layer_tree_impl.h",
482     "trees/layer_tree_settings.cc",
483     "trees/layer_tree_settings.h",
484     "trees/mutator_host_client.h",
485     "trees/occlusion.cc",
486     "trees/occlusion.h",
487     "trees/occlusion_tracker.cc",
488     "trees/occlusion_tracker.h",
489     "trees/property_tree.cc",
490     "trees/property_tree.h",
491     "trees/property_tree_builder.cc",
492     "trees/property_tree_builder.h",
493     "trees/proxy.cc",
494     "trees/proxy.h",
495     "trees/scoped_abort_remaining_swap_promises.h",
496     "trees/single_thread_proxy.cc",
497     "trees/single_thread_proxy.h",
498     "trees/swap_promise_monitor.cc",
499     "trees/swap_promise_monitor.h",
500     "trees/thread_proxy.cc",
501     "trees/thread_proxy.h",
502     "trees/tree_synchronizer.cc",
503     "trees/tree_synchronizer.h",
504   ]
506   if (target_cpu == "x86" || target_cpu == "x64") {
507     sources += [
508       "raster/texture_compressor_etc1_sse.cc",
509       "raster/texture_compressor_etc1_sse.h",
510     ]
511   }
513   configs += [ "//build/config:precompiled_headers" ]
515   public_deps = [
516     "//cc/base",
517     "//skia",
518   ]
519   deps = [
520     "//base",
521     "//base/third_party/dynamic_annotations",
522     "//cc/surfaces:surface_id",
523     "//gpu",
524     "//gpu/command_buffer/client:gles2_interface",
525     "//media",
526     "//ui/events:events_base",
527     "//ui/gfx",
528     "//ui/gfx/geometry",
529     "//ui/gl",
530   ]
532   defines = [ "CC_IMPLEMENTATION=1" ]
534   if (!is_debug && (is_win || is_android)) {
535     configs -= [ "//build/config/compiler:optimize" ]
536     configs += [ "//build/config/compiler:optimize_max" ]
537   }
540 source_set("test_support") {
541   testonly = true
542   sources = [
543     "test/animation_test_common.cc",
544     "test/animation_test_common.h",
545     "test/animation_timelines_test_common.cc",
546     "test/animation_timelines_test_common.h",
547     "test/begin_frame_args_test.cc",
548     "test/begin_frame_args_test.h",
549     "test/failure_output_surface.cc",
550     "test/failure_output_surface.h",
551     "test/fake_content_layer_client.cc",
552     "test/fake_content_layer_client.h",
553     "test/fake_delegated_renderer_layer.cc",
554     "test/fake_delegated_renderer_layer.h",
555     "test/fake_delegated_renderer_layer_impl.cc",
556     "test/fake_delegated_renderer_layer_impl.h",
557     "test/fake_display_list_recording_source.h",
558     "test/fake_external_begin_frame_source.cc",
559     "test/fake_external_begin_frame_source.h",
560     "test/fake_impl_proxy.h",
561     "test/fake_layer_tree_host.cc",
562     "test/fake_layer_tree_host.h",
563     "test/fake_layer_tree_host_client.cc",
564     "test/fake_layer_tree_host_client.h",
565     "test/fake_layer_tree_host_impl.cc",
566     "test/fake_layer_tree_host_impl.h",
567     "test/fake_layer_tree_host_impl_client.cc",
568     "test/fake_layer_tree_host_impl_client.h",
569     "test/fake_output_surface.cc",
570     "test/fake_output_surface.h",
571     "test/fake_output_surface_client.cc",
572     "test/fake_output_surface_client.h",
573     "test/fake_painted_scrollbar_layer.cc",
574     "test/fake_painted_scrollbar_layer.h",
575     "test/fake_picture_layer.cc",
576     "test/fake_picture_layer.h",
577     "test/fake_picture_layer_impl.cc",
578     "test/fake_picture_layer_impl.h",
579     "test/fake_picture_layer_tiling_client.cc",
580     "test/fake_picture_layer_tiling_client.h",
581     "test/fake_picture_pile.cc",
582     "test/fake_picture_pile.h",
583     "test/fake_picture_pile_impl.cc",
584     "test/fake_picture_pile_impl.h",
585     "test/fake_proxy.cc",
586     "test/fake_proxy.h",
587     "test/fake_renderer_client.cc",
588     "test/fake_renderer_client.h",
589     "test/fake_rendering_stats_instrumentation.h",
590     "test/fake_resource_provider.h",
591     "test/fake_scoped_ui_resource.cc",
592     "test/fake_scoped_ui_resource.h",
593     "test/fake_scrollbar.cc",
594     "test/fake_scrollbar.h",
595     "test/fake_tile_manager.cc",
596     "test/fake_tile_manager.h",
597     "test/fake_tile_manager_client.cc",
598     "test/fake_tile_manager_client.h",
599     "test/fake_ui_resource_layer_tree_host_impl.cc",
600     "test/fake_ui_resource_layer_tree_host_impl.h",
601     "test/fake_video_frame_provider.cc",
602     "test/fake_video_frame_provider.h",
603     "test/geometry_test_utils.cc",
604     "test/geometry_test_utils.h",
605     "test/layer_test_common.cc",
606     "test/layer_test_common.h",
607     "test/layer_tree_host_common_test.cc",
608     "test/layer_tree_host_common_test.h",
609     "test/layer_tree_json_parser.cc",
610     "test/layer_tree_json_parser.h",
611     "test/layer_tree_pixel_resource_test.cc",
612     "test/layer_tree_pixel_resource_test.h",
613     "test/layer_tree_pixel_test.cc",
614     "test/layer_tree_pixel_test.h",
615     "test/layer_tree_test.cc",
616     "test/layer_tree_test.h",
617     "test/mock_occlusion_tracker.h",
618     "test/ordered_simple_task_runner.cc",
619     "test/ordered_simple_task_runner.h",
620     "test/ordered_texture_map.cc",
621     "test/ordered_texture_map.h",
622     "test/paths.cc",
623     "test/paths.h",
624     "test/pixel_comparator.cc",
625     "test/pixel_comparator.h",
626     "test/pixel_test.cc",
627     "test/pixel_test.h",
628     "test/pixel_test_output_surface.cc",
629     "test/pixel_test_output_surface.h",
630     "test/pixel_test_software_output_device.cc",
631     "test/pixel_test_software_output_device.h",
632     "test/pixel_test_utils.cc",
633     "test/pixel_test_utils.h",
634     "test/render_pass_test_utils.cc",
635     "test/render_pass_test_utils.h",
636     "test/scheduler_test_common.cc",
637     "test/scheduler_test_common.h",
638     "test/skia_common.cc",
639     "test/skia_common.h",
640     "test/solid_color_content_layer_client.cc",
641     "test/solid_color_content_layer_client.h",
642     "test/test_context_provider.cc",
643     "test/test_context_provider.h",
644     "test/test_context_support.cc",
645     "test/test_context_support.h",
646     "test/test_gles2_interface.cc",
647     "test/test_gles2_interface.h",
648     "test/test_gpu_memory_buffer_manager.cc",
649     "test/test_gpu_memory_buffer_manager.h",
650     "test/test_image_factory.cc",
651     "test/test_image_factory.h",
652     "test/test_in_process_context_provider.cc",
653     "test/test_in_process_context_provider.h",
654     "test/test_occlusion_tracker.h",
655     "test/test_shared_bitmap_manager.cc",
656     "test/test_shared_bitmap_manager.h",
657     "test/test_task_graph_runner.cc",
658     "test/test_task_graph_runner.h",
659     "test/test_texture.cc",
660     "test/test_texture.h",
661     "test/test_tile_priorities.cc",
662     "test/test_tile_priorities.h",
663     "test/test_web_graphics_context_3d.cc",
664     "test/test_web_graphics_context_3d.h",
665   ]
667   configs += [ "//build/config:precompiled_headers" ]
668   include_dirs = [
669     ".",
670     "test",
671   ]
673   public_deps = [
674     ":cc",
675     "//gpu:test_support",
676   ]
677   deps = [
678     "//base",
679     "//base/test:test_support",
680     "//base/third_party/dynamic_annotations",
681     "//gpu/command_buffer/client:gles2_c_lib",
682     "//gpu/command_buffer/client:gles2_implementation",
683     "//gpu/command_buffer/client:gl_in_process_context",
684     "//gpu/command_buffer/common:gles2_utils",
685     "//gpu/skia_bindings",
686     "//media",
687     "//skia",
688     "//testing/gmock",
689     "//testing/gtest",
690     "//ui/gfx",
691     "//ui/gfx/geometry",
692     "//ui/gfx:test_support",
693     "//ui/gl",
694     "//ui/gl:test_support",
695   ]
697   if (!is_android) {  # TODO(GYP) Enable on Android when osmesa links.
698     deps += [ "//third_party/mesa:osmesa" ]
699   }
702 # TODO(GYP): Delete this after we've converted everything to GN.
703 # The _run targets exist only for compatibility w/ GYP.
704 group("cc_unittests_run") {
705   testonly = true
706   deps = [
707     ":cc_unittests",
708   ]
711 test("cc_unittests") {
712   sources = [
713     "animation/animation_host_unittest.cc",
714     "animation/animation_player_unittest.cc",
715     "animation/animation_timeline_unittest.cc",
716     "animation/animation_unittest.cc",
717     "animation/element_animations_unittest.cc",
718     "animation/keyframed_animation_curve_unittest.cc",
719     "animation/layer_animation_controller_unittest.cc",
720     "animation/scroll_offset_animation_curve_unittest.cc",
721     "animation/scrollbar_animation_controller_linear_fade_unittest.cc",
722     "animation/scrollbar_animation_controller_thinning_unittest.cc",
723     "animation/transform_operations_unittest.cc",
724     "base/delayed_unique_notifier_unittest.cc",
725     "base/float_quad_unittest.cc",
726     "base/histograms_unittest.cc",
727     "base/list_container_unittest.cc",
728     "base/math_util_unittest.cc",
729     "base/region_unittest.cc",
730     "base/rolling_time_delta_history_unittest.cc",
731     "base/scoped_ptr_vector_unittest.cc",
732     "base/sidecar_list_container_unittest.cc",
733     "base/simple_enclosed_region_unittest.cc",
734     "base/tiling_data_unittest.cc",
735     "base/unique_notifier_unittest.cc",
736     "debug/frame_timing_tracker_unittest.cc",
737     "debug/micro_benchmark_controller_unittest.cc",
738     "debug/rendering_stats_unittest.cc",
739     "input/scroll_state_unittest.cc",
740     "input/top_controls_manager_unittest.cc",
741     "layers/delegated_frame_provider_unittest.cc",
742     "layers/delegated_frame_resource_collection_unittest.cc",
743     "layers/delegated_renderer_layer_impl_unittest.cc",
744     "layers/delegated_renderer_layer_unittest.cc",
745     "layers/heads_up_display_layer_impl_unittest.cc",
746     "layers/heads_up_display_unittest.cc",
747     "layers/io_surface_layer_impl_unittest.cc",
748     "layers/layer_impl_unittest.cc",
749     "layers/layer_iterator_unittest.cc",
750     "layers/layer_position_constraint_unittest.cc",
751     "layers/layer_unittest.cc",
752     "layers/layer_utils_unittest.cc",
753     "layers/nine_patch_layer_impl_unittest.cc",
754     "layers/nine_patch_layer_unittest.cc",
755     "layers/painted_scrollbar_layer_impl_unittest.cc",
756     "layers/picture_image_layer_impl_unittest.cc",
757     "layers/picture_image_layer_unittest.cc",
758     "layers/picture_layer_impl_unittest.cc",
759     "layers/picture_layer_unittest.cc",
760     "layers/render_surface_impl_unittest.cc",
761     "layers/render_surface_unittest.cc",
762     "layers/scrollbar_layer_unittest.cc",
763     "layers/solid_color_layer_impl_unittest.cc",
764     "layers/solid_color_scrollbar_layer_impl_unittest.cc",
765     "layers/surface_layer_impl_unittest.cc",
766     "layers/surface_layer_unittest.cc",
767     "layers/texture_layer_impl_unittest.cc",
768     "layers/texture_layer_unittest.cc",
769     "layers/ui_resource_layer_impl_unittest.cc",
770     "layers/ui_resource_layer_unittest.cc",
771     "layers/video_frame_provider_client_impl_unittest.cc",
772     "layers/video_layer_impl_unittest.cc",
773     "output/begin_frame_args_unittest.cc",
774     "output/bsp_tree_unittest.cc",
775     "output/delegating_renderer_unittest.cc",
776     "output/filter_operations_unittest.cc",
777     "output/gl_renderer_unittest.cc",
778     "output/layer_quad_unittest.cc",
779     "output/output_surface_unittest.cc",
780     "output/overlay_unittest.cc",
781     "output/renderer_pixeltest.cc",
782     "output/renderer_unittest.cc",
783     "output/shader_unittest.cc",
784     "output/software_renderer_unittest.cc",
785     "output/texture_mailbox_deleter_unittest.cc",
786     "playback/display_item_list_unittest.cc",
787     "playback/display_list_raster_source_unittest.cc",
788     "playback/display_list_recording_source_unittest.cc",
789     "playback/picture_pile_impl_unittest.cc",
790     "playback/picture_pile_unittest.cc",
791     "playback/picture_unittest.cc",
792     "playback/pixel_ref_map_unittest.cc",
793     "playback/recording_source_unittest.cc",
794     "quads/draw_polygon_unittest.cc",
795     "quads/draw_quad_unittest.cc",
796     "quads/render_pass_unittest.cc",
797     "raster/scoped_gpu_raster_unittest.cc",
798     "raster/task_graph_runner_unittest.cc",
799     "raster/texture_compressor_etc1_unittest.cc",
800     "raster/tile_task_worker_pool_unittest.cc",
801     "resources/platform_color_unittest.cc",
802     "resources/resource_pool_unittest.cc",
803     "resources/resource_provider_unittest.cc",
804     "resources/resource_util_unittest.cc",
805     "resources/scoped_resource_unittest.cc",
806     "resources/video_resource_updater_unittest.cc",
807     "scheduler/begin_frame_source_unittest.cc",
808     "scheduler/compositor_timing_history_unittest.cc",
809     "scheduler/delay_based_time_source_unittest.cc",
810     "scheduler/scheduler_state_machine_unittest.cc",
811     "scheduler/scheduler_unittest.cc",
812     "test/layer_tree_json_parser_unittest.cc",
813     "test/ordered_simple_task_runner_unittest.cc",
814     "test/test_web_graphics_context_3d_unittest.cc",
815     "tiles/picture_layer_tiling_set_unittest.cc",
816     "tiles/picture_layer_tiling_unittest.cc",
817     "tiles/tile_manager_unittest.cc",
818     "tiles/tile_priority_unittest.cc",
819     "trees/blocking_task_runner_unittest.cc",
820     "trees/damage_tracker_unittest.cc",
821     "trees/layer_tree_host_common_unittest.cc",
822     "trees/layer_tree_host_impl_unittest.cc",
823     "trees/layer_tree_host_pixeltest_blending.cc",
824     "trees/layer_tree_host_pixeltest_filters.cc",
825     "trees/layer_tree_host_pixeltest_masks.cc",
826     "trees/layer_tree_host_pixeltest_readback.cc",
827     "trees/layer_tree_host_pixeltest_synchronous.cc",
828     "trees/layer_tree_host_pixeltest_tiles.cc",
829     "trees/layer_tree_host_unittest.cc",
830     "trees/layer_tree_host_unittest_animation.cc",
831     "trees/layer_tree_host_unittest_animation_timelines.cc",
832     "trees/layer_tree_host_unittest_context.cc",
833     "trees/layer_tree_host_unittest_copyrequest.cc",
834     "trees/layer_tree_host_unittest_damage.cc",
835     "trees/layer_tree_host_unittest_delegated.cc",
836     "trees/layer_tree_host_unittest_occlusion.cc",
837     "trees/layer_tree_host_unittest_picture.cc",
838     "trees/layer_tree_host_unittest_proxy.cc",
839     "trees/layer_tree_host_unittest_scroll.cc",
840     "trees/layer_tree_host_unittest_video.cc",
841     "trees/layer_tree_impl_unittest.cc",
842     "trees/occlusion_tracker_unittest.cc",
843     "trees/occlusion_unittest.cc",
844     "trees/property_tree_unittest.cc",
845     "trees/tree_synchronizer_unittest.cc",
847     # Surfaces test files.
848     "surfaces/display_scheduler_unittest.cc",
849     "surfaces/display_unittest.cc",
850     "surfaces/surface_aggregator_test_helpers.cc",
851     "surfaces/surface_aggregator_test_helpers.h",
852     "surfaces/surface_aggregator_unittest.cc",
853     "surfaces/surface_display_output_surface_unittest.cc",
854     "surfaces/surface_factory_unittest.cc",
855     "surfaces/surface_hittest_unittest.cc",
856     "surfaces/surface_unittest.cc",
857     "surfaces/surfaces_pixeltest.cc",
859     # Setup.
860     "test/cc_test_suite.cc",
861     "test/run_all_unittests.cc",
862   ]
864   configs += [ "//build/config:precompiled_headers" ]
865   data = [
866     "test/data/",
867   ]
869   deps = [
870     ":cc",
871     ":test_support",
872     "//base/test:test_support",
873     "//cc/surfaces",
874     "//cc/surfaces:surface_id",
875     "//gpu",
876     "//gpu:test_support",
877     "//gpu/command_buffer/client:gles2_interface",
878     "//gpu/command_buffer/common:gles2_utils",
879     "//media",
880     "//testing/gmock",
881     "//testing/gtest",
882     "//ui/events:events_base",
883     "//ui/gfx",
884     "//ui/gfx/geometry",
885     "//ui/gfx:test_support",
886     "//ui/gl",
887     "//ui/gl:test_support",
888   ]
890   data_deps = [ "//third_party/mesa:osmesa" ]
893 test("cc_perftests") {
894   sources = [
895     "layers/layer_perftest.cc",
896     "layers/picture_layer_impl_perftest.cc",
897     "playback/picture_pile_impl_perftest.cc",
898     "quads/draw_quad_perftest.cc",
899     "raster/task_graph_runner_perftest.cc",
900     "raster/texture_compressor_perftest.cc",
901     "raster/tile_task_worker_pool_perftest.cc",
902     "surfaces/surface_aggregator_perftest.cc",
903     "test/cc_test_suite.cc",
904     "test/run_all_perftests.cc",
905     "tiles/picture_layer_tiling_perftest.cc",
906     "tiles/tile_manager_perftest.cc",
907     "trees/layer_tree_host_common_perftest.cc",
908     "trees/layer_tree_host_perftest.cc",
909     "trees/occlusion_tracker_perftest.cc",
910   ]
912   deps = [
913     ":cc",
914     ":test_support",
915     "//base",
916     "//base/test:test_support",
917     "//cc/surfaces",
918     "//cc/surfaces:surface_id",
919     "//gpu",
920     "//gpu:test_support",
921     "//gpu/command_buffer/common:gles2_utils",
922     "//media",
923     "//skia",
924     "//testing/gmock",
925     "//testing/gtest",
926     "//testing/perf",
927     "//ui/gfx",
928     "//ui/gfx/geometry",
929     "//ui/gl",
930     "//ui/gl:test_support",
931   ]
933   if (is_android) {
934     isolate_file = "cc_perftests.isolate"
935   }
937 # When adding support for isolates, please have a look at run-time dependencies
938 # in the cc_unittests_run target in cc_tests.gyp.