[go: nahoru, domu]

blob: 7186bda66b52692faa3b4a46f3057ef317fdd8c9 [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",
vmpstr@chromium.org51c87892014-07-21 21:45:41312 "resources/eviction_tile_priority_queue.cc",
313 "resources/eviction_tile_priority_queue.h",
sohan.jyoti@samsung.come1878b52014-07-01 09:21:17314 "resources/gpu_raster_worker_pool.cc",
315 "resources/gpu_raster_worker_pool.h",
vmpstr@chromium.org51c87892014-07-21 21:45:41316 "resources/image_copy_raster_worker_pool.cc",
317 "resources/image_copy_raster_worker_pool.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24318 "resources/image_layer_updater.cc",
319 "resources/image_layer_updater.h",
320 "resources/image_raster_worker_pool.cc",
321 "resources/image_raster_worker_pool.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24322 "resources/layer_painter.h",
323 "resources/layer_quad.cc",
324 "resources/layer_quad.h",
325 "resources/layer_tiling_data.cc",
326 "resources/layer_tiling_data.h",
327 "resources/layer_updater.cc",
328 "resources/layer_updater.h",
329 "resources/managed_tile_state.cc",
330 "resources/managed_tile_state.h",
331 "resources/memory_history.cc",
332 "resources/memory_history.h",
333 "resources/picture.cc",
334 "resources/picture.h",
335 "resources/picture_layer_tiling.cc",
336 "resources/picture_layer_tiling.h",
337 "resources/picture_layer_tiling_set.cc",
338 "resources/picture_layer_tiling_set.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24339 "resources/picture_pile_base.cc",
340 "resources/picture_pile_base.h",
vmpstr@chromium.org51c87892014-07-21 21:45:41341 "resources/picture_pile.cc",
342 "resources/picture_pile.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24343 "resources/picture_pile_impl.cc",
344 "resources/picture_pile_impl.h",
345 "resources/pixel_buffer_raster_worker_pool.cc",
346 "resources/pixel_buffer_raster_worker_pool.h",
347 "resources/platform_color.h",
348 "resources/prioritized_resource.cc",
349 "resources/prioritized_resource.h",
350 "resources/prioritized_resource_manager.cc",
351 "resources/prioritized_resource_manager.h",
vmpstr@google.com847389f2014-06-23 19:21:50352 "resources/prioritized_tile_set.cc",
353 "resources/prioritized_tile_set.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24354 "resources/priority_calculator.cc",
355 "resources/priority_calculator.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24356 "resources/rasterizer.cc",
357 "resources/rasterizer.h",
vmpstr@chromium.org51c87892014-07-21 21:45:41358 "resources/raster_mode.cc",
359 "resources/raster_mode.h",
360 "resources/raster_tile_priority_queue.cc",
361 "resources/raster_tile_priority_queue.h",
362 "resources/raster_worker_pool.cc",
363 "resources/raster_worker_pool.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24364 "resources/release_callback.h",
365 "resources/resource.cc",
brettw@chromium.orgd05751a22014-05-29 20:54:24366 "resources/resource_format.cc",
vmpstr@chromium.org51c87892014-07-21 21:45:41367 "resources/resource_format.h",
368 "resources/resource.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24369 "resources/resource_pool.cc",
370 "resources/resource_pool.h",
371 "resources/resource_provider.cc",
372 "resources/resource_provider.h",
373 "resources/resource_update.cc",
brettw@chromium.orgd05751a22014-05-29 20:54:24374 "resources/resource_update_controller.cc",
375 "resources/resource_update_controller.h",
vmpstr@chromium.org51c87892014-07-21 21:45:41376 "resources/resource_update.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24377 "resources/resource_update_queue.cc",
378 "resources/resource_update_queue.h",
379 "resources/returned_resource.h",
sohan.jyoti@samsung.com110fcc0e2014-07-16 15:52:47380 "resources/scoped_gpu_raster.cc",
381 "resources/scoped_gpu_raster.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24382 "resources/scoped_resource.cc",
383 "resources/scoped_resource.h",
384 "resources/scoped_ui_resource.cc",
385 "resources/scoped_ui_resource.h",
386 "resources/shared_bitmap.cc",
387 "resources/shared_bitmap.h",
388 "resources/shared_bitmap_manager.h",
389 "resources/single_release_callback.cc",
390 "resources/single_release_callback.h",
391 "resources/skpicture_content_layer_updater.cc",
392 "resources/skpicture_content_layer_updater.h",
393 "resources/task_graph_runner.cc",
394 "resources/task_graph_runner.h",
395 "resources/texture_mailbox.cc",
brettw@chromium.orgd05751a22014-05-29 20:54:24396 "resources/texture_mailbox_deleter.cc",
397 "resources/texture_mailbox_deleter.h",
vmpstr@chromium.org51c87892014-07-21 21:45:41398 "resources/texture_mailbox.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24399 "resources/texture_uploader.cc",
400 "resources/texture_uploader.h",
401 "resources/tile.cc",
402 "resources/tile.h",
403 "resources/tile_manager.cc",
404 "resources/tile_manager.h",
405 "resources/tile_priority.cc",
406 "resources/tile_priority.h",
407 "resources/transferable_resource.cc",
408 "resources/transferable_resource.h",
409 "resources/ui_resource_bitmap.cc",
410 "resources/ui_resource_bitmap.h",
411 "resources/ui_resource_client.h",
412 "resources/ui_resource_request.cc",
413 "resources/ui_resource_request.h",
414 "resources/video_resource_updater.cc",
415 "resources/video_resource_updater.h",
416 "scheduler/delay_based_time_source.cc",
417 "scheduler/delay_based_time_source.h",
418 "scheduler/draw_result.h",
419 "scheduler/scheduler.cc",
420 "scheduler/scheduler.h",
421 "scheduler/scheduler_settings.cc",
422 "scheduler/scheduler_settings.h",
423 "scheduler/scheduler_state_machine.cc",
424 "scheduler/scheduler_state_machine.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24425 "trees/blocking_task_runner.cc",
426 "trees/blocking_task_runner.h",
427 "trees/damage_tracker.cc",
428 "trees/damage_tracker.h",
429 "trees/layer_sorter.cc",
430 "trees/layer_sorter.h",
431 "trees/layer_tree_host.cc",
432 "trees/layer_tree_host.h",
433 "trees/layer_tree_host_client.h",
434 "trees/layer_tree_host_common.cc",
435 "trees/layer_tree_host_common.h",
436 "trees/layer_tree_host_impl.cc",
437 "trees/layer_tree_host_impl.h",
438 "trees/layer_tree_impl.cc",
439 "trees/layer_tree_impl.h",
440 "trees/layer_tree_settings.cc",
441 "trees/layer_tree_settings.h",
442 "trees/occlusion_tracker.cc",
443 "trees/occlusion_tracker.h",
444 "trees/proxy.cc",
445 "trees/proxy.h",
446 "trees/proxy_timing_history.cc",
447 "trees/proxy_timing_history.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24448 "trees/single_thread_proxy.cc",
449 "trees/single_thread_proxy.h",
450 "trees/thread_proxy.cc",
451 "trees/thread_proxy.h",
452 "trees/tree_synchronizer.cc",
453 "trees/tree_synchronizer.h",
454 ]
455
456 if (is_win) {
457 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
458 cflags = [ "/wd4267" ] # size_t -> int
459 }
460
461 deps = [
462 "//base",
463 "//base/third_party/dynamic_annotations",
464 "//gpu",
465 #"//media", TODO(GYP)
466 "//skia",
467 "//ui/events:events_base",
468 "//ui/gfx",
469 "//ui/gfx/geometry",
470 "//ui/gl",
471 ]
472 forward_dependent_configs_from = [
473 "//skia",
474 ]
475
476 defined = [ "CC_IMPLEMENTATION=1" ]
477
478 if (!is_debug && is_win) {
479 configs -= [ "//build/config/compiler:optimize" ]
480 configs += [ "//build/config/compiler:optimize_max" ]
481 }
482}
483
484component("cc_surfaces") {
485 sources = [
486 "surfaces/surface.cc",
487 "surfaces/surface.h",
488 "surfaces/surface_aggregator.cc",
489 "surfaces/surface_aggregator.h",
490 "surfaces/surface_manager.cc",
491 "surfaces/surface_manager.h",
492 "surfaces/surfaces_export.h",
493 ]
494
495 defines = [ "CC_SURFACES_IMPLEMENTATION=1" ]
496
497 deps = [
498 ":cc",
499 "//base",
500 "//base/third_party/dynamic_annotations",
501 "//skia",
502 "//ui/gfx",
503 "//ui/gfx/geometry",
504 ]
505}
506
507source_set("test_support") {
508 sources = [
509 "test/animation_test_common.cc",
510 "test/animation_test_common.h",
511 "test/begin_frame_args_test.cc",
512 "test/begin_frame_args_test.h",
513 "test/fake_content_layer.cc",
514 "test/fake_content_layer.h",
515 "test/fake_content_layer_client.cc",
516 "test/fake_content_layer_client.h",
517 "test/fake_content_layer_impl.cc",
518 "test/fake_content_layer_impl.h",
519 "test/fake_delegated_renderer_layer.cc",
520 "test/fake_delegated_renderer_layer.h",
521 "test/fake_delegated_renderer_layer_impl.cc",
522 "test/fake_delegated_renderer_layer_impl.h",
523 "test/fake_impl_proxy.h",
524 "test/fake_layer_tree_host.cc",
525 "test/fake_layer_tree_host.h",
526 "test/fake_layer_tree_host_client.cc",
527 "test/fake_layer_tree_host_client.h",
528 "test/fake_layer_tree_host_impl.cc",
529 "test/fake_layer_tree_host_impl.h",
530 "test/fake_layer_tree_host_impl_client.cc",
531 "test/fake_layer_tree_host_impl_client.h",
532 "test/fake_output_surface.cc",
533 "test/fake_output_surface.h",
534 "test/fake_output_surface_client.cc",
535 "test/fake_output_surface_client.h",
536 "test/fake_painted_scrollbar_layer.cc",
537 "test/fake_painted_scrollbar_layer.h",
538 "test/fake_picture_layer.cc",
539 "test/fake_picture_layer.h",
540 "test/fake_picture_layer_impl.cc",
541 "test/fake_picture_layer_impl.h",
542 "test/fake_picture_layer_tiling_client.cc",
543 "test/fake_picture_layer_tiling_client.h",
544 "test/fake_picture_pile_impl.cc",
545 "test/fake_picture_pile_impl.h",
546 "test/fake_proxy.cc",
547 "test/fake_proxy.h",
548 "test/fake_renderer_client.cc",
549 "test/fake_renderer_client.h",
550 "test/fake_rendering_stats_instrumentation.h",
551 "test/fake_scoped_ui_resource.cc",
552 "test/fake_scoped_ui_resource.h",
553 "test/fake_scrollbar.cc",
554 "test/fake_scrollbar.h",
555 "test/fake_tile_manager.cc",
556 "test/fake_tile_manager.h",
557 "test/fake_tile_manager_client.cc",
558 "test/fake_tile_manager_client.h",
559 "test/fake_ui_resource_layer_tree_host_impl.cc",
560 "test/fake_ui_resource_layer_tree_host_impl.h",
561 "test/fake_video_frame_provider.cc",
562 "test/fake_video_frame_provider.h",
563 "test/geometry_test_utils.cc",
564 "test/geometry_test_utils.h",
565 "test/test_in_process_context_provider.cc",
566 "test/test_in_process_context_provider.h",
567 "test/impl_side_painting_settings.h",
568 "test/layer_test_common.cc",
569 "test/layer_test_common.h",
570 "test/layer_tree_host_common_test.cc",
571 "test/layer_tree_host_common_test.h",
572 "test/layer_tree_json_parser.cc",
573 "test/layer_tree_json_parser.h",
574 "test/layer_tree_pixel_test.cc",
575 "test/layer_tree_pixel_test.h",
576 "test/layer_tree_test.cc",
577 "test/layer_tree_test.h",
weiliangc@chromium.orgba16cce2014-06-17 17:03:50578 "test/mock_occlusion_tracker.h",
jamesr@chromium.orgd5ba08c2014-06-18 07:01:08579 "test/ordered_simple_task_runner.cc",
580 "test/ordered_simple_task_runner.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24581 "test/ordered_texture_map.cc",
582 "test/ordered_texture_map.h",
583 "test/paths.cc",
584 "test/paths.h",
585 "test/pixel_comparator.cc",
586 "test/pixel_comparator.h",
587 "test/pixel_test.cc",
588 "test/pixel_test.h",
589 "test/pixel_test_output_surface.cc",
590 "test/pixel_test_output_surface.h",
591 "test/pixel_test_software_output_device.cc",
592 "test/pixel_test_software_output_device.h",
593 "test/pixel_test_utils.cc",
594 "test/pixel_test_utils.h",
595 "test/render_pass_test_common.cc",
596 "test/render_pass_test_common.h",
597 "test/render_pass_test_utils.cc",
598 "test/render_pass_test_utils.h",
599 "test/scheduler_test_common.cc",
600 "test/scheduler_test_common.h",
601 "test/skia_common.cc",
602 "test/skia_common.h",
603 "test/solid_color_content_layer_client.cc",
604 "test/solid_color_content_layer_client.h",
605 "test/test_context_provider.cc",
606 "test/test_context_provider.h",
607 "test/test_context_support.cc",
608 "test/test_context_support.h",
609 "test/test_gles2_interface.cc",
610 "test/test_gles2_interface.h",
611 "test/test_occlusion_tracker.h",
612 "test/test_shared_bitmap_manager.cc",
613 "test/test_shared_bitmap_manager.h",
614 "test/test_texture.cc",
615 "test/test_texture.h",
616 "test/test_tile_priorities.cc",
617 "test/test_tile_priorities.h",
618 "test/test_web_graphics_context_3d.cc",
619 "test/test_web_graphics_context_3d.h",
620 "test/tiled_layer_test_common.cc",
621 "test/tiled_layer_test_common.h",
622 ]
623
624 include_dirs = [
625 ".",
626 "test",
627 ]
628
629 deps = [
630 "//base",
631 "//base/third_party/dynamic_annotations",
632 "//gpu:gpu_unittest_utils",
633 "//gpu/command_buffer/client:gles2_c_lib",
634 "//gpu/command_buffer/client:gles2_implementation",
635 "//gpu/command_buffer/client:gl_in_process_context",
636 "//gpu/skia_bindings",
637 "//skia",
638 "//testing/gmock",
639 "//testing/gtest",
640 # TODO(GYP)
641 #"//third_party/mesa/mesa.gyp:osmesa",
642 "//ui/gfx",
643 "//ui/gfx/geometry",
644 "//ui/gfx:gfx_test_support",
645 "//ui/gl",
646 ]
647}
648
649# TODO(GYP) make these tests link when all deps are resolved.
650if (false) {
651
652test("cc_unittests") {
653 sources = [
654 "animation/animation_unittest.cc",
655 "animation/keyframed_animation_curve_unittest.cc",
656 "animation/layer_animation_controller_unittest.cc",
657 "animation/scroll_offset_animation_curve_unittest.cc",
658 "animation/scrollbar_animation_controller_linear_fade_unittest.cc",
659 "animation/scrollbar_animation_controller_thinning_unittest.cc",
660 "animation/transform_operations_unittest.cc",
661 "base/float_quad_unittest.cc",
662 "base/math_util_unittest.cc",
663 "base/region_unittest.cc",
664 "base/rolling_time_delta_history_unittest.cc",
665 "base/scoped_ptr_vector_unittest.cc",
666 "base/tiling_data_unittest.cc",
667 "base/util_unittest.cc",
668 "debug/micro_benchmark_controller_unittest.cc",
669 "input/top_controls_manager_unittest.cc",
670 "layers/content_layer_unittest.cc",
671 "layers/contents_scaling_layer_unittest.cc",
672 "layers/delegated_frame_provider_unittest.cc",
673 "layers/delegated_frame_resource_collection_unittest.cc",
674 "layers/delegated_renderer_layer_impl_unittest.cc",
675 "layers/heads_up_display_unittest.cc",
676 "layers/heads_up_display_layer_impl_unittest.cc",
677 "layers/io_surface_layer_impl_unittest.cc",
678 "layers/layer_impl_unittest.cc",
679 "layers/layer_iterator_unittest.cc",
680 "layers/layer_position_constraint_unittest.cc",
681 "layers/layer_unittest.cc",
682 "layers/layer_utils_unittest.cc",
683 "layers/nine_patch_layer_impl_unittest.cc",
684 "layers/nine_patch_layer_unittest.cc",
685 "layers/painted_scrollbar_layer_impl_unittest.cc",
686 "layers/picture_image_layer_impl_unittest.cc",
687 "layers/picture_layer_impl_unittest.cc",
688 "layers/picture_layer_unittest.cc",
689 "layers/render_surface_unittest.cc",
690 "layers/render_surface_impl_unittest.cc",
691 "layers/scrollbar_layer_unittest.cc",
692 "layers/solid_color_layer_impl_unittest.cc",
693 "layers/solid_color_scrollbar_layer_impl_unittest.cc",
694 "layers/surface_layer_impl_unittest.cc",
695 "layers/texture_layer_unittest.cc",
696 "layers/texture_layer_impl_unittest.cc",
697 "layers/tiled_layer_impl_unittest.cc",
698 "layers/tiled_layer_unittest.cc",
699 "layers/ui_resource_layer_impl_unittest.cc",
700 "layers/ui_resource_layer_unittest.cc",
701 "layers/video_layer_impl_unittest.cc",
702 "output/begin_frame_args_unittest.cc",
703 "output/delegating_renderer_unittest.cc",
704 "output/filter_operations_unittest.cc",
705 "output/gl_renderer_unittest.cc",
706 "output/output_surface_unittest.cc",
707 "output/overlay_unittest.cc",
708 "output/renderer_pixeltest.cc",
709 "output/renderer_unittest.cc",
710 "output/shader_unittest.cc",
711 "output/software_renderer_unittest.cc",
712 "quads/draw_quad_unittest.cc",
713 "quads/render_pass_unittest.cc",
714 "resources/layer_quad_unittest.cc",
715 "resources/picture_layer_tiling_set_unittest.cc",
716 "resources/picture_layer_tiling_unittest.cc",
717 "resources/picture_pile_impl_unittest.cc",
718 "resources/picture_pile_unittest.cc",
719 "resources/picture_unittest.cc",
720 "resources/prioritized_resource_unittest.cc",
vmpstr@google.com847389f2014-06-23 19:21:50721 "resources/prioritized_tile_set_unittest.cc",
brettw@chromium.orgd05751a22014-05-29 20:54:24722 "resources/raster_worker_pool_unittest.cc",
723 "resources/resource_provider_unittest.cc",
724 "resources/resource_update_controller_unittest.cc",
725 "resources/scoped_resource_unittest.cc",
726 "resources/task_graph_runner_unittest.cc",
727 "resources/texture_mailbox_deleter_unittest.cc",
728 "resources/texture_uploader_unittest.cc",
729 "resources/tile_manager_unittest.cc",
730 "resources/tile_priority_unittest.cc",
731 "resources/video_resource_updater_unittest.cc",
732 "scheduler/delay_based_time_source_unittest.cc",
733 "scheduler/scheduler_state_machine_unittest.cc",
734 "scheduler/scheduler_unittest.cc",
735 "test/layer_tree_json_parser_unittest.cc",
736 "test/test_web_graphics_context_3d_unittest.cc",
737 "trees/damage_tracker_unittest.cc",
738 "trees/layer_sorter_unittest.cc",
739 "trees/layer_tree_host_common_unittest.cc",
740 "trees/layer_tree_host_impl_unittest.cc",
741 "trees/layer_tree_host_pixeltest_blending.cc",
742 "trees/layer_tree_host_pixeltest_filters.cc",
743 "trees/layer_tree_host_pixeltest_masks.cc",
744 "trees/layer_tree_host_pixeltest_on_demand_raster.cc",
745 "trees/layer_tree_host_pixeltest_readback.cc",
746 "trees/layer_tree_host_unittest.cc",
747 "trees/layer_tree_host_unittest_animation.cc",
748 "trees/layer_tree_host_unittest_context.cc",
749 "trees/layer_tree_host_unittest_copyrequest.cc",
750 "trees/layer_tree_host_unittest_damage.cc",
751 "trees/layer_tree_host_unittest_delegated.cc",
752 "trees/layer_tree_host_unittest_occlusion.cc",
753 "trees/layer_tree_host_unittest_no_message_loop.cc",
754 "trees/layer_tree_host_unittest_picture.cc",
755 "trees/layer_tree_host_unittest_proxy.cc",
756 "trees/layer_tree_host_unittest_scroll.cc",
757 "trees/layer_tree_host_unittest_video.cc",
758 "trees/layer_tree_impl_unittest.cc",
759 "trees/occlusion_tracker_unittest.cc",
760 "trees/tree_synchronizer_unittest.cc",
761
762 # Surfaces test files.
763 "surfaces/surface_aggregator_test_helpers.cc",
764 "surfaces/surface_aggregator_test_helpers.h",
765 "surfaces/surface_aggregator_unittest.cc",
766 "surfaces/surface_unittest.cc",
767 "surfaces/surfaces_pixeltest.cc",
768
769 # Setup.
770 "test/run_all_unittests.cc",
771 "test/cc_test_suite.cc",
772 ]
773
774 deps = [
775 ":cc",
776 ":cc_surfaces",
777 ":test_support",
778 "//base/test:test_support",
779 "//gpu",
780 "//gpu:gpu_unittest_utils",
781 # TODO(GYP)
782 #"//media",
783 "//testing/gmock",
784 "//testing/gtest",
785 "//ui/events:events_base",
786 "//ui/gfx",
787 "//ui/gfx/geometry",
788 ]
789}
790
791test("cc_perftests") {
792 # TODO(GYP)
793}
794
795} # if false