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