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