1 # Copyright (c) 2012 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.
13 'type': '<(component)',
15 '<(DEPTH)/base/base.gyp:base',
16 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
17 '<(DEPTH)/gpu/gpu.gyp:gpu',
18 '<(DEPTH)/media/media.gyp:media',
19 '<(DEPTH)/skia/skia.gyp:skia',
20 '<(DEPTH)/ui/events/events.gyp:events_base',
21 '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
22 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
27 'export_dependent_settings': [
28 '<(DEPTH)/skia/skia.gyp:skia',
31 'CC_IMPLEMENTATION=1',
34 # Note: file list duplicated in GN build.
35 'animation/animation.cc',
36 'animation/animation.h',
37 'animation/animation_curve.cc',
38 'animation/animation_curve.h',
39 'animation/animation_delegate.h',
40 'animation/animation_events.cc',
41 'animation/animation_events.h',
42 'animation/animation_id_provider.cc',
43 'animation/animation_id_provider.h',
44 'animation/animation_registrar.cc',
45 'animation/animation_registrar.h',
46 'animation/keyframed_animation_curve.cc',
47 'animation/keyframed_animation_curve.h',
48 'animation/layer_animation_controller.cc',
49 'animation/layer_animation_controller.h',
50 'animation/layer_animation_event_observer.h',
51 'animation/layer_animation_value_observer.h',
52 'animation/layer_animation_value_provider.h',
53 'animation/scroll_offset_animation_curve.cc',
54 'animation/scroll_offset_animation_curve.h',
55 'animation/scrollbar_animation_controller.h',
56 'animation/scrollbar_animation_controller.cc',
57 'animation/scrollbar_animation_controller_linear_fade.cc',
58 'animation/scrollbar_animation_controller_linear_fade.h',
59 'animation/scrollbar_animation_controller_thinning.cc',
60 'animation/scrollbar_animation_controller_thinning.h',
61 'animation/timing_function.cc',
62 'animation/timing_function.h',
63 'animation/transform_operation.cc',
64 'animation/transform_operation.h',
65 'animation/transform_operations.cc',
66 'animation/transform_operations.h',
67 'base/completion_event.h',
68 'base/delayed_unique_notifier.cc',
69 'base/delayed_unique_notifier.h',
70 'base/invalidation_region.cc',
71 'base/invalidation_region.h',
72 'base/latency_info_swap_promise.cc',
73 'base/latency_info_swap_promise.h',
74 'base/latency_info_swap_promise_monitor.cc',
75 'base/latency_info_swap_promise_monitor.h',
78 'base/ref_counted_managed.h',
81 'base/rolling_time_delta_history.cc',
82 'base/rolling_time_delta_history.h',
83 'base/scoped_ptr_algorithm.h',
84 'base/scoped_ptr_deque.h',
85 'base/scoped_ptr_vector.h',
86 'base/simple_enclosed_region.cc',
87 'base/simple_enclosed_region.h',
88 'base/swap_promise.h',
89 'base/swap_promise_monitor.cc',
90 'base/swap_promise_monitor.h',
91 'base/synced_property.h',
94 'base/tiling_data.cc',
97 'base/unique_notifier.cc',
98 'base/unique_notifier.h',
100 'debug/benchmark_instrumentation.cc',
101 'debug/benchmark_instrumentation.h',
102 'debug/debug_colors.cc',
103 'debug/debug_colors.h',
104 'debug/debug_rect_history.cc',
105 'debug/debug_rect_history.h',
106 'debug/devtools_instrumentation.h',
107 'debug/frame_rate_counter.cc',
108 'debug/frame_rate_counter.h',
109 'debug/frame_viewer_instrumentation.h',
110 'debug/invalidation_benchmark.cc',
111 'debug/invalidation_benchmark.h',
112 'debug/lap_timer.cc',
114 'debug/layer_tree_debug_state.cc',
115 'debug/layer_tree_debug_state.h',
116 'debug/micro_benchmark.cc',
117 'debug/micro_benchmark.h',
118 'debug/micro_benchmark_impl.cc',
119 'debug/micro_benchmark_impl.h',
120 'debug/micro_benchmark_controller.cc',
121 'debug/micro_benchmark_controller.h',
122 'debug/micro_benchmark_controller_impl.cc',
123 'debug/micro_benchmark_controller_impl.h',
124 'debug/paint_time_counter.cc',
125 'debug/paint_time_counter.h',
126 'debug/picture_record_benchmark.cc',
127 'debug/picture_record_benchmark.h',
128 'debug/rasterize_and_record_benchmark.cc',
129 'debug/rasterize_and_record_benchmark.h',
130 'debug/rasterize_and_record_benchmark_impl.cc',
131 'debug/rasterize_and_record_benchmark_impl.h',
132 'debug/rendering_stats.cc',
133 'debug/rendering_stats.h',
134 'debug/rendering_stats_instrumentation.cc',
135 'debug/rendering_stats_instrumentation.h',
136 'debug/ring_buffer.h',
137 'debug/traced_picture.cc',
138 'debug/traced_picture.h',
139 'debug/traced_value.cc',
140 'debug/traced_value.h',
141 'debug/unittest_only_benchmark.cc',
142 'debug/unittest_only_benchmark.h',
143 'debug/unittest_only_benchmark_impl.cc',
144 'debug/unittest_only_benchmark_impl.h',
145 'input/input_handler.cc',
146 'input/input_handler.h',
147 'input/page_scale_animation.cc',
148 'input/page_scale_animation.h',
149 'input/layer_selection_bound.cc',
150 'input/layer_selection_bound.h',
151 'input/scroll_elasticity_helper.cc',
152 'input/scroll_elasticity_helper.h',
153 'input/selection_bound_type.h',
154 'input/top_controls_manager.cc',
155 'input/top_controls_manager.h',
156 'input/top_controls_manager_client.h',
157 'layers/append_quads_data.h',
158 'layers/content_layer.cc',
159 'layers/content_layer.h',
160 'layers/content_layer_client.h',
161 'layers/contents_scaling_layer.cc',
162 'layers/contents_scaling_layer.h',
163 'layers/delegated_frame_provider.cc',
164 'layers/delegated_frame_provider.h',
165 'layers/delegated_frame_resource_collection.cc',
166 'layers/delegated_frame_resource_collection.h',
167 'layers/delegated_renderer_layer.cc',
168 'layers/delegated_renderer_layer.h',
169 'layers/delegated_renderer_layer_impl.cc',
170 'layers/delegated_renderer_layer_impl.h',
171 'layers/draw_properties.h',
172 'layers/heads_up_display_layer.cc',
173 'layers/heads_up_display_layer.h',
174 'layers/heads_up_display_layer_impl.cc',
175 'layers/heads_up_display_layer_impl.h',
176 'layers/image_layer.cc',
177 'layers/image_layer.h',
178 'layers/io_surface_layer.cc',
179 'layers/io_surface_layer.h',
180 'layers/io_surface_layer_impl.cc',
181 'layers/io_surface_layer_impl.h',
184 'layers/layer_client.h',
185 'layers/layer_impl.cc',
186 'layers/layer_impl.h',
187 'layers/layer_iterator.h',
188 'layers/layer_lists.cc',
189 'layers/layer_lists.h',
190 'layers/layer_position_constraint.cc',
191 'layers/layer_position_constraint.h',
192 'layers/layer_utils.cc',
193 'layers/layer_utils.h',
194 'layers/nine_patch_layer.cc',
195 'layers/nine_patch_layer.h',
196 'layers/nine_patch_layer_impl.cc',
197 'layers/nine_patch_layer_impl.h',
198 'layers/paint_properties.h',
199 'layers/painted_scrollbar_layer.cc',
200 'layers/painted_scrollbar_layer.h',
201 'layers/painted_scrollbar_layer_impl.cc',
202 'layers/painted_scrollbar_layer_impl.h',
203 'layers/picture_image_layer.cc',
204 'layers/picture_image_layer.h',
205 'layers/picture_image_layer_impl.cc',
206 'layers/picture_image_layer_impl.h',
207 'layers/picture_layer.cc',
208 'layers/picture_layer.h',
209 'layers/picture_layer_impl.cc',
210 'layers/picture_layer_impl.h',
211 'layers/render_pass_sink.h',
212 'layers/render_surface.cc',
213 'layers/render_surface.h',
214 'layers/render_surface_impl.cc',
215 'layers/render_surface_impl.h',
216 'layers/scrollbar_layer_impl_base.cc',
217 'layers/scrollbar_layer_impl_base.h',
218 'layers/scrollbar_layer_interface.h',
219 'layers/solid_color_layer.cc',
220 'layers/solid_color_layer.h',
221 'layers/solid_color_layer_impl.cc',
222 'layers/solid_color_layer_impl.h',
223 'layers/solid_color_scrollbar_layer.cc',
224 'layers/solid_color_scrollbar_layer.h',
225 'layers/solid_color_scrollbar_layer_impl.cc',
226 'layers/solid_color_scrollbar_layer_impl.h',
227 'layers/surface_layer.cc',
228 'layers/surface_layer.h',
229 'layers/surface_layer_impl.cc',
230 'layers/surface_layer_impl.h',
231 'layers/texture_layer.cc',
232 'layers/texture_layer.h',
233 'layers/texture_layer_client.h',
234 'layers/texture_layer_impl.cc',
235 'layers/texture_layer_impl.h',
236 'layers/tiled_layer.cc',
237 'layers/tiled_layer.h',
238 'layers/tiled_layer_impl.cc',
239 'layers/tiled_layer_impl.h',
240 'layers/ui_resource_layer.cc',
241 'layers/ui_resource_layer.h',
242 'layers/ui_resource_layer_impl.cc',
243 'layers/ui_resource_layer_impl.h',
244 'layers/video_frame_provider.h',
245 'layers/video_frame_provider_client_impl.cc',
246 'layers/video_frame_provider_client_impl.h',
247 'layers/video_layer.cc',
248 'layers/video_layer.h',
249 'layers/video_layer_impl.cc',
250 'layers/video_layer_impl.h',
251 'output/begin_frame_args.cc',
252 'output/begin_frame_args.h',
253 'output/bsp_tree.cc',
255 'output/bsp_walk_action.cc',
256 'output/bsp_walk_action.h',
257 'output/compositor_frame.cc',
258 'output/compositor_frame.h',
259 'output/compositor_frame_ack.cc',
260 'output/compositor_frame_ack.h',
261 'output/compositor_frame_metadata.cc',
262 'output/compositor_frame_metadata.h',
263 'output/context_provider.cc',
264 'output/context_provider.h',
265 'output/copy_output_request.cc',
266 'output/copy_output_request.h',
267 'output/copy_output_result.cc',
268 'output/copy_output_result.h',
269 'output/delegated_frame_data.h',
270 'output/delegated_frame_data.cc',
271 'output/delegating_renderer.cc',
272 'output/delegating_renderer.h',
273 'output/direct_renderer.cc',
274 'output/direct_renderer.h',
275 'output/filter_operation.cc',
276 'output/filter_operation.h',
277 'output/filter_operations.cc',
278 'output/filter_operations.h',
279 'output/geometry_binding.cc',
280 'output/geometry_binding.h',
281 'output/gl_frame_data.h',
282 'output/gl_frame_data.cc',
283 'output/gl_renderer.cc',
284 'output/gl_renderer.h',
285 'output/gl_renderer_draw_cache.cc',
286 'output/gl_renderer_draw_cache.h',
287 'output/managed_memory_policy.cc',
288 'output/managed_memory_policy.h',
289 'output/output_surface.cc',
290 'output/output_surface.h',
291 'output/output_surface_client.h',
292 'output/overlay_candidate.cc',
293 'output/overlay_candidate.h',
294 'output/overlay_candidate_validator.h',
295 'output/overlay_processor.cc',
296 'output/overlay_processor.h',
297 'output/overlay_strategy_single_on_top.cc',
298 'output/overlay_strategy_single_on_top.h',
299 'output/program_binding.cc',
300 'output/program_binding.h',
301 'output/render_surface_filters.cc',
302 'output/render_surface_filters.h',
303 'output/renderer.cc',
305 'output/renderer_settings.cc',
306 'output/renderer_settings.h',
309 'output/software_frame_data.cc',
310 'output/software_frame_data.h',
311 'output/software_output_device.cc',
312 'output/software_output_device.h',
313 'output/software_renderer.cc',
314 'output/software_renderer.h',
315 'output/viewport_selection_bound.cc',
316 'output/viewport_selection_bound.h',
317 'output/vsync_parameter_observer.h',
318 'quads/checkerboard_draw_quad.cc',
319 'quads/checkerboard_draw_quad.h',
320 'quads/content_draw_quad_base.cc',
321 'quads/content_draw_quad_base.h',
322 'quads/debug_border_draw_quad.cc',
323 'quads/debug_border_draw_quad.h',
324 'quads/draw_polygon.cc',
325 'quads/draw_polygon.h',
326 'quads/draw_quad.cc',
328 'quads/io_surface_draw_quad.cc',
329 'quads/io_surface_draw_quad.h',
330 'quads/largest_draw_quad.h',
331 'quads/largest_draw_quad.cc',
332 'quads/list_container.cc',
333 'quads/list_container.h',
334 'quads/picture_draw_quad.cc',
335 'quads/picture_draw_quad.h',
336 'quads/render_pass.cc',
337 'quads/render_pass.h',
338 'quads/render_pass_draw_quad.cc',
339 'quads/render_pass_draw_quad.h',
340 'quads/render_pass_id.cc',
341 'quads/render_pass_id.h',
342 'quads/shared_quad_state.cc',
343 'quads/shared_quad_state.h',
344 'quads/solid_color_draw_quad.cc',
345 'quads/solid_color_draw_quad.h',
346 'quads/stream_video_draw_quad.cc',
347 'quads/stream_video_draw_quad.h',
348 'quads/surface_draw_quad.cc',
349 'quads/surface_draw_quad.h',
350 'quads/texture_draw_quad.cc',
351 'quads/texture_draw_quad.h',
352 'quads/tile_draw_quad.cc',
353 'quads/tile_draw_quad.h',
354 'quads/yuv_video_draw_quad.cc',
355 'quads/yuv_video_draw_quad.h',
356 'resources/bitmap_content_layer_updater.cc',
357 'resources/bitmap_content_layer_updater.h',
358 'resources/bitmap_tile_task_worker_pool.cc',
359 'resources/bitmap_tile_task_worker_pool.h',
360 'resources/bitmap_skpicture_content_layer_updater.cc',
361 'resources/bitmap_skpicture_content_layer_updater.h',
362 'resources/clip_display_item.cc',
363 'resources/clip_display_item.h',
364 'resources/content_layer_updater.cc',
365 'resources/content_layer_updater.h',
366 'resources/display_item.cc',
367 'resources/display_item.h',
368 'resources/display_item_list.cc',
369 'resources/display_item_list.h',
370 'resources/display_list_raster_source.cc',
371 'resources/display_list_raster_source.h',
372 'resources/display_list_recording_source.cc',
373 'resources/display_list_recording_source.h',
374 'resources/drawing_display_item.cc',
375 'resources/drawing_display_item.h',
376 'resources/eviction_tile_priority_queue.cc',
377 'resources/eviction_tile_priority_queue.h',
378 'resources/filter_display_item.cc',
379 'resources/filter_display_item.h',
380 'resources/gpu_tile_task_worker_pool.cc',
381 'resources/gpu_tile_task_worker_pool.h',
382 'resources/image_layer_updater.cc',
383 'resources/image_layer_updater.h',
384 'resources/layer_painter.h',
385 'resources/layer_quad.cc',
386 'resources/layer_quad.h',
387 'resources/layer_tiling_data.cc',
388 'resources/layer_tiling_data.h',
389 'resources/layer_updater.cc',
390 'resources/layer_updater.h',
391 'resources/managed_tile_state.cc',
392 'resources/managed_tile_state.h',
393 'resources/memory_history.cc',
394 'resources/memory_history.h',
395 'resources/one_copy_tile_task_worker_pool.cc',
396 'resources/one_copy_tile_task_worker_pool.h',
397 'resources/picture.cc',
398 'resources/picture.h',
399 'resources/picture_layer_tiling.cc',
400 'resources/picture_layer_tiling.h',
401 'resources/picture_layer_tiling_set.cc',
402 'resources/picture_layer_tiling_set.h',
403 'resources/picture_pile.cc',
404 'resources/picture_pile.h',
405 'resources/picture_pile_impl.cc',
406 'resources/picture_pile_impl.h',
407 'resources/pixel_buffer_tile_task_worker_pool.cc',
408 'resources/pixel_buffer_tile_task_worker_pool.h',
409 'resources/platform_color.h',
410 'resources/prioritized_resource.cc',
411 'resources/prioritized_resource.h',
412 'resources/prioritized_resource_manager.cc',
413 'resources/prioritized_resource_manager.h',
414 'resources/priority_calculator.cc',
415 'resources/priority_calculator.h',
416 'resources/raster_buffer.cc',
417 'resources/raster_buffer.h',
418 'resources/raster_source.h',
419 'resources/raster_source_helper.cc',
420 'resources/raster_source_helper.h',
421 'resources/raster_tile_priority_queue.cc',
422 'resources/raster_tile_priority_queue.h',
423 'resources/tile_task_worker_pool.cc',
424 'resources/tile_task_worker_pool.h',
425 'resources/tile_task_runner.cc',
426 'resources/tile_task_runner.h',
427 'resources/recording_source.h',
428 'resources/release_callback.h',
429 'resources/resource.cc',
430 'resources/resource.h',
431 'resources/resource_format.cc',
432 'resources/resource_format.h',
433 'resources/resource_pool.cc',
434 'resources/resource_pool.h',
435 'resources/resource_provider.cc',
436 'resources/resource_provider.h',
437 'resources/resource_update.cc',
438 'resources/resource_update.h',
439 'resources/resource_update_controller.cc',
440 'resources/resource_update_controller.h',
441 'resources/resource_update_queue.cc',
442 'resources/resource_update_queue.h',
443 'resources/returned_resource.h',
444 'resources/scoped_gpu_raster.cc',
445 'resources/scoped_gpu_raster.h',
446 'resources/scoped_resource.cc',
447 'resources/scoped_resource.h',
448 'resources/scoped_ui_resource.cc',
449 'resources/scoped_ui_resource.h',
450 'resources/shared_bitmap.cc',
451 'resources/shared_bitmap.h',
452 'resources/shared_bitmap_manager.h',
453 'resources/single_release_callback.cc',
454 'resources/single_release_callback.h',
455 'resources/single_release_callback_impl.cc',
456 'resources/single_release_callback_impl.h',
457 'resources/skpicture_content_layer_updater.cc',
458 'resources/skpicture_content_layer_updater.h',
459 'resources/task_graph_runner.cc',
460 'resources/task_graph_runner.h',
461 'resources/texture_mailbox.cc',
462 'resources/texture_mailbox.h',
463 'resources/texture_mailbox_deleter.cc',
464 'resources/texture_mailbox_deleter.h',
465 'resources/texture_uploader.cc',
466 'resources/texture_uploader.h',
469 'resources/tile_manager.cc',
470 'resources/tile_manager.h',
471 'resources/tile_priority.cc',
472 'resources/tile_priority.h',
473 'resources/tiling_set_eviction_queue.cc',
474 'resources/tiling_set_eviction_queue.h',
475 'resources/tiling_set_raster_queue.cc',
476 'resources/tiling_set_raster_queue.h',
477 'resources/transferable_resource.cc',
478 'resources/transferable_resource.h',
479 'resources/transform_display_item.cc',
480 'resources/transform_display_item.h',
481 'resources/transparency_display_item.cc',
482 'resources/transparency_display_item.h',
483 'resources/ui_resource_bitmap.cc',
484 'resources/ui_resource_bitmap.h',
485 'resources/ui_resource_client.h',
486 'resources/ui_resource_request.cc',
487 'resources/ui_resource_request.h',
488 'resources/video_resource_updater.cc',
489 'resources/video_resource_updater.h',
490 'resources/zero_copy_tile_task_worker_pool.cc',
491 'resources/zero_copy_tile_task_worker_pool.h',
492 'scheduler/begin_frame_source.cc',
493 'scheduler/begin_frame_source.h',
494 'scheduler/delay_based_time_source.cc',
495 'scheduler/delay_based_time_source.h',
496 'scheduler/draw_result.h',
497 'scheduler/scheduler.cc',
498 'scheduler/scheduler.h',
499 'scheduler/scheduler_settings.cc',
500 'scheduler/scheduler_settings.h',
501 'scheduler/scheduler_state_machine.cc',
502 'scheduler/scheduler_state_machine.h',
503 'trees/blocking_task_runner.cc',
504 'trees/blocking_task_runner.h',
505 'trees/damage_tracker.cc',
506 'trees/damage_tracker.h',
507 'trees/layer_sorter.cc',
508 'trees/layer_sorter.h',
509 'trees/layer_tree_host.cc',
510 'trees/layer_tree_host.h',
511 'trees/layer_tree_host_client.h',
512 'trees/layer_tree_host_common.cc',
513 'trees/layer_tree_host_common.h',
514 'trees/layer_tree_host_impl.cc',
515 'trees/layer_tree_host_impl.h',
516 'trees/layer_tree_impl.cc',
517 'trees/layer_tree_impl.h',
518 'trees/layer_tree_settings.cc',
519 'trees/layer_tree_settings.h',
520 'trees/occlusion.cc',
522 'trees/occlusion_tracker.cc',
523 'trees/occlusion_tracker.h',
526 'trees/proxy_timing_history.cc',
527 'trees/proxy_timing_history.h',
528 'trees/scoped_abort_remaining_swap_promises.h',
529 'trees/single_thread_proxy.cc',
530 'trees/single_thread_proxy.h',
531 'trees/thread_proxy.cc',
532 'trees/thread_proxy.h',
533 'trees/tree_synchronizer.cc',
534 'trees/tree_synchronizer.h',
537 '../build/android/increase_size_for_speed.gypi',
539 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
540 'msvs_disabled_warnings': [ 4267, ],
543 # GN version: //cc/surfaces
544 'target_name': 'cc_surfaces',
545 'type': '<(component)',
548 '<(DEPTH)/base/base.gyp:base',
549 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
550 '<(DEPTH)/skia/skia.gyp:skia',
551 '<(DEPTH)/ui/events/events.gyp:events_base',
552 '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
553 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
556 'CC_SURFACES_IMPLEMENTATION=1',
559 # Note: file list duplicated in GN build.
560 'surfaces/display.cc',
561 'surfaces/display.h',
562 'surfaces/display_client.h',
563 'surfaces/surface.cc',
564 'surfaces/surface.h',
565 'surfaces/surface_aggregator.cc',
566 'surfaces/surface_aggregator.h',
567 'surfaces/surface_factory.cc',
568 'surfaces/surface_factory.h',
569 'surfaces/surface_factory_client.h',
570 'surfaces/surface_id.h',
571 'surfaces/surface_id_allocator.cc',
572 'surfaces/surface_id_allocator.h',
573 'surfaces/surface_manager.cc',
574 'surfaces/surface_manager.h',
575 'surfaces/surface_resource_holder.cc',
576 'surfaces/surface_resource_holder.h',
577 'surfaces/surfaces_export.h',
580 '../build/android/increase_size_for_speed.gypi',