blob: e217b12780240912d14bf752f63c72c1b8487a83 [file] [log] [blame]
James Robinson646469d2014-10-03 15:33:28 -07001# 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.
4
James Robinson5e66a792015-01-21 17:02:08 -08005import("//testing/test.gni")
6
James Robinson646469d2014-10-03 15:33:28 -07007component("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",
Eric Seidel101a5332015-02-23 14:42:04 -080029 "animation/scrollbar_animation_controller.cc",
Benjamin Lermane8ca9b72015-02-24 16:42:13 +010030 "animation/scrollbar_animation_controller.h",
James Robinson646469d2014-10-03 15:33:28 -070031 "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 "base/completion_event.h",
42 "base/delayed_unique_notifier.cc",
43 "base/delayed_unique_notifier.h",
44 "base/invalidation_region.cc",
45 "base/invalidation_region.h",
46 "base/latency_info_swap_promise.cc",
47 "base/latency_info_swap_promise.h",
48 "base/latency_info_swap_promise_monitor.cc",
49 "base/latency_info_swap_promise_monitor.h",
50 "base/math_util.cc",
51 "base/math_util.h",
52 "base/ref_counted_managed.h",
53 "base/region.cc",
54 "base/region.h",
55 "base/rolling_time_delta_history.cc",
56 "base/rolling_time_delta_history.h",
57 "base/scoped_ptr_algorithm.h",
58 "base/scoped_ptr_deque.h",
59 "base/scoped_ptr_vector.h",
60 "base/simple_enclosed_region.cc",
61 "base/simple_enclosed_region.h",
62 "base/swap_promise.h",
63 "base/swap_promise_monitor.cc",
64 "base/swap_promise_monitor.h",
65 "base/switches.cc",
66 "base/switches.h",
James Robinson1027bc12014-12-04 14:51:42 -080067 "base/synced_property.h",
James Robinson646469d2014-10-03 15:33:28 -070068 "base/tiling_data.cc",
69 "base/tiling_data.h",
James Robinson6e9a1c92014-11-13 17:05:42 -080070 "base/time_util.h",
James Robinson646469d2014-10-03 15:33:28 -070071 "base/unique_notifier.cc",
72 "base/unique_notifier.h",
73 "base/util.h",
74 "debug/benchmark_instrumentation.cc",
75 "debug/benchmark_instrumentation.h",
76 "debug/debug_colors.cc",
77 "debug/debug_colors.h",
78 "debug/debug_rect_history.cc",
79 "debug/debug_rect_history.h",
80 "debug/devtools_instrumentation.h",
81 "debug/frame_rate_counter.cc",
82 "debug/frame_rate_counter.h",
Elliot Glayshereae49292015-01-28 10:47:32 -080083 "debug/frame_timing_request.cc",
84 "debug/frame_timing_request.h",
James Robinson5e66a792015-01-21 17:02:08 -080085 "debug/frame_timing_tracker.cc",
86 "debug/frame_timing_tracker.h",
Etienne Membrives175837a2014-12-19 15:45:38 +010087 "debug/frame_viewer_instrumentation.cc",
James Robinson646469d2014-10-03 15:33:28 -070088 "debug/frame_viewer_instrumentation.h",
89 "debug/invalidation_benchmark.cc",
90 "debug/invalidation_benchmark.h",
91 "debug/lap_timer.cc",
92 "debug/lap_timer.h",
93 "debug/layer_tree_debug_state.cc",
94 "debug/layer_tree_debug_state.h",
95 "debug/micro_benchmark.cc",
96 "debug/micro_benchmark.h",
James Robinson646469d2014-10-03 15:33:28 -070097 "debug/micro_benchmark_controller.cc",
98 "debug/micro_benchmark_controller.h",
99 "debug/micro_benchmark_controller_impl.cc",
100 "debug/micro_benchmark_controller_impl.h",
Benjamin Lermane8ca9b72015-02-24 16:42:13 +0100101 "debug/micro_benchmark_impl.cc",
102 "debug/micro_benchmark_impl.h",
James Robinson646469d2014-10-03 15:33:28 -0700103 "debug/paint_time_counter.cc",
104 "debug/paint_time_counter.h",
James Robinsond753aca2015-01-12 13:07:20 -0800105 "debug/picture_debug_util.cc",
106 "debug/picture_debug_util.h",
James Robinson646469d2014-10-03 15:33:28 -0700107 "debug/picture_record_benchmark.cc",
108 "debug/picture_record_benchmark.h",
109 "debug/rasterize_and_record_benchmark.cc",
110 "debug/rasterize_and_record_benchmark.h",
111 "debug/rasterize_and_record_benchmark_impl.cc",
112 "debug/rasterize_and_record_benchmark_impl.h",
113 "debug/rendering_stats.cc",
114 "debug/rendering_stats.h",
115 "debug/rendering_stats_instrumentation.cc",
116 "debug/rendering_stats_instrumentation.h",
117 "debug/ring_buffer.h",
118 "debug/traced_picture.cc",
119 "debug/traced_picture.h",
120 "debug/traced_value.cc",
121 "debug/traced_value.h",
122 "debug/unittest_only_benchmark.cc",
123 "debug/unittest_only_benchmark.h",
124 "debug/unittest_only_benchmark_impl.cc",
125 "debug/unittest_only_benchmark_impl.h",
James Robinson6e9a1c92014-11-13 17:05:42 -0800126 "input/input_handler.cc",
James Robinson646469d2014-10-03 15:33:28 -0700127 "input/input_handler.h",
Eric Seidel101a5332015-02-23 14:42:04 -0800128 "input/layer_selection_bound.cc",
129 "input/layer_selection_bound.h",
Benjamin Lermane8ca9b72015-02-24 16:42:13 +0100130 "input/page_scale_animation.cc",
131 "input/page_scale_animation.h",
James Robinson6e9a1c92014-11-13 17:05:42 -0800132 "input/scroll_elasticity_helper.cc",
133 "input/scroll_elasticity_helper.h",
James Robinson646469d2014-10-03 15:33:28 -0700134 "input/selection_bound_type.h",
135 "input/top_controls_manager.cc",
136 "input/top_controls_manager.h",
137 "input/top_controls_manager_client.h",
138 "layers/append_quads_data.h",
139 "layers/content_layer.cc",
140 "layers/content_layer.h",
141 "layers/content_layer_client.h",
142 "layers/contents_scaling_layer.cc",
143 "layers/contents_scaling_layer.h",
144 "layers/delegated_frame_provider.cc",
145 "layers/delegated_frame_provider.h",
146 "layers/delegated_frame_resource_collection.cc",
147 "layers/delegated_frame_resource_collection.h",
148 "layers/delegated_renderer_layer.cc",
149 "layers/delegated_renderer_layer.h",
150 "layers/delegated_renderer_layer_impl.cc",
151 "layers/delegated_renderer_layer_impl.h",
152 "layers/draw_properties.h",
153 "layers/heads_up_display_layer.cc",
154 "layers/heads_up_display_layer.h",
155 "layers/heads_up_display_layer_impl.cc",
156 "layers/heads_up_display_layer_impl.h",
157 "layers/image_layer.cc",
158 "layers/image_layer.h",
159 "layers/io_surface_layer.cc",
160 "layers/io_surface_layer.h",
161 "layers/io_surface_layer_impl.cc",
162 "layers/io_surface_layer_impl.h",
163 "layers/layer.cc",
164 "layers/layer.h",
165 "layers/layer_client.h",
166 "layers/layer_impl.cc",
167 "layers/layer_impl.h",
168 "layers/layer_iterator.h",
169 "layers/layer_lists.cc",
170 "layers/layer_lists.h",
171 "layers/layer_position_constraint.cc",
172 "layers/layer_position_constraint.h",
173 "layers/layer_utils.cc",
174 "layers/layer_utils.h",
175 "layers/nine_patch_layer.cc",
176 "layers/nine_patch_layer.h",
177 "layers/nine_patch_layer_impl.cc",
178 "layers/nine_patch_layer_impl.h",
179 "layers/paint_properties.h",
180 "layers/painted_scrollbar_layer.cc",
181 "layers/painted_scrollbar_layer.h",
182 "layers/painted_scrollbar_layer_impl.cc",
183 "layers/painted_scrollbar_layer_impl.h",
184 "layers/picture_image_layer.cc",
185 "layers/picture_image_layer.h",
186 "layers/picture_image_layer_impl.cc",
187 "layers/picture_image_layer_impl.h",
188 "layers/picture_layer.cc",
189 "layers/picture_layer.h",
190 "layers/picture_layer_impl.cc",
191 "layers/picture_layer_impl.h",
192 "layers/render_pass_sink.h",
193 "layers/render_surface.cc",
194 "layers/render_surface.h",
195 "layers/render_surface_impl.cc",
196 "layers/render_surface_impl.h",
197 "layers/scrollbar_layer_impl_base.cc",
198 "layers/scrollbar_layer_impl_base.h",
199 "layers/scrollbar_layer_interface.h",
200 "layers/solid_color_layer.cc",
201 "layers/solid_color_layer.h",
202 "layers/solid_color_layer_impl.cc",
203 "layers/solid_color_layer_impl.h",
204 "layers/solid_color_scrollbar_layer.cc",
205 "layers/solid_color_scrollbar_layer.h",
206 "layers/solid_color_scrollbar_layer_impl.cc",
207 "layers/solid_color_scrollbar_layer_impl.h",
208 "layers/surface_layer.cc",
209 "layers/surface_layer.h",
210 "layers/surface_layer_impl.cc",
211 "layers/surface_layer_impl.h",
212 "layers/texture_layer.cc",
213 "layers/texture_layer.h",
214 "layers/texture_layer_client.h",
215 "layers/texture_layer_impl.cc",
216 "layers/texture_layer_impl.h",
217 "layers/tiled_layer.cc",
218 "layers/tiled_layer.h",
219 "layers/tiled_layer_impl.cc",
220 "layers/tiled_layer_impl.h",
221 "layers/ui_resource_layer.cc",
222 "layers/ui_resource_layer.h",
223 "layers/ui_resource_layer_impl.cc",
224 "layers/ui_resource_layer_impl.h",
James Robinson646469d2014-10-03 15:33:28 -0700225 "output/begin_frame_args.cc",
226 "output/begin_frame_args.h",
227 "output/bsp_tree.cc",
228 "output/bsp_tree.h",
229 "output/bsp_walk_action.cc",
230 "output/bsp_walk_action.h",
231 "output/compositor_frame.cc",
232 "output/compositor_frame.h",
233 "output/compositor_frame_ack.cc",
234 "output/compositor_frame_ack.h",
235 "output/compositor_frame_metadata.cc",
236 "output/compositor_frame_metadata.h",
237 "output/context_provider.cc",
238 "output/context_provider.h",
239 "output/copy_output_request.cc",
240 "output/copy_output_request.h",
241 "output/copy_output_result.cc",
242 "output/copy_output_result.h",
243 "output/delegated_frame_data.cc",
244 "output/delegated_frame_data.h",
245 "output/delegating_renderer.cc",
246 "output/delegating_renderer.h",
247 "output/direct_renderer.cc",
248 "output/direct_renderer.h",
249 "output/filter_operation.cc",
250 "output/filter_operation.h",
251 "output/filter_operations.cc",
252 "output/filter_operations.h",
253 "output/geometry_binding.cc",
254 "output/geometry_binding.h",
255 "output/gl_frame_data.cc",
256 "output/gl_frame_data.h",
257 "output/gl_renderer.cc",
258 "output/gl_renderer.h",
259 "output/gl_renderer_draw_cache.cc",
260 "output/gl_renderer_draw_cache.h",
261 "output/managed_memory_policy.cc",
262 "output/managed_memory_policy.h",
263 "output/output_surface.cc",
264 "output/output_surface.h",
265 "output/output_surface_client.h",
266 "output/overlay_candidate.cc",
267 "output/overlay_candidate.h",
268 "output/overlay_candidate_validator.h",
269 "output/overlay_processor.cc",
270 "output/overlay_processor.h",
271 "output/overlay_strategy_single_on_top.cc",
272 "output/overlay_strategy_single_on_top.h",
273 "output/program_binding.cc",
274 "output/program_binding.h",
275 "output/render_surface_filters.cc",
276 "output/render_surface_filters.h",
277 "output/renderer.cc",
278 "output/renderer.h",
James Robinsonc4c1c592014-11-21 18:27:04 -0800279 "output/renderer_settings.cc",
280 "output/renderer_settings.h",
James Robinson646469d2014-10-03 15:33:28 -0700281 "output/shader.cc",
282 "output/shader.h",
283 "output/software_frame_data.cc",
284 "output/software_frame_data.h",
285 "output/software_output_device.cc",
286 "output/software_output_device.h",
287 "output/software_renderer.cc",
288 "output/software_renderer.h",
289 "output/viewport_selection_bound.cc",
290 "output/viewport_selection_bound.h",
291 "output/vsync_parameter_observer.h",
292 "quads/checkerboard_draw_quad.cc",
293 "quads/checkerboard_draw_quad.h",
294 "quads/content_draw_quad_base.cc",
295 "quads/content_draw_quad_base.h",
296 "quads/debug_border_draw_quad.cc",
297 "quads/debug_border_draw_quad.h",
298 "quads/draw_polygon.cc",
299 "quads/draw_polygon.h",
300 "quads/draw_quad.cc",
301 "quads/draw_quad.h",
302 "quads/io_surface_draw_quad.cc",
303 "quads/io_surface_draw_quad.h",
Eric Seidel101a5332015-02-23 14:42:04 -0800304 "quads/largest_draw_quad.cc",
Benjamin Lermane8ca9b72015-02-24 16:42:13 +0100305 "quads/largest_draw_quad.h",
James Robinson646469d2014-10-03 15:33:28 -0700306 "quads/list_container.cc",
307 "quads/list_container.h",
308 "quads/picture_draw_quad.cc",
309 "quads/picture_draw_quad.h",
310 "quads/render_pass.cc",
311 "quads/render_pass.h",
312 "quads/render_pass_draw_quad.cc",
313 "quads/render_pass_draw_quad.h",
314 "quads/render_pass_id.cc",
315 "quads/render_pass_id.h",
316 "quads/shared_quad_state.cc",
317 "quads/shared_quad_state.h",
318 "quads/solid_color_draw_quad.cc",
319 "quads/solid_color_draw_quad.h",
320 "quads/stream_video_draw_quad.cc",
321 "quads/stream_video_draw_quad.h",
322 "quads/surface_draw_quad.cc",
323 "quads/surface_draw_quad.h",
324 "quads/texture_draw_quad.cc",
325 "quads/texture_draw_quad.h",
326 "quads/tile_draw_quad.cc",
327 "quads/tile_draw_quad.h",
328 "quads/yuv_video_draw_quad.cc",
329 "quads/yuv_video_draw_quad.h",
330 "resources/bitmap_content_layer_updater.cc",
331 "resources/bitmap_content_layer_updater.h",
Eric Seidel101a5332015-02-23 14:42:04 -0800332 "resources/bitmap_skpicture_content_layer_updater.cc",
333 "resources/bitmap_skpicture_content_layer_updater.h",
Benjamin Lermane8ca9b72015-02-24 16:42:13 +0100334 "resources/bitmap_tile_task_worker_pool.cc",
335 "resources/bitmap_tile_task_worker_pool.h",
James Robinson6a64b812014-12-03 13:38:42 -0800336 "resources/clip_display_item.cc",
337 "resources/clip_display_item.h",
James Robinson5e66a792015-01-21 17:02:08 -0800338 "resources/clip_path_display_item.cc",
339 "resources/clip_path_display_item.h",
Benjamin Lerman507bb1a2015-02-26 13:15:17 +0100340 "resources/compositing_display_item.cc",
341 "resources/compositing_display_item.h",
James Robinson646469d2014-10-03 15:33:28 -0700342 "resources/content_layer_updater.cc",
343 "resources/content_layer_updater.h",
James Robinson6a64b812014-12-03 13:38:42 -0800344 "resources/display_item.cc",
345 "resources/display_item.h",
346 "resources/display_item_list.cc",
347 "resources/display_item_list.h",
348 "resources/display_list_raster_source.cc",
349 "resources/display_list_raster_source.h",
350 "resources/display_list_recording_source.cc",
351 "resources/display_list_recording_source.h",
352 "resources/drawing_display_item.cc",
353 "resources/drawing_display_item.h",
James Robinson646469d2014-10-03 15:33:28 -0700354 "resources/eviction_tile_priority_queue.cc",
355 "resources/eviction_tile_priority_queue.h",
James Robinson6a64b812014-12-03 13:38:42 -0800356 "resources/filter_display_item.cc",
357 "resources/filter_display_item.h",
Nick Bray27a3f6e2015-01-08 16:39:35 -0800358 "resources/float_clip_display_item.cc",
359 "resources/float_clip_display_item.h",
360 "resources/gpu_rasterizer.cc",
361 "resources/gpu_rasterizer.h",
Przemyslaw Pietrzkiewiczea77f0b2014-12-10 15:35:08 +0100362 "resources/gpu_tile_task_worker_pool.cc",
363 "resources/gpu_tile_task_worker_pool.h",
James Robinson646469d2014-10-03 15:33:28 -0700364 "resources/image_layer_updater.cc",
365 "resources/image_layer_updater.h",
366 "resources/layer_painter.h",
367 "resources/layer_quad.cc",
368 "resources/layer_quad.h",
369 "resources/layer_tiling_data.cc",
370 "resources/layer_tiling_data.h",
371 "resources/layer_updater.cc",
372 "resources/layer_updater.h",
James Robinson646469d2014-10-03 15:33:28 -0700373 "resources/memory_history.cc",
374 "resources/memory_history.h",
Przemyslaw Pietrzkiewiczea77f0b2014-12-10 15:35:08 +0100375 "resources/one_copy_tile_task_worker_pool.cc",
376 "resources/one_copy_tile_task_worker_pool.h",
James Robinson646469d2014-10-03 15:33:28 -0700377 "resources/picture.cc",
378 "resources/picture.h",
379 "resources/picture_layer_tiling.cc",
380 "resources/picture_layer_tiling.h",
381 "resources/picture_layer_tiling_set.cc",
382 "resources/picture_layer_tiling_set.h",
383 "resources/picture_pile.cc",
384 "resources/picture_pile.h",
James Robinson646469d2014-10-03 15:33:28 -0700385 "resources/picture_pile_impl.cc",
386 "resources/picture_pile_impl.h",
Przemyslaw Pietrzkiewiczea77f0b2014-12-10 15:35:08 +0100387 "resources/pixel_buffer_tile_task_worker_pool.cc",
388 "resources/pixel_buffer_tile_task_worker_pool.h",
James Robinson646469d2014-10-03 15:33:28 -0700389 "resources/platform_color.h",
390 "resources/prioritized_resource.cc",
391 "resources/prioritized_resource.h",
392 "resources/prioritized_resource_manager.cc",
393 "resources/prioritized_resource_manager.h",
James Robinson646469d2014-10-03 15:33:28 -0700394 "resources/priority_calculator.cc",
395 "resources/priority_calculator.h",
396 "resources/raster_buffer.cc",
397 "resources/raster_buffer.h",
James Robinson53b77582014-10-28 17:00:48 -0700398 "resources/raster_source.h",
James Robinson6a64b812014-12-03 13:38:42 -0800399 "resources/raster_source_helper.cc",
400 "resources/raster_source_helper.h",
Benjamin Lermane8ca9b72015-02-24 16:42:13 +0100401 "resources/raster_tile_priority_queue.cc",
402 "resources/raster_tile_priority_queue.h",
Elliot Glayshereae49292015-01-28 10:47:32 -0800403 "resources/raster_tile_priority_queue_all.cc",
404 "resources/raster_tile_priority_queue_all.h",
405 "resources/raster_tile_priority_queue_required.cc",
406 "resources/raster_tile_priority_queue_required.h",
Nick Bray27a3f6e2015-01-08 16:39:35 -0800407 "resources/rasterizer.h",
James Robinson646469d2014-10-03 15:33:28 -0700408 "resources/release_callback.h",
409 "resources/resource.cc",
410 "resources/resource.h",
411 "resources/resource_format.cc",
412 "resources/resource_format.h",
413 "resources/resource_pool.cc",
414 "resources/resource_pool.h",
415 "resources/resource_provider.cc",
416 "resources/resource_provider.h",
417 "resources/resource_update.cc",
418 "resources/resource_update.h",
419 "resources/resource_update_controller.cc",
420 "resources/resource_update_controller.h",
421 "resources/resource_update_queue.cc",
422 "resources/resource_update_queue.h",
423 "resources/returned_resource.h",
424 "resources/scoped_gpu_raster.cc",
425 "resources/scoped_gpu_raster.h",
426 "resources/scoped_resource.cc",
427 "resources/scoped_resource.h",
428 "resources/scoped_ui_resource.cc",
429 "resources/scoped_ui_resource.h",
430 "resources/shared_bitmap.cc",
431 "resources/shared_bitmap.h",
432 "resources/shared_bitmap_manager.h",
433 "resources/single_release_callback.cc",
434 "resources/single_release_callback.h",
435 "resources/single_release_callback_impl.cc",
436 "resources/single_release_callback_impl.h",
437 "resources/skpicture_content_layer_updater.cc",
438 "resources/skpicture_content_layer_updater.h",
Benjamin Lermane8ca9b72015-02-24 16:42:13 +0100439 "resources/software_rasterizer.cc",
440 "resources/software_rasterizer.h",
James Robinson646469d2014-10-03 15:33:28 -0700441 "resources/task_graph_runner.cc",
442 "resources/task_graph_runner.h",
443 "resources/texture_mailbox.cc",
444 "resources/texture_mailbox.h",
445 "resources/texture_mailbox_deleter.cc",
446 "resources/texture_mailbox_deleter.h",
447 "resources/texture_uploader.cc",
448 "resources/texture_uploader.h",
449 "resources/tile.cc",
450 "resources/tile.h",
Benjamin Lerman04616822014-12-22 13:08:16 +0100451 "resources/tile_draw_info.cc",
452 "resources/tile_draw_info.h",
James Robinson646469d2014-10-03 15:33:28 -0700453 "resources/tile_manager.cc",
454 "resources/tile_manager.h",
455 "resources/tile_priority.cc",
456 "resources/tile_priority.h",
Benjamin Lermane8ca9b72015-02-24 16:42:13 +0100457 "resources/tile_task_runner.cc",
458 "resources/tile_task_runner.h",
459 "resources/tile_task_worker_pool.cc",
460 "resources/tile_task_worker_pool.h",
James Robinson6a64b812014-12-03 13:38:42 -0800461 "resources/tiling_set_eviction_queue.cc",
462 "resources/tiling_set_eviction_queue.h",
James Robinsonea3edff2015-01-12 16:21:57 -0800463 "resources/tiling_set_raster_queue_all.cc",
464 "resources/tiling_set_raster_queue_all.h",
465 "resources/tiling_set_raster_queue_required.cc",
466 "resources/tiling_set_raster_queue_required.h",
James Robinson646469d2014-10-03 15:33:28 -0700467 "resources/transferable_resource.cc",
468 "resources/transferable_resource.h",
James Robinson6a64b812014-12-03 13:38:42 -0800469 "resources/transform_display_item.cc",
470 "resources/transform_display_item.h",
James Robinson646469d2014-10-03 15:33:28 -0700471 "resources/ui_resource_bitmap.cc",
472 "resources/ui_resource_bitmap.h",
473 "resources/ui_resource_client.h",
474 "resources/ui_resource_request.cc",
475 "resources/ui_resource_request.h",
Przemyslaw Pietrzkiewiczea77f0b2014-12-10 15:35:08 +0100476 "resources/zero_copy_tile_task_worker_pool.cc",
477 "resources/zero_copy_tile_task_worker_pool.h",
James Robinson646469d2014-10-03 15:33:28 -0700478 "scheduler/begin_frame_source.cc",
479 "scheduler/begin_frame_source.h",
Etienne Membrives175837a2014-12-19 15:45:38 +0100480 "scheduler/commit_earlyout_reason.h",
James Robinson646469d2014-10-03 15:33:28 -0700481 "scheduler/delay_based_time_source.cc",
482 "scheduler/delay_based_time_source.h",
483 "scheduler/draw_result.h",
484 "scheduler/scheduler.cc",
485 "scheduler/scheduler.h",
486 "scheduler/scheduler_settings.cc",
487 "scheduler/scheduler_settings.h",
488 "scheduler/scheduler_state_machine.cc",
489 "scheduler/scheduler_state_machine.h",
490 "trees/blocking_task_runner.cc",
491 "trees/blocking_task_runner.h",
492 "trees/damage_tracker.cc",
493 "trees/damage_tracker.h",
Etienne Membrives175837a2014-12-19 15:45:38 +0100494 "trees/draw_property_utils.cc",
495 "trees/draw_property_utils.h",
James Robinson646469d2014-10-03 15:33:28 -0700496 "trees/layer_sorter.cc",
497 "trees/layer_sorter.h",
498 "trees/layer_tree_host.cc",
499 "trees/layer_tree_host.h",
500 "trees/layer_tree_host_client.h",
501 "trees/layer_tree_host_common.cc",
502 "trees/layer_tree_host_common.h",
503 "trees/layer_tree_host_impl.cc",
504 "trees/layer_tree_host_impl.h",
505 "trees/layer_tree_impl.cc",
506 "trees/layer_tree_impl.h",
507 "trees/layer_tree_settings.cc",
508 "trees/layer_tree_settings.h",
509 "trees/occlusion.cc",
510 "trees/occlusion.h",
511 "trees/occlusion_tracker.cc",
512 "trees/occlusion_tracker.h",
Etienne Membrives175837a2014-12-19 15:45:38 +0100513 "trees/property_tree.cc",
514 "trees/property_tree.h",
515 "trees/property_tree_builder.cc",
516 "trees/property_tree_builder.h",
James Robinson646469d2014-10-03 15:33:28 -0700517 "trees/proxy.cc",
518 "trees/proxy.h",
519 "trees/proxy_timing_history.cc",
520 "trees/proxy_timing_history.h",
521 "trees/scoped_abort_remaining_swap_promises.h",
522 "trees/single_thread_proxy.cc",
523 "trees/single_thread_proxy.h",
524 "trees/thread_proxy.cc",
525 "trees/thread_proxy.h",
526 "trees/tree_synchronizer.cc",
527 "trees/tree_synchronizer.h",
528 ]
529
Benjamin Lermane8ca9b72015-02-24 16:42:13 +0100530 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
531 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
James Robinson646469d2014-10-03 15:33:28 -0700532
533 public_deps = [
534 "//skia",
535 ]
536 deps = [
537 "//base",
538 "//base/third_party/dynamic_annotations",
James Robinson6a64b812014-12-03 13:38:42 -0800539 "//cc/surfaces:surface_id",
James Robinson646469d2014-10-03 15:33:28 -0700540 "//gpu",
541 "//gpu/command_buffer/client:gles2_interface",
James Robinson53b77582014-10-28 17:00:48 -0700542 "//gpu/command_buffer/client:gpu_memory_buffer_manager",
James Robinson646469d2014-10-03 15:33:28 -0700543 "//ui/events:events_base",
544 "//ui/gfx",
545 "//ui/gfx/geometry",
546 ]
547
548 defines = [ "CC_IMPLEMENTATION=1" ]
549
550 if (!is_debug && (is_win || is_android)) {
551 configs -= [ "//build/config/compiler:optimize" ]
552 configs += [ "//build/config/compiler:optimize_max" ]
553 }
554}
555
556source_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",
Benjamin Lermane8ca9b72015-02-24 16:42:13 +0100563 "test/failure_output_surface.cc",
564 "test/failure_output_surface.h",
James Robinson646469d2014-10-03 15:33:28 -0700565 "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",
Etienne Membrives175837a2014-12-19 15:45:38 +0100575 "test/fake_external_begin_frame_source.cc",
576 "test/fake_external_begin_frame_source.h",
James Robinson646469d2014-10-03 15:33:28 -0700577 "test/fake_impl_proxy.h",
578 "test/fake_layer_tree_host.cc",
579 "test/fake_layer_tree_host.h",
580 "test/fake_layer_tree_host_client.cc",
581 "test/fake_layer_tree_host_client.h",
582 "test/fake_layer_tree_host_impl.cc",
583 "test/fake_layer_tree_host_impl.h",
584 "test/fake_layer_tree_host_impl_client.cc",
585 "test/fake_layer_tree_host_impl_client.h",
586 "test/fake_output_surface.cc",
587 "test/fake_output_surface.h",
588 "test/fake_output_surface_client.cc",
589 "test/fake_output_surface_client.h",
590 "test/fake_painted_scrollbar_layer.cc",
591 "test/fake_painted_scrollbar_layer.h",
592 "test/fake_picture_layer.cc",
593 "test/fake_picture_layer.h",
594 "test/fake_picture_layer_impl.cc",
595 "test/fake_picture_layer_impl.h",
596 "test/fake_picture_layer_tiling_client.cc",
597 "test/fake_picture_layer_tiling_client.h",
Benjamin Lerman57998902014-11-18 16:06:02 +0100598 "test/fake_picture_pile.cc",
James Robinson6e9a1c92014-11-13 17:05:42 -0800599 "test/fake_picture_pile.h",
James Robinson646469d2014-10-03 15:33:28 -0700600 "test/fake_picture_pile_impl.cc",
601 "test/fake_picture_pile_impl.h",
602 "test/fake_proxy.cc",
603 "test/fake_proxy.h",
604 "test/fake_renderer_client.cc",
605 "test/fake_renderer_client.h",
606 "test/fake_rendering_stats_instrumentation.h",
607 "test/fake_scoped_ui_resource.cc",
608 "test/fake_scoped_ui_resource.h",
609 "test/fake_scrollbar.cc",
610 "test/fake_scrollbar.h",
611 "test/fake_tile_manager.cc",
612 "test/fake_tile_manager.h",
613 "test/fake_tile_manager_client.cc",
614 "test/fake_tile_manager_client.h",
615 "test/fake_ui_resource_layer_tree_host_impl.cc",
616 "test/fake_ui_resource_layer_tree_host_impl.h",
James Robinson646469d2014-10-03 15:33:28 -0700617 "test/geometry_test_utils.cc",
618 "test/geometry_test_utils.h",
James Robinson646469d2014-10-03 15:33:28 -0700619 "test/impl_side_painting_settings.h",
620 "test/layer_test_common.cc",
621 "test/layer_test_common.h",
622 "test/layer_tree_host_common_test.cc",
623 "test/layer_tree_host_common_test.h",
624 "test/layer_tree_json_parser.cc",
625 "test/layer_tree_json_parser.h",
James Robinson7f480212014-10-31 10:28:08 -0700626 "test/layer_tree_pixel_resource_test.cc",
627 "test/layer_tree_pixel_resource_test.h",
James Robinson646469d2014-10-03 15:33:28 -0700628 "test/layer_tree_pixel_test.cc",
629 "test/layer_tree_pixel_test.h",
630 "test/layer_tree_test.cc",
631 "test/layer_tree_test.h",
632 "test/mock_occlusion_tracker.h",
633 "test/ordered_simple_task_runner.cc",
634 "test/ordered_simple_task_runner.h",
635 "test/ordered_texture_map.cc",
636 "test/ordered_texture_map.h",
637 "test/paths.cc",
638 "test/paths.h",
639 "test/pixel_comparator.cc",
640 "test/pixel_comparator.h",
641 "test/pixel_test.cc",
642 "test/pixel_test.h",
643 "test/pixel_test_output_surface.cc",
644 "test/pixel_test_output_surface.h",
645 "test/pixel_test_software_output_device.cc",
646 "test/pixel_test_software_output_device.h",
647 "test/pixel_test_utils.cc",
648 "test/pixel_test_utils.h",
649 "test/render_pass_test_common.cc",
650 "test/render_pass_test_common.h",
651 "test/render_pass_test_utils.cc",
652 "test/render_pass_test_utils.h",
653 "test/scheduler_test_common.cc",
654 "test/scheduler_test_common.h",
655 "test/skia_common.cc",
656 "test/skia_common.h",
657 "test/solid_color_content_layer_client.cc",
658 "test/solid_color_content_layer_client.h",
659 "test/test_context_provider.cc",
660 "test/test_context_provider.h",
661 "test/test_context_support.cc",
662 "test/test_context_support.h",
663 "test/test_gles2_interface.cc",
664 "test/test_gles2_interface.h",
James Robinsone2ac7e82014-10-15 13:21:59 -0700665 "test/test_gpu_memory_buffer_manager.cc",
666 "test/test_gpu_memory_buffer_manager.h",
James Robinson7f480212014-10-31 10:28:08 -0700667 "test/test_image_factory.cc",
668 "test/test_image_factory.h",
Benjamin Lermane8ca9b72015-02-24 16:42:13 +0100669 "test/test_in_process_context_provider.cc",
670 "test/test_in_process_context_provider.h",
James Robinson646469d2014-10-03 15:33:28 -0700671 "test/test_now_source.cc",
672 "test/test_now_source.h",
673 "test/test_occlusion_tracker.h",
674 "test/test_shared_bitmap_manager.cc",
675 "test/test_shared_bitmap_manager.h",
676 "test/test_texture.cc",
677 "test/test_texture.h",
678 "test/test_tile_priorities.cc",
679 "test/test_tile_priorities.h",
680 "test/test_web_graphics_context_3d.cc",
681 "test/test_web_graphics_context_3d.h",
682 "test/tiled_layer_test_common.cc",
683 "test/tiled_layer_test_common.h",
684 ]
685
Benjamin Lermane8ca9b72015-02-24 16:42:13 +0100686 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
687
James Robinson646469d2014-10-03 15:33:28 -0700688 include_dirs = [
689 ".",
690 "test",
691 ]
692
693 public_deps = [
694 ":cc",
695 "//gpu:test_support",
696 ]
697 deps = [
698 "//base",
James Robinson6a64b812014-12-03 13:38:42 -0800699 "//base/test:test_support",
James Robinson646469d2014-10-03 15:33:28 -0700700 "//base/third_party/dynamic_annotations",
701 "//gpu/command_buffer/client:gles2_c_lib",
702 "//gpu/command_buffer/client:gles2_implementation",
James Robinson53b77582014-10-28 17:00:48 -0700703 "//gpu/command_buffer/client:gpu_memory_buffer_manager",
James Robinson646469d2014-10-03 15:33:28 -0700704 "//gpu/command_buffer/client:gl_in_process_context",
705 "//gpu/command_buffer/common:gles2_utils",
706 "//gpu/skia_bindings",
707 "//skia",
708 "//testing/gmock",
709 "//testing/gtest",
710 "//ui/gfx",
711 "//ui/gfx/geometry",
712 "//ui/gfx:test_support",
713 "//ui/gl",
714 ]
715
716 if (!is_android) { # TODO(GYP) Enable on Android when osmesa links.
717 deps += [ "//third_party/mesa:osmesa" ]
718 }
719}
720
Dave Moorecc0e4f92015-03-10 15:23:04 -0700721test("cc_unittests") {
722 sources = [
723 "animation/animation_unittest.cc",
724 "animation/keyframed_animation_curve_unittest.cc",
725 "animation/layer_animation_controller_unittest.cc",
726 "animation/scroll_offset_animation_curve_unittest.cc",
727 "animation/scrollbar_animation_controller_linear_fade_unittest.cc",
728 "animation/scrollbar_animation_controller_thinning_unittest.cc",
729 "animation/transform_operations_unittest.cc",
730 "base/float_quad_unittest.cc",
731 "base/math_util_unittest.cc",
732 "base/region_unittest.cc",
733 "base/rolling_time_delta_history_unittest.cc",
734 "base/scoped_ptr_vector_unittest.cc",
735 "base/simple_enclosed_region_unittest.cc",
736 "base/tiling_data_unittest.cc",
737 "base/util_unittest.cc",
738 "debug/frame_timing_tracker_unittest.cc",
739 "debug/micro_benchmark_controller_unittest.cc",
740 "input/top_controls_manager_unittest.cc",
741 "layers/contents_scaling_layer_unittest.cc",
742 "layers/delegated_frame_provider_unittest.cc",
743 "layers/delegated_frame_resource_collection_unittest.cc",
744 "layers/delegated_renderer_layer_impl_unittest.cc",
745 "layers/delegated_renderer_layer_unittest.cc",
746 "layers/heads_up_display_layer_impl_unittest.cc",
747 "layers/heads_up_display_unittest.cc",
748 "layers/io_surface_layer_impl_unittest.cc",
749 "layers/layer_impl_unittest.cc",
750 "layers/layer_iterator_unittest.cc",
751 "layers/layer_position_constraint_unittest.cc",
752 "layers/layer_unittest.cc",
753 "layers/layer_utils_unittest.cc",
754 "layers/nine_patch_layer_impl_unittest.cc",
755 "layers/nine_patch_layer_unittest.cc",
756 "layers/painted_scrollbar_layer_impl_unittest.cc",
757 "layers/picture_image_layer_impl_unittest.cc",
758 "layers/picture_image_layer_unittest.cc",
759 "layers/picture_layer_impl_unittest.cc",
760 "layers/picture_layer_unittest.cc",
761 "layers/render_surface_impl_unittest.cc",
762 "layers/render_surface_unittest.cc",
763 "layers/scrollbar_layer_unittest.cc",
764 "layers/solid_color_layer_impl_unittest.cc",
765 "layers/solid_color_scrollbar_layer_impl_unittest.cc",
766 "layers/surface_layer_impl_unittest.cc",
767 "layers/surface_layer_unittest.cc",
768 "layers/texture_layer_impl_unittest.cc",
769 "layers/texture_layer_unittest.cc",
770 "layers/tiled_layer_impl_unittest.cc",
771 "layers/tiled_layer_unittest.cc",
772 "layers/ui_resource_layer_impl_unittest.cc",
773 "layers/ui_resource_layer_unittest.cc",
774 "output/begin_frame_args_unittest.cc",
775 "output/delegating_renderer_unittest.cc",
776 "output/filter_operations_unittest.cc",
777 "output/gl_renderer_unittest.cc",
778 "output/output_surface_unittest.cc",
779 "output/overlay_unittest.cc",
780 "output/renderer_pixeltest.cc",
781 "output/renderer_unittest.cc",
782 "output/shader_unittest.cc",
783 "output/software_renderer_unittest.cc",
784 "quads/draw_quad_unittest.cc",
785 "quads/list_container_unittest.cc",
786 "quads/render_pass_unittest.cc",
787 "resources/display_item_list_unittest.cc",
788 "resources/layer_quad_unittest.cc",
789 "resources/picture_layer_tiling_set_unittest.cc",
790 "resources/picture_layer_tiling_unittest.cc",
791 "resources/picture_pile_impl_unittest.cc",
792 "resources/picture_pile_unittest.cc",
793 "resources/picture_unittest.cc",
794 "resources/platform_color_unittest.cc",
795 "resources/prioritized_resource_unittest.cc",
796 "resources/resource_provider_unittest.cc",
797 "resources/resource_update_controller_unittest.cc",
798 "resources/scoped_gpu_raster_unittest.cc",
799 "resources/scoped_resource_unittest.cc",
800 "resources/task_graph_runner_unittest.cc",
801 "resources/texture_mailbox_deleter_unittest.cc",
802 "resources/texture_uploader_unittest.cc",
803 "resources/tile_manager_unittest.cc",
804 "resources/tile_priority_unittest.cc",
805 "resources/tile_task_worker_pool_unittest.cc",
806 "resources/video_resource_updater_unittest.cc",
807 "scheduler/begin_frame_source_unittest.cc",
808 "scheduler/delay_based_time_source_unittest.cc",
809 "scheduler/scheduler_state_machine_unittest.cc",
810 "scheduler/scheduler_unittest.cc",
811 "test/layer_tree_json_parser_unittest.cc",
812 "test/test_web_graphics_context_3d_unittest.cc",
813 "trees/blocking_task_runner_unittest.cc",
814 "trees/damage_tracker_unittest.cc",
815 "trees/layer_sorter_unittest.cc",
816 "trees/layer_tree_host_common_unittest.cc",
817 "trees/layer_tree_host_impl_unittest.cc",
818 "trees/layer_tree_host_pixeltest_blending.cc",
819 "trees/layer_tree_host_pixeltest_filters.cc",
820 "trees/layer_tree_host_pixeltest_masks.cc",
821 "trees/layer_tree_host_pixeltest_readback.cc",
822 "trees/layer_tree_host_pixeltest_synchronous.cc",
823 "trees/layer_tree_host_unittest.cc",
824 "trees/layer_tree_host_unittest_animation.cc",
825 "trees/layer_tree_host_unittest_context.cc",
826 "trees/layer_tree_host_unittest_copyrequest.cc",
827 "trees/layer_tree_host_unittest_damage.cc",
828 "trees/layer_tree_host_unittest_delegated.cc",
829 "trees/layer_tree_host_unittest_no_message_loop.cc",
830 "trees/layer_tree_host_unittest_occlusion.cc",
831 "trees/layer_tree_host_unittest_picture.cc",
832 "trees/layer_tree_host_unittest_proxy.cc",
833 "trees/layer_tree_host_unittest_scroll.cc",
834 "trees/layer_tree_impl_unittest.cc",
835 "trees/occlusion_tracker_unittest.cc",
836 "trees/occlusion_unittest.cc",
837 "trees/property_tree_unittest.cc",
838 "trees/tree_synchronizer_unittest.cc",
James Robinson646469d2014-10-03 15:33:28 -0700839
Dave Moorecc0e4f92015-03-10 15:23:04 -0700840 # Surfaces test files.
841 "surfaces/surface_aggregator_test_helpers.cc",
842 "surfaces/surface_aggregator_test_helpers.h",
843 "surfaces/surface_aggregator_unittest.cc",
844 "surfaces/surface_unittest.cc",
845 "surfaces/surfaces_pixeltest.cc",
James Robinson646469d2014-10-03 15:33:28 -0700846
Dave Moorecc0e4f92015-03-10 15:23:04 -0700847 # Setup.
848 "test/cc_test_suite.cc",
849 "test/run_all_unittests.cc",
850 ]
James Robinson646469d2014-10-03 15:33:28 -0700851
Dave Moorecc0e4f92015-03-10 15:23:04 -0700852 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
Benjamin Lermane8ca9b72015-02-24 16:42:13 +0100853
Dave Moorecc0e4f92015-03-10 15:23:04 -0700854 deps = [
855 ":cc",
856 ":test_support",
857 "//base/test:test_support",
858 "//cc/surfaces",
859 "//cc/surfaces:surface_id",
860 "//gpu",
861 "//gpu:test_support",
862 "//gpu/command_buffer/client:gles2_interface",
863 "//gpu/command_buffer/common:gles2_utils",
864 "//testing/gmock",
865 "//testing/gtest",
866 "//ui/events:events_base",
867 "//ui/gfx",
868 "//ui/gfx/geometry",
869 "//ui/gfx:test_support",
870 "//ui/gl",
871 ]
James Robinson646469d2014-10-03 15:33:28 -0700872}
873
874test("cc_perftests") {
875 sources = [
876 "layers/layer_perftest.cc",
877 "layers/picture_layer_impl_perftest.cc",
878 "resources/picture_layer_tiling_perftest.cc",
879 "resources/picture_pile_impl_perftest.cc",
James Robinson646469d2014-10-03 15:33:28 -0700880 "resources/task_graph_runner_perftest.cc",
881 "resources/tile_manager_perftest.cc",
Benjamin Lermane8ca9b72015-02-24 16:42:13 +0100882 "resources/tile_task_worker_pool_perftest.cc",
James Robinson646469d2014-10-03 15:33:28 -0700883 "test/cc_test_suite.cc",
884 "test/run_all_perftests.cc",
885 "trees/layer_tree_host_common_perftest.cc",
886 "trees/layer_tree_host_perftest.cc",
887 "trees/occlusion_tracker_perftest.cc",
888 ]
889
Benjamin Lermane8ca9b72015-02-24 16:42:13 +0100890 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
891
James Robinson646469d2014-10-03 15:33:28 -0700892 deps = [
893 ":cc",
894 ":test_support",
895 "//base",
James Robinson6a64b812014-12-03 13:38:42 -0800896 "//base/test:test_support",
James Robinson646469d2014-10-03 15:33:28 -0700897 "//gpu",
898 "//gpu:test_support",
899 "//gpu/command_buffer/common:gles2_utils",
James Robinson646469d2014-10-03 15:33:28 -0700900 "//skia",
901 "//testing/gmock",
902 "//testing/gtest",
903 "//testing/perf",
904 "//ui/gfx",
905 "//ui/gfx/geometry",
James Robinson6a64b812014-12-03 13:38:42 -0800906 "//ui/gl",
James Robinson646469d2014-10-03 15:33:28 -0700907 ]
908}