[go: nahoru, domu]

blob: 78f7bc41655f5703bc019ad87e80f6ebec027040 [file] [log] [blame]
brettw@chromium.orgd05751a22014-05-29 20:54:241# 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
5component("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",
jamesr@chromium.orgd5ba08c2014-06-18 07:01:0840 "base/delayed_unique_notifier.cc",
41 "base/delayed_unique_notifier.h",
brettw@chromium.orgd05751a22014-05-29 20:54:2442 "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",
jamesr@chromium.orgd5ba08c2014-06-18 07:01:0865 "base/unique_notifier.cc",
66 "base/unique_notifier.h",
brettw@chromium.orgd05751a22014-05-29 20:54:2467 "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",
jamesr@chromium.orgd5ba08c2014-06-18 07:01:0878 "debug/invalidation_benchmark.cc",
79 "debug/invalidation_benchmark.h",
brettw@chromium.orgd05751a22014-05-29 20:54:2480 "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",
tfarina@chromium.orgb2ba2d42014-07-03 18:14:50116 "input/layer_selection_bound.cc",
117 "input/layer_selection_bound.h",
118 "input/selection_bound_type.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24119 "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",
brettw@chromium.orgd05751a22014-05-29 20:54:24176 "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",
brettw@chromium.orgd05751a22014-05-29 20:54:24230 "output/delegated_frame_data.cc",
tfarina@chromium.orgb2ba2d42014-07-03 18:14:50231 "output/delegated_frame_data.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24232 "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",
brettw@chromium.orgd05751a22014-05-29 20:54:24242 "output/gl_frame_data.cc",
tfarina@chromium.orgb2ba2d42014-07-03 18:14:50243 "output/gl_frame_data.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24244 "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",
tfarina@chromium.orgb2ba2d42014-07-03 18:14:50274 "output/viewport_selection_bound.cc",
275 "output/viewport_selection_bound.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24276 "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",
sohan.jyoti@samsung.come1878b52014-07-01 09:21:17312 "resources/gpu_raster_worker_pool.cc",
313 "resources/gpu_raster_worker_pool.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24314 "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",
ksakamoto@chromium.orgc6f0cf62014-07-22 02:44:41318 "resources/image_copy_raster_worker_pool.cc",
319 "resources/image_copy_raster_worker_pool.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24320 "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",
vmpstr@chromium.org51c87892014-07-21 21:45:41337 "resources/picture_pile.cc",
338 "resources/picture_pile.h",
ksakamoto@chromium.orgc6f0cf62014-07-22 02:44:41339 "resources/picture_pile_base.cc",
340 "resources/picture_pile_base.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24341 "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",
vmpstr@google.com847389f2014-06-23 19:21:50350 "resources/prioritized_tile_set.cc",
351 "resources/prioritized_tile_set.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24352 "resources/priority_calculator.cc",
353 "resources/priority_calculator.h",
vmpstr@chromium.org51c87892014-07-21 21:45:41354 "resources/raster_mode.cc",
355 "resources/raster_mode.h",
vmpstr@chromium.org51c87892014-07-21 21:45:41356 "resources/raster_worker_pool.cc",
357 "resources/raster_worker_pool.h",
ksakamoto@chromium.orgc6f0cf62014-07-22 02:44:41358 "resources/rasterizer.cc",
359 "resources/rasterizer.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24360 "resources/release_callback.h",
361 "resources/resource.cc",
vmpstr@chromium.org51c87892014-07-21 21:45:41362 "resources/resource.h",
ksakamoto@chromium.orgc6f0cf62014-07-22 02:44:41363 "resources/resource_format.h",
364 "resources/resource_format.cc",
brettw@chromium.orgd05751a22014-05-29 20:54:24365 "resources/resource_pool.cc",
366 "resources/resource_pool.h",
367 "resources/resource_provider.cc",
368 "resources/resource_provider.h",
369 "resources/resource_update.cc",
ksakamoto@chromium.orgc6f0cf62014-07-22 02:44:41370 "resources/resource_update.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24371 "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",
sohan.jyoti@samsung.com110fcc0e2014-07-16 15:52:47376 "resources/scoped_gpu_raster.cc",
377 "resources/scoped_gpu_raster.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24378 "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",
ksakamoto@chromium.orgc6f0cf62014-07-22 02:44:41392 "resources/texture_mailbox.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24393 "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",
brettw@chromium.orgd05751a22014-05-29 20:54:24421 "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",
brettw@chromium.orgd05751a22014-05-29 20:54:24444 "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 ]
451
452 if (is_win) {
453 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
454 cflags = [ "/wd4267" ] # size_t -> int
455 }
456
457 deps = [
458 "//base",
459 "//base/third_party/dynamic_annotations",
460 "//gpu",
brettw@chromium.org6e44c302014-07-22 21:51:37461 "//media",
brettw@chromium.orgd05751a22014-05-29 20:54:24462 "//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 ]
471
472 defined = [ "CC_IMPLEMENTATION=1" ]
473
474 if (!is_debug && is_win) {
475 configs -= [ "//build/config/compiler:optimize" ]
476 configs += [ "//build/config/compiler:optimize_max" ]
477 }
brettw@chromium.orgd05751a22014-05-29 20:54:24478}
479
480source_set("test_support") {
481 sources = [
482 "test/animation_test_common.cc",
483 "test/animation_test_common.h",
484 "test/begin_frame_args_test.cc",
485 "test/begin_frame_args_test.h",
486 "test/fake_content_layer.cc",
487 "test/fake_content_layer.h",
488 "test/fake_content_layer_client.cc",
489 "test/fake_content_layer_client.h",
490 "test/fake_content_layer_impl.cc",
491 "test/fake_content_layer_impl.h",
492 "test/fake_delegated_renderer_layer.cc",
493 "test/fake_delegated_renderer_layer.h",
494 "test/fake_delegated_renderer_layer_impl.cc",
495 "test/fake_delegated_renderer_layer_impl.h",
496 "test/fake_impl_proxy.h",
497 "test/fake_layer_tree_host.cc",
498 "test/fake_layer_tree_host.h",
499 "test/fake_layer_tree_host_client.cc",
500 "test/fake_layer_tree_host_client.h",
501 "test/fake_layer_tree_host_impl.cc",
502 "test/fake_layer_tree_host_impl.h",
503 "test/fake_layer_tree_host_impl_client.cc",
504 "test/fake_layer_tree_host_impl_client.h",
505 "test/fake_output_surface.cc",
506 "test/fake_output_surface.h",
507 "test/fake_output_surface_client.cc",
508 "test/fake_output_surface_client.h",
509 "test/fake_painted_scrollbar_layer.cc",
510 "test/fake_painted_scrollbar_layer.h",
511 "test/fake_picture_layer.cc",
512 "test/fake_picture_layer.h",
513 "test/fake_picture_layer_impl.cc",
514 "test/fake_picture_layer_impl.h",
515 "test/fake_picture_layer_tiling_client.cc",
516 "test/fake_picture_layer_tiling_client.h",
517 "test/fake_picture_pile_impl.cc",
518 "test/fake_picture_pile_impl.h",
519 "test/fake_proxy.cc",
520 "test/fake_proxy.h",
521 "test/fake_renderer_client.cc",
522 "test/fake_renderer_client.h",
523 "test/fake_rendering_stats_instrumentation.h",
524 "test/fake_scoped_ui_resource.cc",
525 "test/fake_scoped_ui_resource.h",
526 "test/fake_scrollbar.cc",
527 "test/fake_scrollbar.h",
528 "test/fake_tile_manager.cc",
529 "test/fake_tile_manager.h",
530 "test/fake_tile_manager_client.cc",
531 "test/fake_tile_manager_client.h",
532 "test/fake_ui_resource_layer_tree_host_impl.cc",
533 "test/fake_ui_resource_layer_tree_host_impl.h",
534 "test/fake_video_frame_provider.cc",
535 "test/fake_video_frame_provider.h",
536 "test/geometry_test_utils.cc",
537 "test/geometry_test_utils.h",
538 "test/test_in_process_context_provider.cc",
539 "test/test_in_process_context_provider.h",
540 "test/impl_side_painting_settings.h",
541 "test/layer_test_common.cc",
542 "test/layer_test_common.h",
543 "test/layer_tree_host_common_test.cc",
544 "test/layer_tree_host_common_test.h",
545 "test/layer_tree_json_parser.cc",
546 "test/layer_tree_json_parser.h",
547 "test/layer_tree_pixel_test.cc",
548 "test/layer_tree_pixel_test.h",
549 "test/layer_tree_test.cc",
550 "test/layer_tree_test.h",
weiliangc@chromium.orgba16cce2014-06-17 17:03:50551 "test/mock_occlusion_tracker.h",
jamesr@chromium.orgd5ba08c2014-06-18 07:01:08552 "test/ordered_simple_task_runner.cc",
553 "test/ordered_simple_task_runner.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24554 "test/ordered_texture_map.cc",
555 "test/ordered_texture_map.h",
556 "test/paths.cc",
557 "test/paths.h",
558 "test/pixel_comparator.cc",
559 "test/pixel_comparator.h",
560 "test/pixel_test.cc",
561 "test/pixel_test.h",
562 "test/pixel_test_output_surface.cc",
563 "test/pixel_test_output_surface.h",
564 "test/pixel_test_software_output_device.cc",
565 "test/pixel_test_software_output_device.h",
566 "test/pixel_test_utils.cc",
567 "test/pixel_test_utils.h",
568 "test/render_pass_test_common.cc",
569 "test/render_pass_test_common.h",
570 "test/render_pass_test_utils.cc",
571 "test/render_pass_test_utils.h",
572 "test/scheduler_test_common.cc",
573 "test/scheduler_test_common.h",
574 "test/skia_common.cc",
575 "test/skia_common.h",
576 "test/solid_color_content_layer_client.cc",
577 "test/solid_color_content_layer_client.h",
578 "test/test_context_provider.cc",
579 "test/test_context_provider.h",
580 "test/test_context_support.cc",
581 "test/test_context_support.h",
582 "test/test_gles2_interface.cc",
583 "test/test_gles2_interface.h",
584 "test/test_occlusion_tracker.h",
585 "test/test_shared_bitmap_manager.cc",
586 "test/test_shared_bitmap_manager.h",
587 "test/test_texture.cc",
588 "test/test_texture.h",
589 "test/test_tile_priorities.cc",
590 "test/test_tile_priorities.h",
591 "test/test_web_graphics_context_3d.cc",
592 "test/test_web_graphics_context_3d.h",
593 "test/tiled_layer_test_common.cc",
594 "test/tiled_layer_test_common.h",
595 ]
596
597 include_dirs = [
598 ".",
599 "test",
600 ]
601
602 deps = [
603 "//base",
604 "//base/third_party/dynamic_annotations",
605 "//gpu:gpu_unittest_utils",
606 "//gpu/command_buffer/client:gles2_c_lib",
607 "//gpu/command_buffer/client:gles2_implementation",
608 "//gpu/command_buffer/client:gl_in_process_context",
609 "//gpu/skia_bindings",
610 "//skia",
611 "//testing/gmock",
612 "//testing/gtest",
613 # TODO(GYP)
614 #"//third_party/mesa/mesa.gyp:osmesa",
615 "//ui/gfx",
616 "//ui/gfx/geometry",
tfarina@chromium.orge54a1f522014-07-22 23:26:48617 "//ui/gfx:test_support",
brettw@chromium.orgd05751a22014-05-29 20:54:24618 "//ui/gl",
619 ]
620}
621
brettw@chromium.orgd05751a22014-05-29 20:54:24622test("cc_unittests") {
623 sources = [
624 "animation/animation_unittest.cc",
625 "animation/keyframed_animation_curve_unittest.cc",
626 "animation/layer_animation_controller_unittest.cc",
627 "animation/scroll_offset_animation_curve_unittest.cc",
628 "animation/scrollbar_animation_controller_linear_fade_unittest.cc",
629 "animation/scrollbar_animation_controller_thinning_unittest.cc",
630 "animation/transform_operations_unittest.cc",
631 "base/float_quad_unittest.cc",
632 "base/math_util_unittest.cc",
633 "base/region_unittest.cc",
634 "base/rolling_time_delta_history_unittest.cc",
635 "base/scoped_ptr_vector_unittest.cc",
636 "base/tiling_data_unittest.cc",
637 "base/util_unittest.cc",
638 "debug/micro_benchmark_controller_unittest.cc",
639 "input/top_controls_manager_unittest.cc",
640 "layers/content_layer_unittest.cc",
641 "layers/contents_scaling_layer_unittest.cc",
642 "layers/delegated_frame_provider_unittest.cc",
643 "layers/delegated_frame_resource_collection_unittest.cc",
644 "layers/delegated_renderer_layer_impl_unittest.cc",
645 "layers/heads_up_display_unittest.cc",
646 "layers/heads_up_display_layer_impl_unittest.cc",
647 "layers/io_surface_layer_impl_unittest.cc",
648 "layers/layer_impl_unittest.cc",
649 "layers/layer_iterator_unittest.cc",
650 "layers/layer_position_constraint_unittest.cc",
651 "layers/layer_unittest.cc",
652 "layers/layer_utils_unittest.cc",
653 "layers/nine_patch_layer_impl_unittest.cc",
654 "layers/nine_patch_layer_unittest.cc",
655 "layers/painted_scrollbar_layer_impl_unittest.cc",
656 "layers/picture_image_layer_impl_unittest.cc",
657 "layers/picture_layer_impl_unittest.cc",
658 "layers/picture_layer_unittest.cc",
659 "layers/render_surface_unittest.cc",
660 "layers/render_surface_impl_unittest.cc",
661 "layers/scrollbar_layer_unittest.cc",
662 "layers/solid_color_layer_impl_unittest.cc",
663 "layers/solid_color_scrollbar_layer_impl_unittest.cc",
664 "layers/surface_layer_impl_unittest.cc",
665 "layers/texture_layer_unittest.cc",
666 "layers/texture_layer_impl_unittest.cc",
667 "layers/tiled_layer_impl_unittest.cc",
668 "layers/tiled_layer_unittest.cc",
669 "layers/ui_resource_layer_impl_unittest.cc",
670 "layers/ui_resource_layer_unittest.cc",
671 "layers/video_layer_impl_unittest.cc",
672 "output/begin_frame_args_unittest.cc",
673 "output/delegating_renderer_unittest.cc",
674 "output/filter_operations_unittest.cc",
675 "output/gl_renderer_unittest.cc",
676 "output/output_surface_unittest.cc",
677 "output/overlay_unittest.cc",
678 "output/renderer_pixeltest.cc",
679 "output/renderer_unittest.cc",
680 "output/shader_unittest.cc",
681 "output/software_renderer_unittest.cc",
682 "quads/draw_quad_unittest.cc",
683 "quads/render_pass_unittest.cc",
684 "resources/layer_quad_unittest.cc",
685 "resources/picture_layer_tiling_set_unittest.cc",
686 "resources/picture_layer_tiling_unittest.cc",
687 "resources/picture_pile_impl_unittest.cc",
688 "resources/picture_pile_unittest.cc",
689 "resources/picture_unittest.cc",
690 "resources/prioritized_resource_unittest.cc",
vmpstr@google.com847389f2014-06-23 19:21:50691 "resources/prioritized_tile_set_unittest.cc",
brettw@chromium.orgd05751a22014-05-29 20:54:24692 "resources/raster_worker_pool_unittest.cc",
693 "resources/resource_provider_unittest.cc",
694 "resources/resource_update_controller_unittest.cc",
695 "resources/scoped_resource_unittest.cc",
696 "resources/task_graph_runner_unittest.cc",
697 "resources/texture_mailbox_deleter_unittest.cc",
698 "resources/texture_uploader_unittest.cc",
699 "resources/tile_manager_unittest.cc",
700 "resources/tile_priority_unittest.cc",
701 "resources/video_resource_updater_unittest.cc",
702 "scheduler/delay_based_time_source_unittest.cc",
703 "scheduler/scheduler_state_machine_unittest.cc",
704 "scheduler/scheduler_unittest.cc",
705 "test/layer_tree_json_parser_unittest.cc",
706 "test/test_web_graphics_context_3d_unittest.cc",
707 "trees/damage_tracker_unittest.cc",
708 "trees/layer_sorter_unittest.cc",
709 "trees/layer_tree_host_common_unittest.cc",
710 "trees/layer_tree_host_impl_unittest.cc",
711 "trees/layer_tree_host_pixeltest_blending.cc",
712 "trees/layer_tree_host_pixeltest_filters.cc",
713 "trees/layer_tree_host_pixeltest_masks.cc",
714 "trees/layer_tree_host_pixeltest_on_demand_raster.cc",
715 "trees/layer_tree_host_pixeltest_readback.cc",
716 "trees/layer_tree_host_unittest.cc",
717 "trees/layer_tree_host_unittest_animation.cc",
718 "trees/layer_tree_host_unittest_context.cc",
719 "trees/layer_tree_host_unittest_copyrequest.cc",
720 "trees/layer_tree_host_unittest_damage.cc",
721 "trees/layer_tree_host_unittest_delegated.cc",
722 "trees/layer_tree_host_unittest_occlusion.cc",
723 "trees/layer_tree_host_unittest_no_message_loop.cc",
724 "trees/layer_tree_host_unittest_picture.cc",
725 "trees/layer_tree_host_unittest_proxy.cc",
726 "trees/layer_tree_host_unittest_scroll.cc",
727 "trees/layer_tree_host_unittest_video.cc",
728 "trees/layer_tree_impl_unittest.cc",
729 "trees/occlusion_tracker_unittest.cc",
730 "trees/tree_synchronizer_unittest.cc",
731
732 # Surfaces test files.
733 "surfaces/surface_aggregator_test_helpers.cc",
734 "surfaces/surface_aggregator_test_helpers.h",
735 "surfaces/surface_aggregator_unittest.cc",
736 "surfaces/surface_unittest.cc",
737 "surfaces/surfaces_pixeltest.cc",
738
739 # Setup.
740 "test/run_all_unittests.cc",
741 "test/cc_test_suite.cc",
742 ]
743
744 deps = [
745 ":cc",
brettw@chromium.orgd05751a22014-05-29 20:54:24746 ":test_support",
747 "//base/test:test_support",
brettw@chromium.org6e44c302014-07-22 21:51:37748 "//cc/surfaces",
brettw@chromium.orgd05751a22014-05-29 20:54:24749 "//gpu",
750 "//gpu:gpu_unittest_utils",
brettw@chromium.org6e44c302014-07-22 21:51:37751 "//media",
brettw@chromium.orgd05751a22014-05-29 20:54:24752 "//testing/gmock",
753 "//testing/gtest",
754 "//ui/events:events_base",
755 "//ui/gfx",
756 "//ui/gfx/geometry",
757 ]
758}
759
760test("cc_perftests") {
brettw@chromium.org6e44c302014-07-22 21:51:37761 sources = [
762 "layers/layer_perftest.cc",
763 "layers/picture_layer_impl_perftest.cc",
764 "resources/picture_layer_tiling_perftest.cc",
765 "resources/picture_pile_impl_perftest.cc",
766 "resources/raster_worker_pool_perftest.cc",
767 "resources/task_graph_runner_perftest.cc",
768 "resources/tile_manager_perftest.cc",
769 "test/cc_test_suite.cc",
770 "test/run_all_perftests.cc",
771 "trees/layer_tree_host_common_perftest.cc",
772 "trees/layer_tree_host_perftest.cc",
773 "trees/occlusion_tracker_perftest.cc",
774 ]
brettw@chromium.orgd05751a22014-05-29 20:54:24775
brettw@chromium.org6e44c302014-07-22 21:51:37776 deps = [
777 ":cc",
778 ":test_support",
779 "//base",
780 "//gpu",
781 "//gpu:gpu_unittest_utils",
782 "//media",
783 "//skia",
784 "//testing/gmock",
785 "//testing/gtest",
786 "//testing/perf",
787 "//ui/gfx",
788 "//ui/gfx/geometry",
789 ]
790}