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