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