[go: nahoru, domu]

blob: 6d70f466979629a3adcce2a039cf387fd319d463 [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",
danakj@chromium.orgd5467eb2014-08-22 01:16:4358 "base/simple_enclosed_region.cc",
59 "base/simple_enclosed_region.h",
brettw@chromium.orgd05751a22014-05-29 20:54:2460 "base/swap_promise.h",
61 "base/swap_promise_monitor.cc",
62 "base/swap_promise_monitor.h",
63 "base/switches.cc",
64 "base/switches.h",
65 "base/tiling_data.cc",
66 "base/tiling_data.h",
jamesr@chromium.orgd5ba08c2014-06-18 07:01:0867 "base/unique_notifier.cc",
68 "base/unique_notifier.h",
brettw@chromium.orgd05751a22014-05-29 20:54:2469 "base/util.h",
70 "debug/benchmark_instrumentation.cc",
71 "debug/benchmark_instrumentation.h",
72 "debug/debug_colors.cc",
73 "debug/debug_colors.h",
74 "debug/debug_rect_history.cc",
75 "debug/debug_rect_history.h",
76 "debug/devtools_instrumentation.h",
77 "debug/frame_rate_counter.cc",
78 "debug/frame_rate_counter.h",
79 "debug/frame_viewer_instrumentation.h",
jamesr@chromium.orgd5ba08c2014-06-18 07:01:0880 "debug/invalidation_benchmark.cc",
81 "debug/invalidation_benchmark.h",
brettw@chromium.orgd05751a22014-05-29 20:54:2482 "debug/lap_timer.cc",
83 "debug/lap_timer.h",
84 "debug/layer_tree_debug_state.cc",
85 "debug/layer_tree_debug_state.h",
86 "debug/micro_benchmark.cc",
87 "debug/micro_benchmark.h",
88 "debug/micro_benchmark_impl.cc",
89 "debug/micro_benchmark_impl.h",
90 "debug/micro_benchmark_controller.cc",
91 "debug/micro_benchmark_controller.h",
92 "debug/micro_benchmark_controller_impl.cc",
93 "debug/micro_benchmark_controller_impl.h",
94 "debug/paint_time_counter.cc",
95 "debug/paint_time_counter.h",
96 "debug/picture_record_benchmark.cc",
97 "debug/picture_record_benchmark.h",
98 "debug/rasterize_and_record_benchmark.cc",
99 "debug/rasterize_and_record_benchmark.h",
100 "debug/rasterize_and_record_benchmark_impl.cc",
101 "debug/rasterize_and_record_benchmark_impl.h",
102 "debug/rendering_stats.cc",
103 "debug/rendering_stats.h",
104 "debug/rendering_stats_instrumentation.cc",
105 "debug/rendering_stats_instrumentation.h",
106 "debug/ring_buffer.h",
107 "debug/traced_picture.cc",
108 "debug/traced_picture.h",
109 "debug/traced_value.cc",
110 "debug/traced_value.h",
111 "debug/unittest_only_benchmark.cc",
112 "debug/unittest_only_benchmark.h",
113 "debug/unittest_only_benchmark_impl.cc",
114 "debug/unittest_only_benchmark_impl.h",
115 "input/input_handler.h",
116 "input/page_scale_animation.cc",
117 "input/page_scale_animation.h",
tfarina@chromium.orgb2ba2d42014-07-03 18:14:50118 "input/layer_selection_bound.cc",
119 "input/layer_selection_bound.h",
120 "input/selection_bound_type.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24121 "input/top_controls_manager.cc",
122 "input/top_controls_manager.h",
123 "input/top_controls_manager_client.h",
124 "layers/append_quads_data.h",
125 "layers/content_layer.cc",
126 "layers/content_layer.h",
127 "layers/content_layer_client.h",
128 "layers/contents_scaling_layer.cc",
129 "layers/contents_scaling_layer.h",
130 "layers/delegated_frame_provider.cc",
131 "layers/delegated_frame_provider.h",
132 "layers/delegated_frame_resource_collection.cc",
133 "layers/delegated_frame_resource_collection.h",
134 "layers/delegated_renderer_layer.cc",
135 "layers/delegated_renderer_layer.h",
136 "layers/delegated_renderer_layer_impl.cc",
137 "layers/delegated_renderer_layer_impl.h",
138 "layers/draw_properties.h",
139 "layers/heads_up_display_layer.cc",
140 "layers/heads_up_display_layer.h",
141 "layers/heads_up_display_layer_impl.cc",
142 "layers/heads_up_display_layer_impl.h",
143 "layers/image_layer.cc",
144 "layers/image_layer.h",
145 "layers/io_surface_layer.cc",
146 "layers/io_surface_layer.h",
147 "layers/io_surface_layer_impl.cc",
148 "layers/io_surface_layer_impl.h",
149 "layers/layer.cc",
150 "layers/layer.h",
151 "layers/layer_client.h",
152 "layers/layer_impl.cc",
153 "layers/layer_impl.h",
154 "layers/layer_iterator.h",
155 "layers/layer_lists.cc",
156 "layers/layer_lists.h",
157 "layers/layer_position_constraint.cc",
158 "layers/layer_position_constraint.h",
159 "layers/layer_utils.cc",
160 "layers/layer_utils.h",
161 "layers/nine_patch_layer.cc",
162 "layers/nine_patch_layer.h",
163 "layers/nine_patch_layer_impl.cc",
164 "layers/nine_patch_layer_impl.h",
165 "layers/paint_properties.h",
166 "layers/painted_scrollbar_layer.cc",
167 "layers/painted_scrollbar_layer.h",
168 "layers/painted_scrollbar_layer_impl.cc",
169 "layers/painted_scrollbar_layer_impl.h",
170 "layers/picture_image_layer.cc",
171 "layers/picture_image_layer.h",
172 "layers/picture_image_layer_impl.cc",
173 "layers/picture_image_layer_impl.h",
174 "layers/picture_layer.cc",
175 "layers/picture_layer.h",
176 "layers/picture_layer_impl.cc",
177 "layers/picture_layer_impl.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24178 "layers/render_pass_sink.h",
179 "layers/render_surface.cc",
180 "layers/render_surface.h",
181 "layers/render_surface_impl.cc",
182 "layers/render_surface_impl.h",
183 "layers/scrollbar_layer_impl_base.cc",
184 "layers/scrollbar_layer_impl_base.h",
185 "layers/scrollbar_layer_interface.h",
186 "layers/solid_color_layer.cc",
187 "layers/solid_color_layer.h",
188 "layers/solid_color_layer_impl.cc",
189 "layers/solid_color_layer_impl.h",
190 "layers/solid_color_scrollbar_layer.cc",
191 "layers/solid_color_scrollbar_layer.h",
192 "layers/solid_color_scrollbar_layer_impl.cc",
193 "layers/solid_color_scrollbar_layer_impl.h",
194 "layers/surface_layer.cc",
195 "layers/surface_layer.h",
196 "layers/surface_layer_impl.cc",
197 "layers/surface_layer_impl.h",
198 "layers/texture_layer.cc",
199 "layers/texture_layer.h",
200 "layers/texture_layer_client.h",
201 "layers/texture_layer_impl.cc",
202 "layers/texture_layer_impl.h",
203 "layers/tiled_layer.cc",
204 "layers/tiled_layer.h",
205 "layers/tiled_layer_impl.cc",
206 "layers/tiled_layer_impl.h",
207 "layers/ui_resource_layer.cc",
208 "layers/ui_resource_layer.h",
209 "layers/ui_resource_layer_impl.cc",
210 "layers/ui_resource_layer_impl.h",
211 "layers/video_frame_provider.h",
212 "layers/video_frame_provider_client_impl.cc",
213 "layers/video_frame_provider_client_impl.h",
214 "layers/video_layer.cc",
215 "layers/video_layer.h",
216 "layers/video_layer_impl.cc",
217 "layers/video_layer_impl.h",
218 "output/begin_frame_args.cc",
219 "output/begin_frame_args.h",
thildebr@chromium.org2a021fb7b2014-08-02 07:53:49220 "output/bsp_tree.cc",
221 "output/bsp_tree.h",
222 "output/bsp_walk_action.cc",
223 "output/bsp_walk_action.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24224 "output/compositor_frame.cc",
225 "output/compositor_frame.h",
226 "output/compositor_frame_ack.cc",
227 "output/compositor_frame_ack.h",
228 "output/compositor_frame_metadata.cc",
229 "output/compositor_frame_metadata.h",
230 "output/context_provider.cc",
231 "output/context_provider.h",
232 "output/copy_output_request.cc",
233 "output/copy_output_request.h",
234 "output/copy_output_result.cc",
235 "output/copy_output_result.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24236 "output/delegated_frame_data.cc",
tfarina@chromium.orgb2ba2d42014-07-03 18:14:50237 "output/delegated_frame_data.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24238 "output/delegating_renderer.cc",
239 "output/delegating_renderer.h",
240 "output/direct_renderer.cc",
241 "output/direct_renderer.h",
242 "output/filter_operation.cc",
243 "output/filter_operation.h",
244 "output/filter_operations.cc",
245 "output/filter_operations.h",
246 "output/geometry_binding.cc",
247 "output/geometry_binding.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24248 "output/gl_frame_data.cc",
tfarina@chromium.orgb2ba2d42014-07-03 18:14:50249 "output/gl_frame_data.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24250 "output/gl_renderer.cc",
251 "output/gl_renderer.h",
252 "output/gl_renderer_draw_cache.cc",
253 "output/gl_renderer_draw_cache.h",
254 "output/managed_memory_policy.cc",
255 "output/managed_memory_policy.h",
256 "output/output_surface.cc",
257 "output/output_surface.h",
258 "output/output_surface_client.h",
259 "output/overlay_candidate.cc",
260 "output/overlay_candidate.h",
261 "output/overlay_candidate_validator.h",
262 "output/overlay_processor.cc",
263 "output/overlay_processor.h",
264 "output/overlay_strategy_single_on_top.cc",
265 "output/overlay_strategy_single_on_top.h",
266 "output/program_binding.cc",
267 "output/program_binding.h",
268 "output/render_surface_filters.cc",
269 "output/render_surface_filters.h",
270 "output/renderer.cc",
271 "output/renderer.h",
272 "output/shader.cc",
273 "output/shader.h",
274 "output/software_frame_data.cc",
275 "output/software_frame_data.h",
276 "output/software_output_device.cc",
277 "output/software_output_device.h",
278 "output/software_renderer.cc",
279 "output/software_renderer.h",
tfarina@chromium.orgb2ba2d42014-07-03 18:14:50280 "output/viewport_selection_bound.cc",
281 "output/viewport_selection_bound.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24282 "quads/checkerboard_draw_quad.cc",
283 "quads/checkerboard_draw_quad.h",
284 "quads/content_draw_quad_base.cc",
285 "quads/content_draw_quad_base.h",
286 "quads/debug_border_draw_quad.cc",
287 "quads/debug_border_draw_quad.h",
thildebr@chromium.org2a021fb7b2014-08-02 07:53:49288 "quads/draw_polygon.cc",
289 "quads/draw_polygon.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24290 "quads/draw_quad.cc",
291 "quads/draw_quad.h",
292 "quads/io_surface_draw_quad.cc",
293 "quads/io_surface_draw_quad.h",
danakj@chromium.org620aaedc2014-08-12 22:41:20294 "quads/largest_draw_quad.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24295 "quads/picture_draw_quad.cc",
296 "quads/picture_draw_quad.h",
297 "quads/render_pass.cc",
298 "quads/render_pass.h",
299 "quads/render_pass_draw_quad.cc",
300 "quads/render_pass_draw_quad.h",
weiliangc@chromium.org0cd7d6f72014-08-22 14:50:51301 "quads/render_pass_id.cc",
302 "quads/render_pass_id.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24303 "quads/shared_quad_state.cc",
304 "quads/shared_quad_state.h",
305 "quads/solid_color_draw_quad.cc",
306 "quads/solid_color_draw_quad.h",
307 "quads/stream_video_draw_quad.cc",
308 "quads/stream_video_draw_quad.h",
309 "quads/surface_draw_quad.cc",
310 "quads/surface_draw_quad.h",
311 "quads/texture_draw_quad.cc",
312 "quads/texture_draw_quad.h",
313 "quads/tile_draw_quad.cc",
314 "quads/tile_draw_quad.h",
315 "quads/yuv_video_draw_quad.cc",
316 "quads/yuv_video_draw_quad.h",
317 "resources/bitmap_content_layer_updater.cc",
318 "resources/bitmap_content_layer_updater.h",
319 "resources/bitmap_skpicture_content_layer_updater.cc",
320 "resources/bitmap_skpicture_content_layer_updater.h",
321 "resources/content_layer_updater.cc",
322 "resources/content_layer_updater.h",
vmpstr@chromium.orgbf050582014-07-24 11:10:58323 "resources/eviction_tile_priority_queue.cc",
324 "resources/eviction_tile_priority_queue.h",
sohan.jyoti@samsung.come1878b52014-07-01 09:21:17325 "resources/gpu_raster_worker_pool.cc",
326 "resources/gpu_raster_worker_pool.h",
vmpstr@chromium.orgbf050582014-07-24 11:10:58327 "resources/image_copy_raster_worker_pool.cc",
328 "resources/image_copy_raster_worker_pool.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24329 "resources/image_layer_updater.cc",
330 "resources/image_layer_updater.h",
331 "resources/image_raster_worker_pool.cc",
332 "resources/image_raster_worker_pool.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24333 "resources/layer_painter.h",
334 "resources/layer_quad.cc",
335 "resources/layer_quad.h",
336 "resources/layer_tiling_data.cc",
337 "resources/layer_tiling_data.h",
338 "resources/layer_updater.cc",
339 "resources/layer_updater.h",
340 "resources/managed_tile_state.cc",
341 "resources/managed_tile_state.h",
342 "resources/memory_history.cc",
343 "resources/memory_history.h",
344 "resources/picture.cc",
345 "resources/picture.h",
346 "resources/picture_layer_tiling.cc",
347 "resources/picture_layer_tiling.h",
348 "resources/picture_layer_tiling_set.cc",
349 "resources/picture_layer_tiling_set.h",
ksakamoto@chromium.orgc6f0cf62014-07-22 02:44:41350 "resources/picture_pile_base.cc",
351 "resources/picture_pile_base.h",
vmpstr@chromium.orgbf050582014-07-24 11:10:58352 "resources/picture_pile.cc",
353 "resources/picture_pile.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24354 "resources/picture_pile_impl.cc",
355 "resources/picture_pile_impl.h",
356 "resources/pixel_buffer_raster_worker_pool.cc",
357 "resources/pixel_buffer_raster_worker_pool.h",
358 "resources/platform_color.h",
359 "resources/prioritized_resource.cc",
360 "resources/prioritized_resource.h",
361 "resources/prioritized_resource_manager.cc",
362 "resources/prioritized_resource_manager.h",
vmpstr@google.com847389f2014-06-23 19:21:50363 "resources/prioritized_tile_set.cc",
364 "resources/prioritized_tile_set.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24365 "resources/priority_calculator.cc",
366 "resources/priority_calculator.h",
ksakamoto@chromium.orgc6f0cf62014-07-22 02:44:41367 "resources/rasterizer.cc",
368 "resources/rasterizer.h",
vmpstr@chromium.orgbf050582014-07-24 11:10:58369 "resources/raster_mode.cc",
370 "resources/raster_mode.h",
371 "resources/raster_tile_priority_queue.cc",
372 "resources/raster_tile_priority_queue.h",
373 "resources/raster_worker_pool.cc",
374 "resources/raster_worker_pool.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24375 "resources/release_callback.h",
376 "resources/resource.cc",
ksakamoto@chromium.orgc6f0cf62014-07-22 02:44:41377 "resources/resource_format.cc",
vmpstr@chromium.orgbf050582014-07-24 11:10:58378 "resources/resource_format.h",
379 "resources/resource.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24380 "resources/resource_pool.cc",
381 "resources/resource_pool.h",
382 "resources/resource_provider.cc",
383 "resources/resource_provider.h",
384 "resources/resource_update.cc",
brettw@chromium.orgd05751a22014-05-29 20:54:24385 "resources/resource_update_controller.cc",
386 "resources/resource_update_controller.h",
vmpstr@chromium.orgbf050582014-07-24 11:10:58387 "resources/resource_update.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24388 "resources/resource_update_queue.cc",
389 "resources/resource_update_queue.h",
390 "resources/returned_resource.h",
sohan.jyoti@samsung.com110fcc0e2014-07-16 15:52:47391 "resources/scoped_gpu_raster.cc",
392 "resources/scoped_gpu_raster.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24393 "resources/scoped_resource.cc",
394 "resources/scoped_resource.h",
395 "resources/scoped_ui_resource.cc",
396 "resources/scoped_ui_resource.h",
397 "resources/shared_bitmap.cc",
398 "resources/shared_bitmap.h",
399 "resources/shared_bitmap_manager.h",
400 "resources/single_release_callback.cc",
401 "resources/single_release_callback.h",
skyostil3976a3f2014-09-04 22:07:23402 "resources/single_release_callback_impl.cc",
403 "resources/single_release_callback_impl.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24404 "resources/skpicture_content_layer_updater.cc",
405 "resources/skpicture_content_layer_updater.h",
406 "resources/task_graph_runner.cc",
407 "resources/task_graph_runner.h",
408 "resources/texture_mailbox.cc",
brettw@chromium.orgd05751a22014-05-29 20:54:24409 "resources/texture_mailbox_deleter.cc",
410 "resources/texture_mailbox_deleter.h",
vmpstr@chromium.orgbf050582014-07-24 11:10:58411 "resources/texture_mailbox.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24412 "resources/texture_uploader.cc",
413 "resources/texture_uploader.h",
414 "resources/tile.cc",
415 "resources/tile.h",
416 "resources/tile_manager.cc",
417 "resources/tile_manager.h",
418 "resources/tile_priority.cc",
419 "resources/tile_priority.h",
420 "resources/transferable_resource.cc",
421 "resources/transferable_resource.h",
422 "resources/ui_resource_bitmap.cc",
423 "resources/ui_resource_bitmap.h",
424 "resources/ui_resource_client.h",
425 "resources/ui_resource_request.cc",
426 "resources/ui_resource_request.h",
427 "resources/video_resource_updater.cc",
428 "resources/video_resource_updater.h",
429 "scheduler/delay_based_time_source.cc",
430 "scheduler/delay_based_time_source.h",
431 "scheduler/draw_result.h",
432 "scheduler/scheduler.cc",
433 "scheduler/scheduler.h",
434 "scheduler/scheduler_settings.cc",
435 "scheduler/scheduler_settings.h",
436 "scheduler/scheduler_state_machine.cc",
437 "scheduler/scheduler_state_machine.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24438 "trees/blocking_task_runner.cc",
439 "trees/blocking_task_runner.h",
440 "trees/damage_tracker.cc",
441 "trees/damage_tracker.h",
442 "trees/layer_sorter.cc",
443 "trees/layer_sorter.h",
444 "trees/layer_tree_host.cc",
445 "trees/layer_tree_host.h",
446 "trees/layer_tree_host_client.h",
447 "trees/layer_tree_host_common.cc",
448 "trees/layer_tree_host_common.h",
449 "trees/layer_tree_host_impl.cc",
450 "trees/layer_tree_host_impl.h",
451 "trees/layer_tree_impl.cc",
452 "trees/layer_tree_impl.h",
453 "trees/layer_tree_settings.cc",
454 "trees/layer_tree_settings.h",
vmpstrcdcb5f72014-09-11 00:58:37455 "trees/occlusion.cc",
456 "trees/occlusion.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24457 "trees/occlusion_tracker.cc",
458 "trees/occlusion_tracker.h",
459 "trees/proxy.cc",
460 "trees/proxy.h",
461 "trees/proxy_timing_history.cc",
462 "trees/proxy_timing_history.h",
enne@chromium.orgaeeedad2014-08-22 18:16:22463 "trees/scoped_abort_remaining_swap_promises.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24464 "trees/single_thread_proxy.cc",
465 "trees/single_thread_proxy.h",
466 "trees/thread_proxy.cc",
467 "trees/thread_proxy.h",
468 "trees/tree_synchronizer.cc",
469 "trees/tree_synchronizer.h",
470 ]
471
472 if (is_win) {
473 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
474 cflags = [ "/wd4267" ] # size_t -> int
475 }
476
477 deps = [
478 "//base",
479 "//base/third_party/dynamic_annotations",
480 "//gpu",
brettw@chromium.org6e44c302014-07-22 21:51:37481 "//media",
brettw@chromium.orgd05751a22014-05-29 20:54:24482 "//skia",
483 "//ui/events:events_base",
484 "//ui/gfx",
485 "//ui/gfx/geometry",
brettw@chromium.orgd05751a22014-05-29 20:54:24486 ]
487 forward_dependent_configs_from = [
488 "//skia",
489 ]
490
brettw@chromium.org3ffa36a2014-07-24 21:01:50491 defines = [ "CC_IMPLEMENTATION=1" ]
brettw@chromium.orgd05751a22014-05-29 20:54:24492
493 if (!is_debug && is_win) {
494 configs -= [ "//build/config/compiler:optimize" ]
495 configs += [ "//build/config/compiler:optimize_max" ]
496 }
brettw@chromium.orgd05751a22014-05-29 20:54:24497}
498
499source_set("test_support") {
Brett Wilson8f80ad0b2014-09-08 19:50:24500 testonly = true
brettw@chromium.orgd05751a22014-05-29 20:54:24501 sources = [
502 "test/animation_test_common.cc",
503 "test/animation_test_common.h",
504 "test/begin_frame_args_test.cc",
505 "test/begin_frame_args_test.h",
506 "test/fake_content_layer.cc",
507 "test/fake_content_layer.h",
508 "test/fake_content_layer_client.cc",
509 "test/fake_content_layer_client.h",
510 "test/fake_content_layer_impl.cc",
511 "test/fake_content_layer_impl.h",
512 "test/fake_delegated_renderer_layer.cc",
513 "test/fake_delegated_renderer_layer.h",
514 "test/fake_delegated_renderer_layer_impl.cc",
515 "test/fake_delegated_renderer_layer_impl.h",
516 "test/fake_impl_proxy.h",
517 "test/fake_layer_tree_host.cc",
518 "test/fake_layer_tree_host.h",
519 "test/fake_layer_tree_host_client.cc",
520 "test/fake_layer_tree_host_client.h",
521 "test/fake_layer_tree_host_impl.cc",
522 "test/fake_layer_tree_host_impl.h",
523 "test/fake_layer_tree_host_impl_client.cc",
524 "test/fake_layer_tree_host_impl_client.h",
525 "test/fake_output_surface.cc",
526 "test/fake_output_surface.h",
527 "test/fake_output_surface_client.cc",
528 "test/fake_output_surface_client.h",
529 "test/fake_painted_scrollbar_layer.cc",
530 "test/fake_painted_scrollbar_layer.h",
531 "test/fake_picture_layer.cc",
532 "test/fake_picture_layer.h",
533 "test/fake_picture_layer_impl.cc",
534 "test/fake_picture_layer_impl.h",
535 "test/fake_picture_layer_tiling_client.cc",
536 "test/fake_picture_layer_tiling_client.h",
537 "test/fake_picture_pile_impl.cc",
538 "test/fake_picture_pile_impl.h",
539 "test/fake_proxy.cc",
540 "test/fake_proxy.h",
541 "test/fake_renderer_client.cc",
542 "test/fake_renderer_client.h",
543 "test/fake_rendering_stats_instrumentation.h",
544 "test/fake_scoped_ui_resource.cc",
545 "test/fake_scoped_ui_resource.h",
546 "test/fake_scrollbar.cc",
547 "test/fake_scrollbar.h",
548 "test/fake_tile_manager.cc",
549 "test/fake_tile_manager.h",
550 "test/fake_tile_manager_client.cc",
551 "test/fake_tile_manager_client.h",
552 "test/fake_ui_resource_layer_tree_host_impl.cc",
553 "test/fake_ui_resource_layer_tree_host_impl.h",
554 "test/fake_video_frame_provider.cc",
555 "test/fake_video_frame_provider.h",
556 "test/geometry_test_utils.cc",
557 "test/geometry_test_utils.h",
558 "test/test_in_process_context_provider.cc",
559 "test/test_in_process_context_provider.h",
560 "test/impl_side_painting_settings.h",
561 "test/layer_test_common.cc",
562 "test/layer_test_common.h",
563 "test/layer_tree_host_common_test.cc",
564 "test/layer_tree_host_common_test.h",
565 "test/layer_tree_json_parser.cc",
566 "test/layer_tree_json_parser.h",
567 "test/layer_tree_pixel_test.cc",
568 "test/layer_tree_pixel_test.h",
569 "test/layer_tree_test.cc",
570 "test/layer_tree_test.h",
weiliangc@chromium.orgba16cce2014-06-17 17:03:50571 "test/mock_occlusion_tracker.h",
jamesr@chromium.orgd5ba08c2014-06-18 07:01:08572 "test/ordered_simple_task_runner.cc",
573 "test/ordered_simple_task_runner.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24574 "test/ordered_texture_map.cc",
575 "test/ordered_texture_map.h",
576 "test/paths.cc",
577 "test/paths.h",
578 "test/pixel_comparator.cc",
579 "test/pixel_comparator.h",
580 "test/pixel_test.cc",
581 "test/pixel_test.h",
582 "test/pixel_test_output_surface.cc",
583 "test/pixel_test_output_surface.h",
584 "test/pixel_test_software_output_device.cc",
585 "test/pixel_test_software_output_device.h",
586 "test/pixel_test_utils.cc",
587 "test/pixel_test_utils.h",
588 "test/render_pass_test_common.cc",
589 "test/render_pass_test_common.h",
590 "test/render_pass_test_utils.cc",
591 "test/render_pass_test_utils.h",
592 "test/scheduler_test_common.cc",
593 "test/scheduler_test_common.h",
594 "test/skia_common.cc",
595 "test/skia_common.h",
596 "test/solid_color_content_layer_client.cc",
597 "test/solid_color_content_layer_client.h",
598 "test/test_context_provider.cc",
599 "test/test_context_provider.h",
600 "test/test_context_support.cc",
601 "test/test_context_support.h",
602 "test/test_gles2_interface.cc",
603 "test/test_gles2_interface.h",
mithro0c0ac6a2014-09-10 01:03:36604 "test/test_now_source.cc",
605 "test/test_now_source.h",
brettw@chromium.orgd05751a22014-05-29 20:54:24606 "test/test_occlusion_tracker.h",
607 "test/test_shared_bitmap_manager.cc",
608 "test/test_shared_bitmap_manager.h",
609 "test/test_texture.cc",
610 "test/test_texture.h",
611 "test/test_tile_priorities.cc",
612 "test/test_tile_priorities.h",
613 "test/test_web_graphics_context_3d.cc",
614 "test/test_web_graphics_context_3d.h",
615 "test/tiled_layer_test_common.cc",
616 "test/tiled_layer_test_common.h",
617 ]
618
619 include_dirs = [
620 ".",
621 "test",
622 ]
623
624 deps = [
625 "//base",
626 "//base/third_party/dynamic_annotations",
brettw@chromium.orgc7990db2014-07-23 22:35:10627 "//gpu:test_support",
brettw@chromium.orgd05751a22014-05-29 20:54:24628 "//gpu/command_buffer/client:gles2_c_lib",
629 "//gpu/command_buffer/client:gles2_implementation",
630 "//gpu/command_buffer/client:gl_in_process_context",
oetuaho@nvidia.com845c4e32014-08-13 11:50:40631 "//gpu/command_buffer/common:gles2_utils",
brettw@chromium.orgd05751a22014-05-29 20:54:24632 "//gpu/skia_bindings",
633 "//skia",
634 "//testing/gmock",
635 "//testing/gtest",
brettw@chromium.orgd05751a22014-05-29 20:54:24636 "//ui/gfx",
637 "//ui/gfx/geometry",
tfarina@chromium.orge54a1f522014-07-22 23:26:48638 "//ui/gfx:test_support",
brettw@chromium.orgd05751a22014-05-29 20:54:24639 "//ui/gl",
640 ]
brettw@chromium.orgc7990db2014-07-23 22:35:10641
642 if (!is_android) { # TODO(GYP) Enable on Android when osmesa links.
643 deps += [ "//third_party/mesa:osmesa" ]
644 }
brettw@chromium.orgd05751a22014-05-29 20:54:24645}
646
brettw@chromium.orgd05751a22014-05-29 20:54:24647test("cc_unittests") {
648 sources = [
649 "animation/animation_unittest.cc",
650 "animation/keyframed_animation_curve_unittest.cc",
651 "animation/layer_animation_controller_unittest.cc",
652 "animation/scroll_offset_animation_curve_unittest.cc",
653 "animation/scrollbar_animation_controller_linear_fade_unittest.cc",
654 "animation/scrollbar_animation_controller_thinning_unittest.cc",
655 "animation/transform_operations_unittest.cc",
656 "base/float_quad_unittest.cc",
657 "base/math_util_unittest.cc",
658 "base/region_unittest.cc",
659 "base/rolling_time_delta_history_unittest.cc",
660 "base/scoped_ptr_vector_unittest.cc",
danakj@chromium.orgd5467eb2014-08-22 01:16:43661 "base/simple_enclosed_region_unittest.cc",
brettw@chromium.orgd05751a22014-05-29 20:54:24662 "base/tiling_data_unittest.cc",
663 "base/util_unittest.cc",
664 "debug/micro_benchmark_controller_unittest.cc",
665 "input/top_controls_manager_unittest.cc",
666 "layers/content_layer_unittest.cc",
667 "layers/contents_scaling_layer_unittest.cc",
668 "layers/delegated_frame_provider_unittest.cc",
669 "layers/delegated_frame_resource_collection_unittest.cc",
670 "layers/delegated_renderer_layer_impl_unittest.cc",
awoloszyn@chromium.orgad63b2f2014-08-11 17:39:54671 "layers/delegated_renderer_layer_unittest.cc",
brettw@chromium.orgd05751a22014-05-29 20:54:24672 "layers/heads_up_display_unittest.cc",
673 "layers/heads_up_display_layer_impl_unittest.cc",
674 "layers/io_surface_layer_impl_unittest.cc",
675 "layers/layer_impl_unittest.cc",
676 "layers/layer_iterator_unittest.cc",
677 "layers/layer_position_constraint_unittest.cc",
678 "layers/layer_unittest.cc",
679 "layers/layer_utils_unittest.cc",
680 "layers/nine_patch_layer_impl_unittest.cc",
681 "layers/nine_patch_layer_unittest.cc",
682 "layers/painted_scrollbar_layer_impl_unittest.cc",
683 "layers/picture_image_layer_impl_unittest.cc",
684 "layers/picture_layer_impl_unittest.cc",
685 "layers/picture_layer_unittest.cc",
686 "layers/render_surface_unittest.cc",
687 "layers/render_surface_impl_unittest.cc",
688 "layers/scrollbar_layer_unittest.cc",
689 "layers/solid_color_layer_impl_unittest.cc",
690 "layers/solid_color_scrollbar_layer_impl_unittest.cc",
691 "layers/surface_layer_impl_unittest.cc",
692 "layers/texture_layer_unittest.cc",
693 "layers/texture_layer_impl_unittest.cc",
694 "layers/tiled_layer_impl_unittest.cc",
695 "layers/tiled_layer_unittest.cc",
696 "layers/ui_resource_layer_impl_unittest.cc",
697 "layers/ui_resource_layer_unittest.cc",
698 "layers/video_layer_impl_unittest.cc",
699 "output/begin_frame_args_unittest.cc",
700 "output/delegating_renderer_unittest.cc",
701 "output/filter_operations_unittest.cc",
702 "output/gl_renderer_unittest.cc",
703 "output/output_surface_unittest.cc",
704 "output/overlay_unittest.cc",
705 "output/renderer_pixeltest.cc",
706 "output/renderer_unittest.cc",
707 "output/shader_unittest.cc",
708 "output/software_renderer_unittest.cc",
709 "quads/draw_quad_unittest.cc",
710 "quads/render_pass_unittest.cc",
711 "resources/layer_quad_unittest.cc",
712 "resources/picture_layer_tiling_set_unittest.cc",
713 "resources/picture_layer_tiling_unittest.cc",
714 "resources/picture_pile_impl_unittest.cc",
715 "resources/picture_pile_unittest.cc",
716 "resources/picture_unittest.cc",
717 "resources/prioritized_resource_unittest.cc",
vmpstr@google.com847389f2014-06-23 19:21:50718 "resources/prioritized_tile_set_unittest.cc",
brettw@chromium.orgd05751a22014-05-29 20:54:24719 "resources/raster_worker_pool_unittest.cc",
720 "resources/resource_provider_unittest.cc",
721 "resources/resource_update_controller_unittest.cc",
722 "resources/scoped_resource_unittest.cc",
723 "resources/task_graph_runner_unittest.cc",
724 "resources/texture_mailbox_deleter_unittest.cc",
725 "resources/texture_uploader_unittest.cc",
726 "resources/tile_manager_unittest.cc",
727 "resources/tile_priority_unittest.cc",
728 "resources/video_resource_updater_unittest.cc",
729 "scheduler/delay_based_time_source_unittest.cc",
730 "scheduler/scheduler_state_machine_unittest.cc",
731 "scheduler/scheduler_unittest.cc",
732 "test/layer_tree_json_parser_unittest.cc",
733 "test/test_web_graphics_context_3d_unittest.cc",
skyostil3976a3f2014-09-04 22:07:23734 "trees/blocking_task_runner_unittest.cc",
brettw@chromium.orgd05751a22014-05-29 20:54:24735 "trees/damage_tracker_unittest.cc",
736 "trees/layer_sorter_unittest.cc",
737 "trees/layer_tree_host_common_unittest.cc",
738 "trees/layer_tree_host_impl_unittest.cc",
739 "trees/layer_tree_host_pixeltest_blending.cc",
740 "trees/layer_tree_host_pixeltest_filters.cc",
741 "trees/layer_tree_host_pixeltest_masks.cc",
742 "trees/layer_tree_host_pixeltest_on_demand_raster.cc",
743 "trees/layer_tree_host_pixeltest_readback.cc",
744 "trees/layer_tree_host_unittest.cc",
745 "trees/layer_tree_host_unittest_animation.cc",
746 "trees/layer_tree_host_unittest_context.cc",
747 "trees/layer_tree_host_unittest_copyrequest.cc",
748 "trees/layer_tree_host_unittest_damage.cc",
749 "trees/layer_tree_host_unittest_delegated.cc",
750 "trees/layer_tree_host_unittest_occlusion.cc",
751 "trees/layer_tree_host_unittest_no_message_loop.cc",
752 "trees/layer_tree_host_unittest_picture.cc",
753 "trees/layer_tree_host_unittest_proxy.cc",
754 "trees/layer_tree_host_unittest_scroll.cc",
755 "trees/layer_tree_host_unittest_video.cc",
756 "trees/layer_tree_impl_unittest.cc",
757 "trees/occlusion_tracker_unittest.cc",
758 "trees/tree_synchronizer_unittest.cc",
759
760 # Surfaces test files.
761 "surfaces/surface_aggregator_test_helpers.cc",
762 "surfaces/surface_aggregator_test_helpers.h",
763 "surfaces/surface_aggregator_unittest.cc",
764 "surfaces/surface_unittest.cc",
765 "surfaces/surfaces_pixeltest.cc",
766
767 # Setup.
768 "test/run_all_unittests.cc",
769 "test/cc_test_suite.cc",
770 ]
771
772 deps = [
773 ":cc",
brettw@chromium.orgd05751a22014-05-29 20:54:24774 ":test_support",
775 "//base/test:test_support",
brettw@chromium.org6e44c302014-07-22 21:51:37776 "//cc/surfaces",
brettw@chromium.orgd05751a22014-05-29 20:54:24777 "//gpu",
brettw@chromium.orgc7990db2014-07-23 22:35:10778 "//gpu:test_support",
oetuaho@nvidia.com845c4e32014-08-13 11:50:40779 "//gpu/command_buffer/common:gles2_utils",
brettw@chromium.org6e44c302014-07-22 21:51:37780 "//media",
brettw@chromium.orgd05751a22014-05-29 20:54:24781 "//testing/gmock",
782 "//testing/gtest",
783 "//ui/events:events_base",
784 "//ui/gfx",
785 "//ui/gfx/geometry",
786 ]
787}
788
789test("cc_perftests") {
brettw@chromium.org6e44c302014-07-22 21:51:37790 sources = [
791 "layers/layer_perftest.cc",
792 "layers/picture_layer_impl_perftest.cc",
793 "resources/picture_layer_tiling_perftest.cc",
794 "resources/picture_pile_impl_perftest.cc",
795 "resources/raster_worker_pool_perftest.cc",
796 "resources/task_graph_runner_perftest.cc",
797 "resources/tile_manager_perftest.cc",
798 "test/cc_test_suite.cc",
799 "test/run_all_perftests.cc",
800 "trees/layer_tree_host_common_perftest.cc",
801 "trees/layer_tree_host_perftest.cc",
802 "trees/occlusion_tracker_perftest.cc",
803 ]
brettw@chromium.orgd05751a22014-05-29 20:54:24804
brettw@chromium.org6e44c302014-07-22 21:51:37805 deps = [
806 ":cc",
807 ":test_support",
808 "//base",
809 "//gpu",
brettw@chromium.orgc7990db2014-07-23 22:35:10810 "//gpu:test_support",
oetuaho@nvidia.com845c4e32014-08-13 11:50:40811 "//gpu/command_buffer/common:gles2_utils",
brettw@chromium.org6e44c302014-07-22 21:51:37812 "//media",
813 "//skia",
814 "//testing/gmock",
815 "//testing/gtest",
816 "//testing/perf",
817 "//ui/gfx",
818 "//ui/gfx/geometry",
819 ]
820}