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