blob: 2f33ae75cef8107e163b0cb4f6f86d6100007290 [file] [log] [blame]
Avi Drissman3f7a9d82022-09-08 20:55:421# Copyright 2014 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
[email protected]d05751a22014-05-29 20:54:243# found in the LICENSE file.
Nico Webera86070ad2019-10-17 11:47:394import("//build/config/sanitizers/sanitizers.gni")
Jonathan Backer316ac192019-02-13 22:49:065import("//gpu/vulkan/features.gni")
Sean Gilhulye8287932020-04-20 15:42:556import("//skia/features.gni")
Peilin Wang95929bc02024-06-06 17:13:467import("//third_party/jni_zero/jni_zero.gni")
Saifuddin Hitawala8311d5032023-08-18 14:58:318import("//ui/gl/features.gni")
[email protected]d05751a22014-05-29 20:54:249
loyso3dd20892016-11-22 07:11:0110import("//cc/cc.gni")
qsrfb5251d12015-01-21 15:57:2211
Dave Tapuskafc4adbae2020-12-02 22:08:5912if (is_android) {
13 import("//build/config/android/rules.gni")
14}
15
loyso3dd20892016-11-22 07:11:0116cc_component("cc") {
[email protected]d05751a22014-05-29 20:54:2417 sources = [
chrishtr82b5d9502017-03-20 18:25:3318 "benchmarks/benchmark_instrumentation.cc",
19 "benchmarks/benchmark_instrumentation.h",
20 "benchmarks/invalidation_benchmark.cc",
21 "benchmarks/invalidation_benchmark.h",
22 "benchmarks/micro_benchmark.cc",
23 "benchmarks/micro_benchmark.h",
24 "benchmarks/micro_benchmark_controller.cc",
25 "benchmarks/micro_benchmark_controller.h",
26 "benchmarks/micro_benchmark_controller_impl.cc",
27 "benchmarks/micro_benchmark_controller_impl.h",
28 "benchmarks/micro_benchmark_impl.cc",
29 "benchmarks/micro_benchmark_impl.h",
30 "benchmarks/rasterize_and_record_benchmark.cc",
31 "benchmarks/rasterize_and_record_benchmark.h",
32 "benchmarks/rasterize_and_record_benchmark_impl.cc",
33 "benchmarks/rasterize_and_record_benchmark_impl.h",
34 "benchmarks/unittest_only_benchmark.cc",
35 "benchmarks/unittest_only_benchmark.h",
36 "benchmarks/unittest_only_benchmark_impl.cc",
37 "benchmarks/unittest_only_benchmark_impl.h",
Sahir Vellani5adb2682020-10-09 16:33:2838 "input/actively_scrolling_type.h",
mdjones2ee41afd2016-10-27 16:50:2039 "input/browser_controls_offset_manager.cc",
40 "input/browser_controls_offset_manager.h",
41 "input/browser_controls_offset_manager_client.h",
Peilin Wang1187e4e82025-02-10 08:53:2942 "input/browser_controls_offset_tag_modifications.h",
43 "input/browser_controls_offset_tags.h",
Dave Tapuskafc4adbae2020-12-02 22:08:5944 "input/browser_controls_state.h",
David Bokan8d1ed9a2020-08-19 13:22:4345 "input/compositor_input_interfaces.h",
Xianzhu Wang0e6d4432023-08-10 22:40:4846 "input/hit_test_opaqueness.cc",
47 "input/hit_test_opaqueness.h",
Steve Kobes582e9e4f2022-07-18 16:08:1248 "input/input_handler.cc",
[email protected]d05751a22014-05-29 20:54:2449 "input/input_handler.h",
[email protected]b2ba2d42014-07-03 18:14:5050 "input/layer_selection_bound.cc",
51 "input/layer_selection_bound.h",
Xianzhu Wang81f6c4d72018-05-17 19:23:5452 "input/main_thread_scrolling_reason.cc",
wychen800b09972016-11-03 09:00:2053 "input/main_thread_scrolling_reason.h",
Sandra Sun2288e8532017-11-30 22:50:1654 "input/overscroll_behavior.h",
satorux457770e2015-02-18 18:33:3955 "input/page_scale_animation.cc",
56 "input/page_scale_animation.h",
ccameron4163cc352014-11-13 19:06:3657 "input/scroll_elasticity_helper.cc",
58 "input/scroll_elasticity_helper.h",
Sandra Sun0711bba2017-12-20 05:12:2959 "input/scroll_snap_data.cc",
60 "input/scroll_snap_data.h",
tdresserd9e201472015-07-31 13:15:0761 "input/scroll_state.cc",
62 "input/scroll_state.h",
tdresser99c9ff52015-12-14 15:47:0963 "input/scroll_state_data.cc",
64 "input/scroll_state_data.h",
Joao Victor Almeida4d2469f2020-06-19 03:30:1665 "input/scroll_utils.cc",
66 "input/scroll_utils.h",
67 "input/scrollbar.h",
loyso455b4f602016-02-24 02:59:4268 "input/scrollbar_animation_controller.cc",
69 "input/scrollbar_animation_controller.h",
Rahul Arakeri5935a302019-04-18 00:04:4470 "input/scrollbar_controller.cc",
71 "input/scrollbar_controller.h",
chaopeng2c3e1702017-01-27 04:46:0272 "input/single_scrollbar_animation_controller_thinning.cc",
73 "input/single_scrollbar_animation_controller_thinning.h",
Sandra Sunaa703712018-05-17 14:47:1474 "input/snap_fling_controller.cc",
75 "input/snap_fling_controller.h",
76 "input/snap_fling_curve.cc",
77 "input/snap_fling_curve.h",
Sandra Sune806ef72018-10-26 22:32:1578 "input/snap_selection_strategy.cc",
79 "input/snap_selection_strategy.h",
xidachenfa0199e72017-05-11 11:34:2680 "input/touch_action.h",
Vladimir Levin5840efe2025-02-13 03:33:3481 "layers/append_quads_context.cc",
Vladimir Levinef485ce2025-02-07 02:23:1682 "layers/append_quads_context.h",
fsamuela4f81d1f2017-04-07 18:32:3883 "layers/append_quads_data.cc",
[email protected]d05751a22014-05-29 20:54:2484 "layers/append_quads_data.h",
[email protected]d05751a22014-05-29 20:54:2485 "layers/content_layer_client.h",
Fady Samuelb46e0ef2018-01-30 04:48:4186 "layers/deadline_policy.cc",
87 "layers/deadline_policy.h",
Bo Liu96368332017-06-15 19:52:4388 "layers/draw_mode.h",
ennefffb119c2015-08-29 09:17:3089 "layers/draw_properties.cc",
[email protected]d05751a22014-05-29 20:54:2490 "layers/draw_properties.h",
ajuma956219582017-04-04 19:58:1491 "layers/effect_tree_layer_list_iterator.cc",
92 "layers/effect_tree_layer_list_iterator.h",
[email protected]d05751a22014-05-29 20:54:2493 "layers/heads_up_display_layer.cc",
94 "layers/heads_up_display_layer.h",
95 "layers/heads_up_display_layer_impl.cc",
96 "layers/heads_up_display_layer_impl.h",
[email protected]d05751a22014-05-29 20:54:2497 "layers/layer.cc",
98 "layers/layer.h",
vollick83fbfc82016-03-22 18:33:2799 "layers/layer_collections.h",
[email protected]d05751a22014-05-29 20:54:24100 "layers/layer_impl.cc",
101 "layers/layer_impl.h",
vollick44d1c1f2016-03-02 20:59:43102 "layers/layer_list_iterator.cc",
103 "layers/layer_list_iterator.h",
Mohsen Izadi1bcbf252019-06-27 01:26:29104 "layers/mirror_layer.cc",
105 "layers/mirror_layer.h",
106 "layers/mirror_layer_impl.cc",
107 "layers/mirror_layer_impl.h",
danakj83d0eb4f2017-09-19 17:31:58108 "layers/nine_patch_generator.cc",
109 "layers/nine_patch_generator.h",
[email protected]d05751a22014-05-29 20:54:24110 "layers/nine_patch_layer.cc",
111 "layers/nine_patch_layer.h",
112 "layers/nine_patch_layer_impl.cc",
113 "layers/nine_patch_layer_impl.h",
Xianzhu Wanga347461412024-02-20 22:46:08114 "layers/nine_patch_thumb_scrollbar_layer.cc",
115 "layers/nine_patch_thumb_scrollbar_layer.h",
116 "layers/nine_patch_thumb_scrollbar_layer_impl.cc",
117 "layers/nine_patch_thumb_scrollbar_layer_impl.h",
[email protected]d05751a22014-05-29 20:54:24118 "layers/painted_scrollbar_layer.cc",
119 "layers/painted_scrollbar_layer.h",
120 "layers/painted_scrollbar_layer_impl.cc",
121 "layers/painted_scrollbar_layer_impl.h",
[email protected]d05751a22014-05-29 20:54:24122 "layers/picture_layer.cc",
123 "layers/picture_layer.h",
124 "layers/picture_layer_impl.cc",
125 "layers/picture_layer_impl.h",
chrishtrac41ff92017-03-17 05:07:30126 "layers/recording_source.cc",
127 "layers/recording_source.h",
[email protected]d05751a22014-05-29 20:54:24128 "layers/render_surface_impl.cc",
129 "layers/render_surface_impl.h",
Xianzhu Wang3cafad22024-08-12 22:13:05130 "layers/scroll_hit_test_rect.h",
Xianzhu Wang6a2e9d02019-10-09 17:53:49131 "layers/scrollbar_layer_base.cc",
132 "layers/scrollbar_layer_base.h",
[email protected]d05751a22014-05-29 20:54:24133 "layers/scrollbar_layer_impl_base.cc",
134 "layers/scrollbar_layer_impl_base.h",
[email protected]d05751a22014-05-29 20:54:24135 "layers/solid_color_layer.cc",
136 "layers/solid_color_layer.h",
137 "layers/solid_color_layer_impl.cc",
138 "layers/solid_color_layer_impl.h",
139 "layers/solid_color_scrollbar_layer.cc",
140 "layers/solid_color_scrollbar_layer.h",
141 "layers/solid_color_scrollbar_layer_impl.cc",
142 "layers/solid_color_scrollbar_layer_impl.h",
143 "layers/surface_layer.cc",
144 "layers/surface_layer.h",
145 "layers/surface_layer_impl.cc",
146 "layers/surface_layer_impl.h",
147 "layers/texture_layer.cc",
148 "layers/texture_layer.h",
149 "layers/texture_layer_client.h",
150 "layers/texture_layer_impl.cc",
151 "layers/texture_layer_impl.h",
Ken Rockot5e519672024-08-19 20:02:14152 "layers/tile_display_layer_impl.cc",
153 "layers/tile_display_layer_impl.h",
Prashant Nevase52c3dc612019-06-20 04:47:51154 "layers/tile_size_calculator.cc",
155 "layers/tile_size_calculator.h",
Hayley Ferrd9ee3a72017-06-16 14:16:09156 "layers/touch_action_region.cc",
157 "layers/touch_action_region.h",
[email protected]d05751a22014-05-29 20:54:24158 "layers/ui_resource_layer.cc",
159 "layers/ui_resource_layer.h",
160 "layers/ui_resource_layer_impl.cc",
161 "layers/ui_resource_layer_impl.h",
162 "layers/video_frame_provider.h",
163 "layers/video_frame_provider_client_impl.cc",
164 "layers/video_frame_provider_client_impl.h",
165 "layers/video_layer.cc",
166 "layers/video_layer.h",
167 "layers/video_layer_impl.cc",
168 "layers/video_layer_impl.h",
Vladimir Levin501455e2022-11-04 20:04:54169 "layers/view_transition_content_layer.cc",
170 "layers/view_transition_content_layer.h",
171 "layers/view_transition_content_layer_impl.cc",
172 "layers/view_transition_content_layer_impl.h",
bokanaa2748312015-03-26 00:10:37173 "layers/viewport.cc",
174 "layers/viewport.h",
Joao Victor Almeida917ce172020-07-07 20:56:12175 "metrics/average_lag_tracker.cc",
176 "metrics/average_lag_tracker.h",
177 "metrics/average_lag_tracking_manager.cc",
178 "metrics/average_lag_tracking_manager.h",
Stephen Chenney329976d2019-09-27 16:47:35179 "metrics/begin_main_frame_metrics.cc",
180 "metrics/begin_main_frame_metrics.h",
behdad5fb48ea22019-08-12 18:15:36181 "metrics/compositor_frame_reporter.cc",
182 "metrics/compositor_frame_reporter.h",
183 "metrics/compositor_frame_reporting_controller.cc",
184 "metrics/compositor_frame_reporting_controller.h",
185 "metrics/compositor_timing_history.cc",
186 "metrics/compositor_timing_history.h",
Xiyuan Xia81e9e3f2022-05-05 17:26:08187 "metrics/custom_metrics_recorder.cc",
188 "metrics/custom_metrics_recorder.h",
Xida Chene5a9b4e02020-06-23 00:35:35189 "metrics/dropped_frame_counter.cc",
190 "metrics/dropped_frame_counter.h",
Mohsen Izadid32e777a2022-02-15 22:23:42191 "metrics/event_latency_tracing_recorder.cc",
192 "metrics/event_latency_tracing_recorder.h",
Mohsen Izadi54b3b332022-05-25 16:16:40193 "metrics/event_latency_tracker.cc",
194 "metrics/event_latency_tracker.h",
Mohsen Izadia52ab642020-03-03 05:21:27195 "metrics/event_metrics.cc",
196 "metrics/event_metrics.h",
197 "metrics/events_metrics_manager.cc",
198 "metrics/events_metrics_manager.h",
Sadrul Habib Chowdhury7fadd1a2021-12-02 20:48:32199 "metrics/frame_info.cc",
200 "metrics/frame_info.h",
Xida Chen1bcc8d12020-04-20 16:17:26201 "metrics/frame_sequence_metrics.cc",
202 "metrics/frame_sequence_metrics.h",
behdad5fb48ea22019-08-12 18:15:36203 "metrics/frame_sequence_tracker.cc",
204 "metrics/frame_sequence_tracker.h",
Xida Chen1bcc8d12020-04-20 16:17:26205 "metrics/frame_sequence_tracker_collection.cc",
206 "metrics/frame_sequence_tracker_collection.h",
behdada140f2d2020-11-09 23:26:57207 "metrics/frame_sorter.cc",
208 "metrics/frame_sorter.h",
Stephen Chenney1850c942019-12-20 20:47:40209 "metrics/latency_ukm_reporter.cc",
210 "metrics/latency_ukm_reporter.h",
Xianzhu Wang6af35cf2020-04-20 18:34:06211 "metrics/lcd_text_metrics_reporter.cc",
212 "metrics/lcd_text_metrics_reporter.h",
Omar Elmekkawy5dda5e72023-04-05 11:16:10213 "metrics/predictor_jank_tracker.cc",
214 "metrics/predictor_jank_tracker.h",
Kartar Singh3a4d5ff32023-05-18 17:14:29215 "metrics/scroll_jank_dropped_frame_tracker.cc",
216 "metrics/scroll_jank_dropped_frame_tracker.h",
Harkiran Bolariab64c1822023-12-20 11:14:10217 "metrics/scroll_jank_ukm_reporter.cc",
218 "metrics/scroll_jank_ukm_reporter.h",
Weiliang Chen7039c1f2021-01-28 18:37:15219 "metrics/shared_metrics_buffer.h",
Zoraiz Naeem98a2b0f2024-12-19 01:02:35220 "metrics/submit_info.cc",
Jonathan Ross95069352024-05-15 13:58:02221 "metrics/submit_info.h",
Sadrul Habib Chowdhury941ebc912020-08-20 04:01:43222 "metrics/total_frame_counter.cc",
223 "metrics/total_frame_counter.h",
Jonathan Ross25bf5b02024-07-03 16:31:30224 "metrics/ukm_manager.cc",
225 "metrics/ukm_manager.h",
behdaddbd7d252021-12-08 20:13:53226 "metrics/ukm_smoothness_data.cc",
Sadrul Habib Chowdhury403923e2020-10-01 09:53:16227 "metrics/ukm_smoothness_data.h",
Eugene Zemtsovbea39392020-03-17 01:44:22228 "metrics/video_playback_roughness_reporter.cc",
229 "metrics/video_playback_roughness_reporter.h",
prashant.nb4d4f492016-04-29 12:51:28230 "raster/bitmap_raster_buffer_provider.cc",
231 "raster/bitmap_raster_buffer_provider.h",
Ken Rockot2ab918c72023-04-13 17:53:17232 "raster/categorized_worker_pool.cc",
233 "raster/categorized_worker_pool.h",
prashant.nb4d4f492016-04-29 12:51:28234 "raster/gpu_raster_buffer_provider.cc",
235 "raster/gpu_raster_buffer_provider.h",
Xianzhu Wang3e5660a82020-04-16 18:13:25236 "raster/lcd_text_disallowed_reason.cc",
237 "raster/lcd_text_disallowed_reason.h",
prashant.nb4d4f492016-04-29 12:51:28238 "raster/one_copy_raster_buffer_provider.cc",
239 "raster/one_copy_raster_buffer_provider.h",
Xida Chenb28759182019-01-16 04:53:24240 "raster/paint_worklet_image_provider.cc",
241 "raster/paint_worklet_image_provider.h",
Khushald880a1512017-07-26 23:48:04242 "raster/playback_image_provider.cc",
243 "raster/playback_image_provider.h",
danakj920156852015-05-18 20:22:29244 "raster/raster_buffer.cc",
245 "raster/raster_buffer.h",
prashant.nb4d4f492016-04-29 12:51:28246 "raster/raster_buffer_provider.cc",
247 "raster/raster_buffer_provider.h",
Chris Blumee4d90f2cf2020-11-20 03:50:57248 "raster/raster_query_queue.cc",
249 "raster/raster_query_queue.h",
chrishtrac41ff92017-03-17 05:07:30250 "raster/raster_source.cc",
251 "raster/raster_source.h",
Khushal3cfc77f2018-08-15 07:19:58252 "raster/scoped_grcontext_access.h",
ericrk4e3aa5a2015-12-01 03:53:56253 "raster/single_thread_task_graph_runner.cc",
254 "raster/single_thread_task_graph_runner.h",
prashant.na9dd9ef2016-04-08 19:57:10255 "raster/staging_buffer_pool.cc",
256 "raster/staging_buffer_pool.h",
ericrk4e3aa5a2015-12-01 03:53:56257 "raster/synchronous_task_graph_runner.cc",
258 "raster/synchronous_task_graph_runner.h",
prashant.n49b3e64652016-04-19 07:04:49259 "raster/task.cc",
260 "raster/task.h",
ericrk374dee72016-01-13 03:38:05261 "raster/task_category.h",
danakj920156852015-05-18 20:22:29262 "raster/task_graph_runner.h",
ericrk4e3aa5a2015-12-01 03:53:56263 "raster/task_graph_work_queue.cc",
264 "raster/task_graph_work_queue.h",
prashant.n6cb1bb82016-04-20 05:15:58265 "raster/tile_task.cc",
266 "raster/tile_task.h",
prashant.nb4d4f492016-04-29 12:51:28267 "raster/zero_copy_raster_buffer_provider.cc",
268 "raster/zero_copy_raster_buffer_provider.h",
[email protected]d05751a22014-05-29 20:54:24269 "resources/memory_history.cc",
270 "resources/memory_history.h",
[email protected]d05751a22014-05-29 20:54:24271 "resources/resource_pool.cc",
272 "resources/resource_pool.h",
[email protected]d05751a22014-05-29 20:54:24273 "resources/scoped_ui_resource.cc",
274 "resources/scoped_ui_resource.h",
[email protected]d05751a22014-05-29 20:54:24275 "resources/ui_resource_bitmap.cc",
276 "resources/ui_resource_bitmap.h",
277 "resources/ui_resource_client.h",
khushalsagar8ec07402016-09-10 03:13:19278 "resources/ui_resource_manager.cc",
279 "resources/ui_resource_manager.h",
[email protected]d05751a22014-05-29 20:54:24280 "resources/ui_resource_request.cc",
281 "resources/ui_resource_request.h",
mithro0bdb49d2015-05-27 13:08:01282 "scheduler/begin_frame_tracker.cc",
283 "scheduler/begin_frame_tracker.h",
mithrof7a21502014-12-17 03:24:48284 "scheduler/commit_earlyout_reason.h",
[email protected]d05751a22014-05-29 20:54:24285 "scheduler/draw_result.h",
286 "scheduler/scheduler.cc",
287 "scheduler/scheduler.h",
288 "scheduler/scheduler_settings.cc",
289 "scheduler/scheduler_settings.h",
290 "scheduler/scheduler_state_machine.cc",
291 "scheduler/scheduler_state_machine.h",
sunnyps7d073dc2015-04-16 23:29:12292 "scheduler/video_frame_controller.h",
khushalsagard3b8827d2017-02-18 18:42:54293 "tiles/checker_image_tracker.cc",
294 "tiles/checker_image_tracker.h",
vmpstra6b30162017-01-12 20:23:03295 "tiles/decoded_image_tracker.cc",
296 "tiles/decoded_image_tracker.h",
danakj920156852015-05-18 20:22:29297 "tiles/eviction_tile_priority_queue.cc",
298 "tiles/eviction_tile_priority_queue.h",
chrishtr82b5d9502017-03-20 18:25:33299 "tiles/frame_viewer_instrumentation.cc",
300 "tiles/frame_viewer_instrumentation.h",
vmpstr70289fb62016-12-01 02:33:05301 "tiles/gpu_image_decode_cache.cc",
302 "tiles/gpu_image_decode_cache.h",
vmpstre556bda62016-12-02 01:51:40303 "tiles/image_controller.cc",
304 "tiles/image_controller.h",
Khushal9e40c592017-07-17 20:22:13305 "tiles/image_decode_cache.cc",
vmpstr70289fb62016-12-01 02:33:05306 "tiles/image_decode_cache.h",
Reza.Zakerinasab9afecdf2018-09-25 11:26:26307 "tiles/image_decode_cache_utils.cc",
308 "tiles/image_decode_cache_utils.h",
ericrkc7ebaa12016-06-09 21:05:55309 "tiles/mipmap_util.cc",
310 "tiles/mipmap_util.h",
danakj920156852015-05-18 20:22:29311 "tiles/picture_layer_tiling.cc",
312 "tiles/picture_layer_tiling.h",
313 "tiles/picture_layer_tiling_set.cc",
314 "tiles/picture_layer_tiling_set.h",
315 "tiles/prioritized_tile.cc",
316 "tiles/prioritized_tile.h",
Prashant Nevase61bad242020-10-14 20:55:56317 "tiles/raster_dark_mode_filter.h",
danakj920156852015-05-18 20:22:29318 "tiles/raster_tile_priority_queue.cc",
319 "tiles/raster_tile_priority_queue.h",
320 "tiles/raster_tile_priority_queue_all.cc",
321 "tiles/raster_tile_priority_queue_all.h",
322 "tiles/raster_tile_priority_queue_required.cc",
323 "tiles/raster_tile_priority_queue_required.h",
vmpstr70289fb62016-12-01 02:33:05324 "tiles/software_image_decode_cache.cc",
325 "tiles/software_image_decode_cache.h",
Vladimir Levin0342a7912018-01-03 19:12:55326 "tiles/software_image_decode_cache_utils.cc",
327 "tiles/software_image_decode_cache_utils.h",
danakj920156852015-05-18 20:22:29328 "tiles/tile.cc",
329 "tiles/tile.h",
330 "tiles/tile_draw_info.cc",
331 "tiles/tile_draw_info.h",
Ken Rockot60d4ba52024-08-12 20:42:32332 "tiles/tile_index.h",
danakj920156852015-05-18 20:22:29333 "tiles/tile_manager.cc",
334 "tiles/tile_manager.h",
Peter Kasting4183b37f2025-01-31 19:53:42335 "tiles/tile_manager_client.h",
khushalsagard3b8827d2017-02-18 18:42:54336 "tiles/tile_manager_settings.h",
danakj920156852015-05-18 20:22:29337 "tiles/tile_priority.cc",
338 "tiles/tile_priority.h",
prashant.nb4d4f492016-04-29 12:51:28339 "tiles/tile_task_manager.cc",
340 "tiles/tile_task_manager.h",
Scott Violetce64db62022-02-18 00:26:53341 "tiles/tiles_with_resource_iterator.cc",
342 "tiles/tiles_with_resource_iterator.h",
Ken Rockot60d4ba52024-08-12 20:42:32343 "tiles/tiling_coverage_iterator.h",
Ken Rockot5ea64092024-08-12 23:35:27344 "tiles/tiling_internal.h",
345 "tiles/tiling_set_coverage_iterator.h",
danakj920156852015-05-18 20:22:29346 "tiles/tiling_set_eviction_queue.cc",
347 "tiles/tiling_set_eviction_queue.h",
348 "tiles/tiling_set_raster_queue_all.cc",
349 "tiles/tiling_set_raster_queue_all.h",
350 "tiles/tiling_set_raster_queue_required.cc",
351 "tiles/tiling_set_raster_queue_required.h",
Xida Chenc5cb8562019-08-14 22:41:56352 "trees/animated_paint_worklet_tracker.cc",
353 "trees/animated_paint_worklet_tracker.h",
Jordan Taylorfc0cdda02019-05-20 18:01:25354 "trees/animation_effect_timings.h",
Yi Gua5a3bb6c2018-06-01 22:16:07355 "trees/animation_options.h",
Alexander Timin151b56d2024-09-06 14:42:24356 "trees/begin_main_frame_trace_id.h",
Sinan Sahin92a360bc2019-12-05 19:20:45357 "trees/browser_controls_params.cc",
358 "trees/browser_controls_params.h",
trchendba8b1502016-07-08 09:47:01359 "trees/clip_node.cc",
360 "trees/clip_node.h",
Stefan Zager40f911d2021-10-28 21:30:21361 "trees/commit_state.cc",
362 "trees/commit_state.h",
David Bokanb37e1d9b2020-08-18 20:09:12363 "trees/compositor_commit_data.cc",
364 "trees/compositor_commit_data.h",
khushalsagar19458bd2015-12-08 02:19:01365 "trees/compositor_mode.h",
Bo Liue2740a12024-08-16 21:28:08366 "trees/damage_reason.h",
[email protected]d05751a22014-05-29 20:54:24367 "trees/damage_tracker.cc",
368 "trees/damage_tracker.h",
chrishtr82b5d9502017-03-20 18:25:33369 "trees/debug_rect_history.cc",
370 "trees/debug_rect_history.h",
vollick51ed1a22014-12-17 02:03:00371 "trees/draw_property_utils.cc",
372 "trees/draw_property_utils.h",
trchendba8b1502016-07-08 09:47:01373 "trees/effect_node.cc",
374 "trees/effect_node.h",
Khushal Sagar1d3fc722020-05-04 21:44:11375 "trees/frame_rate_estimator.cc",
376 "trees/frame_rate_estimator.h",
Khushalfdacdc92017-09-22 22:40:52377 "trees/image_animation_controller.cc",
378 "trees/image_animation_controller.h",
danakjba65a0912017-09-21 16:38:42379 "trees/latency_info_swap_promise.cc",
380 "trees/latency_info_swap_promise.h",
jamesrf313a212015-03-16 21:27:37381 "trees/latency_info_swap_promise_monitor.cc",
382 "trees/latency_info_swap_promise_monitor.h",
Ken Rockotc2e67812023-04-13 22:01:55383 "trees/layer_context.h",
danakjba65a0912017-09-21 16:38:42384 "trees/layer_tree_frame_sink.cc",
385 "trees/layer_tree_frame_sink.h",
386 "trees/layer_tree_frame_sink_client.h",
khushalsagare0e4486e2017-01-25 03:15:03387 "trees/layer_tree_host.cc",
[email protected]d05751a22014-05-29 20:54:24388 "trees/layer_tree_host.h",
Dave Tapuska862d9892024-02-14 22:07:48389 "trees/layer_tree_host_client.cc",
[email protected]d05751a22014-05-29 20:54:24390 "trees/layer_tree_host_client.h",
[email protected]d05751a22014-05-29 20:54:24391 "trees/layer_tree_host_impl.cc",
392 "trees/layer_tree_host_impl.h",
Peter Kasting4183b37f2025-01-31 19:53:42393 "trees/layer_tree_host_impl_client.h",
ccameron00e438cd2015-03-12 06:18:14394 "trees/layer_tree_host_single_thread_client.h",
[email protected]d05751a22014-05-29 20:54:24395 "trees/layer_tree_impl.cc",
396 "trees/layer_tree_impl.h",
Majid Valipoure9855f72017-10-20 02:08:58397 "trees/layer_tree_mutator.cc",
loyso720c7c552016-11-10 23:16:39398 "trees/layer_tree_mutator.h",
[email protected]d05751a22014-05-29 20:54:24399 "trees/layer_tree_settings.cc",
400 "trees/layer_tree_settings.h",
danakjba65a0912017-09-21 16:38:42401 "trees/managed_memory_policy.cc",
402 "trees/managed_memory_policy.h",
Liviu Tintafcfc3f922021-07-26 21:45:22403 "trees/mobile_optimized_viewport_util.cc",
404 "trees/mobile_optimized_viewport_util.h",
loyso6d6356e2016-11-02 23:41:08405 "trees/mutator_host.h",
loysobb93befc2015-07-03 00:19:50406 "trees/mutator_host_client.h",
vmpstrcdcb5f72014-09-11 00:58:37407 "trees/occlusion.cc",
408 "trees/occlusion.h",
[email protected]d05751a22014-05-29 20:54:24409 "trees/occlusion_tracker.cc",
410 "trees/occlusion_tracker.h",
Khushale12ee1d2021-07-15 21:13:48411 "trees/paint_holding_commit_trigger.cc",
Stephen Chenneya4125562019-05-29 23:59:15412 "trees/paint_holding_commit_trigger.h",
Khushale12ee1d2021-07-15 21:13:48413 "trees/paint_holding_reason.h",
Tom McKee3b4b22e22019-05-24 20:48:00414 "trees/presentation_time_callback_buffer.cc",
415 "trees/presentation_time_callback_buffer.h",
loysoab298a032016-11-15 23:42:43416 "trees/property_animation_state.cc",
417 "trees/property_animation_state.h",
Xianzhu Wangd5ad6f22024-02-01 20:32:51418 "trees/property_ids.h",
vollick51ed1a22014-12-17 02:03:00419 "trees/property_tree.cc",
420 "trees/property_tree.h",
421 "trees/property_tree_builder.cc",
422 "trees/property_tree_builder.h",
Dirk Prankec0baef82025-01-23 01:53:48423 "trees/property_tree_delegate.h",
424 "trees/property_tree_layer_list_delegate.cc",
425 "trees/property_tree_layer_list_delegate.h",
426 "trees/property_tree_layer_tree_delegate.cc",
427 "trees/property_tree_layer_tree_delegate.h",
[email protected]d05751a22014-05-29 20:54:24428 "trees/proxy.h",
khushalsagare3c9fa92015-10-28 02:08:29429 "trees/proxy_common.cc",
430 "trees/proxy_common.h",
khushalsagar0a226af2015-12-09 10:30:20431 "trees/proxy_impl.cc",
khushalsagar5d6eb982015-09-25 22:44:56432 "trees/proxy_impl.h",
khushalsagar0a226af2015-12-09 10:30:20433 "trees/proxy_main.cc",
khushalsagar5d6eb982015-09-25 22:44:56434 "trees/proxy_main.h",
kylechar58c09f72023-07-11 21:27:34435 "trees/raster_capabilities.cc",
sohanjg10ca51f2023-05-24 03:06:06436 "trees/raster_capabilities.h",
Maksim Sisov4c1ee8e2022-10-04 15:13:28437 "trees/raster_context_provider_wrapper.cc",
438 "trees/raster_context_provider_wrapper.h",
Jonathan89a3da22018-01-12 16:41:20439 "trees/render_frame_metadata.cc",
440 "trees/render_frame_metadata.h",
jonrossa2ff4f82018-02-16 17:27:46441 "trees/render_frame_metadata_observer.h",
[email protected]aeeedad2014-08-22 18:16:22442 "trees/scoped_abort_remaining_swap_promises.h",
trchendba8b1502016-07-08 09:47:01443 "trees/scroll_node.cc",
444 "trees/scroll_node.h",
[email protected]d05751a22014-05-29 20:54:24445 "trees/single_thread_proxy.cc",
446 "trees/single_thread_proxy.h",
Xianzhu Wang41319ab42019-08-28 01:06:36447 "trees/sticky_position_constraint.cc",
448 "trees/sticky_position_constraint.h",
danakjba65a0912017-09-21 16:38:42449 "trees/swap_promise.h",
khushalsagar8297ae992016-09-14 20:51:23450 "trees/swap_promise_manager.cc",
451 "trees/swap_promise_manager.h",
Ian Vollicka35501fa2017-10-16 19:32:21452 "trees/target_property.cc",
loysoab298a032016-11-15 23:42:43453 "trees/target_property.h",
khushalsagarb64b360d2015-10-21 19:25:16454 "trees/task_runner_provider.cc",
455 "trees/task_runner_provider.h",
yjliua98c7e432021-02-26 00:34:51456 "trees/throttle_decider.cc",
457 "trees/throttle_decider.h",
Alexander Timin151b56d2024-09-06 14:42:24458 "trees/trace_utils.cc",
459 "trees/trace_utils.h",
trchendba8b1502016-07-08 09:47:01460 "trees/transform_node.cc",
461 "trees/transform_node.h",
[email protected]d05751a22014-05-29 20:54:24462 "trees/tree_synchronizer.cc",
463 "trees/tree_synchronizer.h",
danakj4886cad2019-02-26 22:15:56464 "trees/viewport_layers.cc",
465 "trees/viewport_layers.h",
Stefan Zager40f911d2021-10-28 21:30:21466 "trees/viewport_property_ids.h",
Vladimir Levin501455e2022-11-04 20:04:54467 "view_transition/view_transition_request.cc",
468 "view_transition/view_transition_request.h",
[email protected]d05751a22014-05-29 20:54:24469 ]
470
Brett Wilsone53895272014-09-23 23:41:46471 public_deps = [
jamesrf313a212015-03-16 21:27:37472 "//cc/base",
Ken Rockotc376c96c2024-05-23 22:27:41473 "//cc/mojom:layer_type",
Khushal7865b5be2017-11-22 03:12:06474 "//cc/paint",
Fady Samuel555c8d12017-07-07 23:14:09475 "//components/viz/common",
Brett Wilsone53895272014-09-23 23:41:46476 "//skia",
477 ]
[email protected]d05751a22014-05-29 20:54:24478 deps = [
479 "//base",
Yuta Hijikata173c7d62020-11-10 06:21:37480 "//build:chromeos_buildflags",
Jay Zhouc2c12ab2024-09-26 18:20:28481 "//components/metrics/dwa:dwa_builders",
482 "//components/metrics/dwa/mojom",
Minoru Chikamune5b4ff9232023-10-05 05:08:53483 "//components/miracle_parameter/common",
danakj7b631be2018-05-25 19:14:20484 "//components/viz/client",
Sadrul Habib Chowdhury403923e2020-10-01 09:53:16485 "//device/base/synchronization",
[email protected]d05751a22014-05-29 20:54:24486 "//gpu",
jbromancba3d2fe2014-09-16 01:04:24487 "//gpu/command_buffer/client:gles2_interface",
Victor Miura3a4ad4f82017-12-13 06:03:45488 "//gpu/command_buffer/client:raster_interface",
Maggie Chen4b3c6b7d2023-12-13 23:29:58489 "//gpu/ipc/client",
fsamueledc0c2c2016-11-18 22:28:04490 "//gpu/skia_bindings:skia_bindings",
Scott Violeta35f9a42018-03-22 22:00:44491 "//gpu/vulkan:buildflags",
danakjdda293b2018-05-29 18:27:40492 "//media", # For VideoLayerImpl.
samansbf8eacc2017-01-27 22:59:25493 "//mojo/public/cpp/bindings:struct_traits",
Khushal3e96e662017-10-30 23:16:50494 "//services/metrics/public/cpp:ukm_builders",
Asanka Herath6d528502020-02-13 20:32:17495 "//services/metrics/public/mojom",
Andrew Shulaev76231652020-03-04 15:05:18496 "//services/tracing/public/cpp:cpp",
Christopher Camerond3987822022-02-26 04:28:50497 "//skia:skcms",
Khushal Sagar8c331bd52024-04-26 19:25:26498 "//third_party/blink/public/common/tokens:tokens_headers",
Peng Huang5f3d4352021-11-23 17:51:29499 "//ui/base:features",
Nico Weber9d6e12942016-04-19 18:51:09500 "//ui/events:events_base",
[email protected]d05751a22014-05-29 20:54:24501 "//ui/gfx",
Ian Vollicke11d9a82021-02-24 02:34:51502 "//ui/gfx/animation/keyframe",
[email protected]d05751a22014-05-29 20:54:24503 "//ui/gfx/geometry",
ericrkf08855b42015-08-06 00:20:22504 "//ui/gl",
mfomitchev3ba450ad2017-04-03 18:20:40505 "//ui/latency",
[email protected]d05751a22014-05-29 20:54:24506 ]
[email protected]d05751a22014-05-29 20:54:24507
Peilin Wang95929bc02024-06-06 17:13:46508 if (is_android) {
509 sources += [
510 "input/android/offset_tag_android.cc",
511 "input/android/offset_tag_android.h",
512 ]
513
514 deps += [ ":cc_jni_headers" ]
515 }
516
[email protected]3ffa36a2014-07-24 21:01:50517 defines = [ "CC_IMPLEMENTATION=1" ]
[email protected]d05751a22014-05-29 20:54:24518}
519
Nico Weber803e0a52018-09-25 17:32:45520cc_test_static_library("test_support") {
Brett Wilson8f80ad0b2014-09-08 19:50:24521 testonly = true
[email protected]d05751a22014-05-29 20:54:24522 sources = [
523 "test/animation_test_common.cc",
524 "test/animation_test_common.h",
loysobb93befc2015-07-03 00:19:50525 "test/animation_timelines_test_common.cc",
526 "test/animation_timelines_test_common.h",
Jonathan Ross989be512025-01-10 22:09:03527 "test/fake_compositor_delegate_for_input.cc",
528 "test/fake_compositor_delegate_for_input.h",
Kaan Alsana27ebc152019-04-17 15:56:58529 "test/fake_compositor_frame_reporting_controller.cc",
530 "test/fake_compositor_frame_reporting_controller.h",
[email protected]d05751a22014-05-29 20:54:24531 "test/fake_content_layer_client.cc",
532 "test/fake_content_layer_client.h",
Sadrul Habib Chowdhurye102a1be2021-12-09 03:43:05533 "test/fake_frame_info.cc",
534 "test/fake_frame_info.h",
khushalsagarb64b360d2015-10-21 19:25:16535 "test/fake_impl_task_runner_provider.h",
Colin Blundell568aa3ca2025-01-29 07:37:56536 "test/fake_layer_context.cc",
Colin Blundell96ade0e2024-12-12 16:45:16537 "test/fake_layer_context.h",
danakjc7afae52017-06-20 21:12:41538 "test/fake_layer_tree_frame_sink.cc",
539 "test/fake_layer_tree_frame_sink.h",
540 "test/fake_layer_tree_frame_sink_client.cc",
541 "test/fake_layer_tree_frame_sink_client.h",
[email protected]d05751a22014-05-29 20:54:24542 "test/fake_layer_tree_host.cc",
543 "test/fake_layer_tree_host.h",
544 "test/fake_layer_tree_host_client.cc",
545 "test/fake_layer_tree_host_client.h",
546 "test/fake_layer_tree_host_impl.cc",
547 "test/fake_layer_tree_host_impl.h",
548 "test/fake_layer_tree_host_impl_client.cc",
549 "test/fake_layer_tree_host_impl_client.h",
ajumad9432e32015-11-30 19:43:44550 "test/fake_mask_layer_impl.cc",
551 "test/fake_mask_layer_impl.h",
[email protected]d05751a22014-05-29 20:54:24552 "test/fake_output_surface_client.cc",
553 "test/fake_output_surface_client.h",
Khushalfdacdc92017-09-22 22:40:52554 "test/fake_paint_image_generator.cc",
555 "test/fake_paint_image_generator.h",
[email protected]d05751a22014-05-29 20:54:24556 "test/fake_picture_layer.cc",
557 "test/fake_picture_layer.h",
558 "test/fake_picture_layer_impl.cc",
559 "test/fake_picture_layer_impl.h",
560 "test/fake_picture_layer_tiling_client.cc",
561 "test/fake_picture_layer_tiling_client.h",
[email protected]d05751a22014-05-29 20:54:24562 "test/fake_proxy.cc",
563 "test/fake_proxy.h",
prashant.nb4d4f492016-04-29 12:51:28564 "test/fake_raster_buffer_provider.cc",
565 "test/fake_raster_buffer_provider.h",
Chris Blumee4d90f2cf2020-11-20 03:50:57566 "test/fake_raster_query_queue.cc",
567 "test/fake_raster_query_queue.h",
vmpstr41d68f882016-03-30 01:20:23568 "test/fake_raster_source.cc",
569 "test/fake_raster_source.h",
vmpstre17fd212016-03-30 20:03:32570 "test/fake_recording_source.h",
[email protected]d05751a22014-05-29 20:54:24571 "test/fake_rendering_stats_instrumentation.h",
572 "test/fake_scoped_ui_resource.cc",
573 "test/fake_scoped_ui_resource.h",
574 "test/fake_scrollbar.cc",
575 "test/fake_scrollbar.h",
Xianzhu Wange3bc26ef2024-07-22 21:24:04576 "test/fake_scrollbar_layer.h",
[email protected]d05751a22014-05-29 20:54:24577 "test/fake_tile_manager.cc",
578 "test/fake_tile_manager.h",
579 "test/fake_tile_manager_client.cc",
580 "test/fake_tile_manager_client.h",
prashant.nb4d4f492016-04-29 12:51:28581 "test/fake_tile_task_manager.cc",
582 "test/fake_tile_task_manager.h",
[email protected]d05751a22014-05-29 20:54:24583 "test/fake_ui_resource_layer_tree_host_impl.cc",
584 "test/fake_ui_resource_layer_tree_host_impl.h",
585 "test/fake_video_frame_provider.cc",
586 "test/fake_video_frame_provider.h",
[email protected]d05751a22014-05-29 20:54:24587 "test/layer_test_common.cc",
588 "test/layer_test_common.h",
Xianzhu Wang66e13e02019-09-18 20:39:12589 "test/layer_tree_impl_test_base.cc",
590 "test/layer_tree_impl_test_base.h",
[email protected]d05751a22014-05-29 20:54:24591 "test/layer_tree_json_parser.cc",
592 "test/layer_tree_json_parser.h",
enne03dbe8ae2014-10-30 01:32:55593 "test/layer_tree_pixel_resource_test.cc",
594 "test/layer_tree_pixel_resource_test.h",
[email protected]d05751a22014-05-29 20:54:24595 "test/layer_tree_pixel_test.cc",
596 "test/layer_tree_pixel_test.h",
597 "test/layer_tree_test.cc",
598 "test/layer_tree_test.h",
Eric Sumd3691ee2022-01-13 20:04:26599 "test/lottie_test_data.cc",
Eric Suma213e7a2021-10-15 23:45:18600 "test/lottie_test_data.h",
Jonathan Ross989be512025-01-10 22:09:03601 "test/mock_input_handler.cc",
602 "test/mock_input_handler.h",
Mohsen Izadi13dab1a32021-11-08 19:40:19603 "test/mock_latency_info_swap_promise_monitor.cc",
604 "test/mock_latency_info_swap_promise_monitor.h",
Majid Valipoure9855f72017-10-20 02:08:58605 "test/mock_layer_tree_mutator.cc",
606 "test/mock_layer_tree_mutator.h",
Xianzhu Wange16695e92023-01-11 22:42:07607 "test/paint_image_matchers.h",
Jean-Philippe Gravelef96ba92024-02-26 20:03:31608 "test/paint_op_helper.cc",
Vladimir Levinf737c212017-11-13 21:25:48609 "test/paint_op_helper.h",
Jean-Philippe Gravel2f1f7112022-12-13 20:58:51610 "test/paint_op_matchers.h",
[email protected]d05751a22014-05-29 20:54:24611 "test/pixel_comparator.cc",
612 "test/pixel_comparator.h",
613 "test/pixel_test.cc",
614 "test/pixel_test.h",
615 "test/pixel_test_output_surface.cc",
616 "test/pixel_test_output_surface.h",
[email protected]d05751a22014-05-29 20:54:24617 "test/pixel_test_utils.cc",
618 "test/pixel_test_utils.h",
Xianzhu Wange9a09362019-08-21 20:37:53619 "test/property_tree_test_utils.cc",
620 "test/property_tree_test_utils.h",
xingliu3c9b4cc2016-11-02 20:52:55621 "test/push_properties_counting_layer.cc",
622 "test/push_properties_counting_layer.h",
623 "test/push_properties_counting_layer_impl.cc",
624 "test/push_properties_counting_layer_impl.h",
[email protected]d05751a22014-05-29 20:54:24625 "test/render_pass_test_utils.cc",
626 "test/render_pass_test_utils.h",
Xu Xing9339c8f2017-12-25 14:25:26627 "test/resource_provider_test_utils.cc",
628 "test/resource_provider_test_utils.h",
[email protected]d05751a22014-05-29 20:54:24629 "test/scheduler_test_common.cc",
630 "test/scheduler_test_common.h",
631 "test/skia_common.cc",
632 "test/skia_common.h",
633 "test/solid_color_content_layer_client.cc",
634 "test/solid_color_content_layer_client.h",
Khushald880a1512017-07-26 23:48:04635 "test/stub_decode_cache.cc",
636 "test/stub_decode_cache.h",
Jonathan Ross7b98e2c2024-05-08 21:38:53637 "test/stub_input_handler_client.cc",
Khushal Sagar9aff2522023-09-29 22:01:55638 "test/stub_input_handler_client.h",
danakjffc181a2016-07-22 22:48:43639 "test/stub_layer_tree_host_client.cc",
640 "test/stub_layer_tree_host_client.h",
641 "test/stub_layer_tree_host_single_thread_client.cc",
642 "test/stub_layer_tree_host_single_thread_client.h",
ericrk4e3aa5a2015-12-01 03:53:56643 "test/task_graph_runner_test_template.cc",
644 "test/task_graph_runner_test_template.h",
Maggie Chen5895bd12025-01-06 20:43:09645 "test/test_client_shared_image_interface.cc",
646 "test/test_client_shared_image_interface.h",
khushalsagar0a226af2015-12-09 10:30:20647 "test/test_hooks.cc",
648 "test/test_hooks.h",
Colin Blundell568aa3ca2025-01-29 07:37:56649 "test/test_layer_context.cc",
Victor Miuraa17ded12025-01-10 21:32:29650 "test/test_layer_context.h",
Antoine Labour7f5179a2019-06-04 01:46:29651 "test/test_layer_tree_frame_sink.cc",
652 "test/test_layer_tree_frame_sink.h",
vmpstr6edf66ce2016-05-18 20:12:22653 "test/test_layer_tree_host_base.cc",
654 "test/test_layer_tree_host_base.h",
[email protected]d05751a22014-05-29 20:54:24655 "test/test_occlusion_tracker.h",
Khushala8d50642018-05-03 01:29:06656 "test/test_options_provider.cc",
657 "test/test_options_provider.h",
Xida Chencd7c5182018-12-05 19:40:32658 "test/test_paint_worklet_input.cc",
659 "test/test_paint_worklet_input.h",
Xida Chenea3139f2019-01-10 21:46:30660 "test/test_paint_worklet_layer_painter.cc",
661 "test/test_paint_worklet_layer_painter.h",
enne59df29de2017-05-02 03:23:37662 "test/test_skcanvas.cc",
663 "test/test_skcanvas.h",
reveman34b7a1522015-03-23 20:27:47664 "test/test_task_graph_runner.cc",
665 "test/test_task_graph_runner.h",
[email protected]d05751a22014-05-29 20:54:24666 "test/test_tile_priorities.cc",
667 "test/test_tile_priorities.h",
prashant.n7c706022016-05-26 19:00:09668 "test/test_tile_task_runner.cc",
669 "test/test_tile_task_runner.h",
Sean Gilhuly6d199412020-08-26 19:07:21670 "test/test_types.cc",
671 "test/test_types.h",
Khushal3e96e662017-10-30 23:16:50672 "test/test_ukm_recorder_factory.cc",
673 "test/test_ukm_recorder_factory.h",
Vladimir Levin7273cfe052017-12-13 21:41:41674 "test/transfer_cache_test_helper.cc",
675 "test/transfer_cache_test_helper.h",
[email protected]d05751a22014-05-29 20:54:24676 ]
677
Brett Wilson0380637c2014-09-19 21:24:40678 public_deps = [
679 ":cc",
loyso3dd20892016-11-22 07:11:01680 "//cc/animation",
Brett Wilsone53895272014-09-23 23:41:46681 "//gpu:test_support",
Khushala8d50642018-05-03 01:29:06682 "//testing/gmock",
Brett Wilson0380637c2014-09-19 21:24:40683 ]
[email protected]d05751a22014-05-29 20:54:24684 deps = [
685 "//base",
jamesr16c04ff2014-11-24 22:24:57686 "//base/test:test_support",
Colin Blundell6601f512025-01-29 15:15:53687 "//cc/mojo_embedder",
enne34f6084c2017-02-02 22:39:08688 "//cc/paint",
Khushal3e96e662017-10-30 23:16:50689 "//components/ukm",
690 "//components/ukm:test_support",
danakj7b631be2018-05-25 19:14:20691 "//components/viz/client",
Fady Samuel1d744b22017-07-10 21:23:55692 "//components/viz/common",
danakjc391f332017-07-12 20:45:52693 "//components/viz/service",
694 "//components/viz/test:test_support",
[email protected]d05751a22014-05-29 20:54:24695 "//gpu/command_buffer/client:gles2_implementation",
Antoine Labour011cf772018-01-23 00:38:39696 "//gpu/command_buffer/client:raster",
Antoine Labourfeab2392017-12-21 20:28:39697 "//gpu/command_buffer/common",
fsamuel600b99e2016-11-11 07:50:26698 "//gpu/ipc:gl_in_process_context",
Maggie Chen5895bd12025-01-06 20:43:09699 "//gpu/ipc/common:test_support",
Peng Huang71f313d2018-06-20 14:59:42700 "//gpu/ipc/service",
[email protected]d05751a22014-05-29 20:54:24701 "//gpu/skia_bindings",
jamesr16c04ff2014-11-24 22:24:57702 "//media",
Miyoung Shin2be27f52019-07-27 15:35:39703 "//services/viz/privileged/mojom",
[email protected]d05751a22014-05-29 20:54:24704 "//skia",
[email protected]d05751a22014-05-29 20:54:24705 "//testing/gtest",
Maksim Sisovfbb47082020-08-03 13:41:40706 "//ui/base:features",
[email protected]d05751a22014-05-29 20:54:24707 "//ui/gfx",
[email protected]e54a1f522014-07-22 23:26:48708 "//ui/gfx:test_support",
Ian Vollicke11d9a82021-02-24 02:34:51709 "//ui/gfx/animation/keyframe",
agrieved7a71c882015-11-20 19:53:28710 "//ui/gfx/geometry",
[email protected]d05751a22014-05-29 20:54:24711 "//ui/gl",
sadrulba162cd2015-07-20 22:34:26712 "//ui/gl:test_support",
mfomitchev3ba450ad2017-04-03 18:20:40713 "//ui/latency",
[email protected]d05751a22014-05-29 20:54:24714 ]
Jonathan Backer316ac192019-02-13 22:49:06715 if (enable_vulkan) {
716 deps += [ "//gpu/vulkan/init" ]
717 }
agrieve48bd27e2016-06-22 21:04:07718 if (!is_android) {
Zhenyao Mo5110fce2024-08-06 19:18:33719 data_deps = [ "//third_party/angle:includes" ]
agrieve48bd27e2016-06-22 21:04:07720 }
Saifuddin Hitawala8311d5032023-08-18 14:58:31721 if (skia_use_dawn) {
722 deps += [
723 "//third_party/dawn/src/dawn:proc",
724 "//third_party/dawn/src/dawn/native",
725 ]
726 }
[email protected]d05751a22014-05-29 20:54:24727}
728
Tiago Vignatti91108182023-02-16 16:18:38729if (is_ios) {
Ian Vollick63109f692023-03-02 03:24:17730 bundle_data("unit_tests_bundle_data") {
Tiago Vignatti91108182023-02-16 16:18:38731 testonly = true
Ian Vollickbde1d5832023-11-10 17:49:11732 sources = [
733 "//testing/buildbot/filters/ios.cc_unittests.filter",
734 "test/data/lottie/animation_with_2_text_nodes.json",
735 ]
Ian Vollick63109f692023-03-02 03:24:17736 outputs = [ "{{bundle_resources_dir}}/" +
737 "{{source_root_relative_dir}}/{{source_file_part}}" ]
Tiago Vignatti91108182023-02-16 16:18:38738 }
739}
740
loyso1fe38ba42016-12-01 00:39:08741cc_test("cc_unittests") {
Dirk Pranke79d065d2020-08-29 03:28:30742 use_xvfb = use_xvfb_in_this_config
743
brettw4897a612015-03-02 23:13:15744 sources = [
brettwd649f6b2015-08-18 20:58:51745 "base/delayed_unique_notifier_unittest.cc",
jbroman7b5b0552015-05-28 03:36:58746 "base/histograms_unittest.cc",
prashant.n20ec56f2016-09-22 03:47:32747 "base/index_rect_unittest.cc",
prashant.n7f1fe3d2015-06-05 18:26:04748 "base/list_container_unittest.cc",
brettw4897a612015-03-02 23:13:15749 "base/math_util_unittest.cc",
750 "base/region_unittest.cc",
751 "base/rolling_time_delta_history_unittest.cc",
vmpstrb3ceb8222015-09-23 20:25:25752 "base/rtree_unittest.cc",
brettw4897a612015-03-02 23:13:15753 "base/simple_enclosed_region_unittest.cc",
prashant.n05192792016-09-24 03:38:20754 "base/spiral_iterator_unittest.cc",
brettw4897a612015-03-02 23:13:15755 "base/tiling_data_unittest.cc",
brettwd649f6b2015-08-18 20:58:51756 "base/unique_notifier_unittest.cc",
chrishtr82b5d9502017-03-20 18:25:33757 "benchmarks/micro_benchmark_controller_unittest.cc",
brettwd649f6b2015-08-18 20:58:51758 "debug/rendering_stats_unittest.cc",
mdjones2ee41afd2016-10-27 16:50:20759 "input/browser_controls_offset_manager_unittest.cc",
Xianzhu Wang0e6d4432023-08-10 22:40:48760 "input/hit_test_opaqueness_unittest.cc",
Xianzhu Wang81f6c4d72018-05-17 19:23:54761 "input/main_thread_scrolling_reason_unittest.cc",
Sandra Sun04ed4562018-01-16 01:49:35762 "input/scroll_snap_data_unittest.cc",
tdresserd9e201472015-07-31 13:15:07763 "input/scroll_state_unittest.cc",
chaopeng59e6fc02017-02-17 23:35:57764 "input/scrollbar_animation_controller_unittest.cc",
chaopeng2c3e1702017-01-27 04:46:02765 "input/single_scrollbar_animation_controller_thinning_unittest.cc",
Sandra Sunaa703712018-05-17 14:47:14766 "input/snap_fling_controller_unittest.cc",
767 "input/snap_fling_curve_unittest.cc",
ajuma956219582017-04-04 19:58:14768 "layers/effect_tree_layer_list_iterator_unittest.cc",
brettw4897a612015-03-02 23:13:15769 "layers/heads_up_display_layer_impl_unittest.cc",
770 "layers/heads_up_display_unittest.cc",
brettw4897a612015-03-02 23:13:15771 "layers/layer_impl_unittest.cc",
vollick44d1c1f2016-03-02 20:59:43772 "layers/layer_list_iterator_unittest.cc",
brettw4897a612015-03-02 23:13:15773 "layers/layer_unittest.cc",
Mohsen Izadi1bcbf252019-06-27 01:26:29774 "layers/mirror_layer_unittest.cc",
danakj83d0eb4f2017-09-19 17:31:58775 "layers/nine_patch_generator_unittest.cc",
brettw4897a612015-03-02 23:13:15776 "layers/nine_patch_layer_impl_unittest.cc",
777 "layers/nine_patch_layer_unittest.cc",
Xianzhu Wanga347461412024-02-20 22:46:08778 "layers/nine_patch_thumb_scrollbar_layer_unittest.cc",
brettw4897a612015-03-02 23:13:15779 "layers/painted_scrollbar_layer_impl_unittest.cc",
ccamerona54da382015-11-27 00:52:33780 "layers/painted_scrollbar_layer_unittest.cc",
brettw4897a612015-03-02 23:13:15781 "layers/picture_layer_impl_unittest.cc",
782 "layers/picture_layer_unittest.cc",
chrishtrac41ff92017-03-17 05:07:30783 "layers/recording_source_unittest.cc",
brettw4897a612015-03-02 23:13:15784 "layers/render_surface_impl_unittest.cc",
785 "layers/render_surface_unittest.cc",
786 "layers/scrollbar_layer_unittest.cc",
787 "layers/solid_color_layer_impl_unittest.cc",
788 "layers/solid_color_scrollbar_layer_impl_unittest.cc",
789 "layers/surface_layer_impl_unittest.cc",
790 "layers/surface_layer_unittest.cc",
791 "layers/texture_layer_impl_unittest.cc",
792 "layers/texture_layer_unittest.cc",
Hayley Ferr2b14e2a6c2017-07-04 17:34:43793 "layers/touch_action_region_unittest.cc",
brettw4897a612015-03-02 23:13:15794 "layers/ui_resource_layer_impl_unittest.cc",
795 "layers/ui_resource_layer_unittest.cc",
dalecurtisb8396642015-06-09 18:38:14796 "layers/video_frame_provider_client_impl_unittest.cc",
brettw4897a612015-03-02 23:13:15797 "layers/video_layer_impl_unittest.cc",
ymalik99740e852016-04-07 04:18:13798 "layers/viewport_unittest.cc",
Joao Victor Almeida917ce172020-07-07 20:56:12799 "metrics/average_lag_tracker_unittest.cc",
800 "metrics/average_lag_tracking_manager_unittest.cc",
behdad5fb48ea22019-08-12 18:15:36801 "metrics/compositor_frame_reporter_unittest.cc",
802 "metrics/compositor_frame_reporting_controller_unittest.cc",
803 "metrics/compositor_timing_history_unittest.cc",
Sadrul Habib Chowdhury13b2a1c92020-08-27 03:51:01804 "metrics/dropped_frame_counter_unittest.cc",
Violetta Fedotovae38c0332022-09-02 17:48:22805 "metrics/event_metrics_unittest.cc",
Mohsen Izadia52ab642020-03-03 05:21:27806 "metrics/events_metrics_manager_unittest.cc",
Sadrul Habib Chowdhury28190c92021-12-10 20:50:02807 "metrics/frame_info_unittest.cc",
Sadrul Habib Chowdhury590a32f2019-12-06 20:08:45808 "metrics/frame_sequence_metrics_unittest.cc",
behdad5fb48ea22019-08-12 18:15:36809 "metrics/frame_sequence_tracker_unittest.cc",
behdada140f2d2020-11-09 23:26:57810 "metrics/frame_sorter_unittest.cc",
Omar Elmekkawy5dda5e72023-04-05 11:16:10811 "metrics/predictor_jank_tracker_unittest.cc",
Kartar Singh3a4d5ff32023-05-18 17:14:29812 "metrics/scroll_jank_dropped_frame_tracker_unittest.cc",
Harkiran Bolariab64c1822023-12-20 11:14:10813 "metrics/scroll_jank_ukm_reporter_unittest.cc",
Sadrul Habib Chowdhury941ebc912020-08-20 04:01:43814 "metrics/total_frame_counter_unittest.cc",
Jonathan Ross25bf5b02024-07-03 16:31:30815 "metrics/ukm_manager_unittest.cc",
Eugene Zemtsovbea39392020-03-17 01:44:22816 "metrics/video_playback_roughness_reporter_unittest.cc",
danakj7b631be2018-05-25 19:14:20817 "mojo_embedder/async_layer_tree_frame_sink_unittest.cc",
Xianzhu Wangd3e33c732020-08-14 09:56:25818 "paint/clear_for_opaque_raster_unittest.cc",
chrishtrac41ff92017-03-17 05:07:30819 "paint/discardable_image_map_unittest.cc",
820 "paint/display_item_list_unittest.cc",
Khushal7865b5be2017-11-22 03:12:06821 "paint/filter_operations_unittest.cc",
Andres Calderon Jaramilloa7071c292019-06-11 21:05:21822 "paint/image_transfer_cache_entry_unittest.cc",
Vladimir Levin22d3e0a2017-11-04 01:18:27823 "paint/oop_pixeltest.cc",
Khushal33205a72018-11-08 10:12:29824 "paint/paint_cache_unittest.cc",
Khushal0c568dc2018-03-21 01:46:07825 "paint/paint_filter_unittest.cc",
Christopher Cameronaaf67e72025-02-04 16:19:43826 "paint/paint_flags_unittest.cc",
Khushalb481b282017-08-24 00:06:53827 "paint/paint_image_unittest.cc",
enne59df29de2017-05-02 03:23:37828 "paint/paint_op_buffer_unittest.cc",
Vladimir Levinf737c212017-11-13 21:25:48829 "paint/paint_op_helper_unittest.cc",
Xianzhu Wang96619a372023-02-11 02:30:19830 "paint/paint_op_writer_reader_unittest.cc",
Khushal7ae9c792017-10-05 22:26:32831 "paint/paint_shader_unittest.cc",
Xida Chenc6a98de2020-11-27 20:40:12832 "paint/paint_worklet_input_unittest.cc",
Florin Malitae32b0b72017-12-08 00:50:24833 "paint/scoped_raster_flags_unittest.cc",
Khushal058b1a92018-02-14 21:25:50834 "paint/skia_paint_canvas_unittest.cc",
Vladimir Levinaee539102017-06-23 16:46:08835 "paint/solid_color_analyzer_unittest.cc",
Eric Karl16711ec2017-11-18 00:58:11836 "paint/transfer_cache_unittest.cc",
Ken Rockot2ab918c72023-04-13 17:53:17837 "raster/categorized_worker_pool_unittest.cc",
Khushald880a1512017-07-26 23:48:04838 "raster/playback_image_provider_unittest.cc",
prashant.nb4d4f492016-04-29 12:51:28839 "raster/raster_buffer_provider_unittest.cc",
chrishtrac41ff92017-03-17 05:07:30840 "raster/raster_source_unittest.cc",
ericrk4e3aa5a2015-12-01 03:53:56841 "raster/single_thread_task_graph_runner_unittest.cc",
Sadrul Habib Chowdhury6b9697f2017-12-08 04:13:43842 "raster/staging_buffer_pool_unittest.cc",
ericrk4e3aa5a2015-12-01 03:53:56843 "raster/synchronous_task_graph_runner_unittest.cc",
ericrk0f9ee9862017-01-23 19:05:39844 "raster/task_graph_work_queue_unittest.cc",
boliucb788f42015-07-22 23:49:28845 "resources/resource_pool_unittest.cc",
brettw4897a612015-03-02 23:13:15846 "scheduler/scheduler_state_machine_unittest.cc",
847 "scheduler/scheduler_unittest.cc",
Bo Liu11af9412023-04-05 19:49:39848 "slim/delayer_scheduler_unittest.cc",
Bo Liubfe80a072023-02-17 20:09:15849 "slim/slim_layer_tree_compositor_frame_unittest.cc",
Bo Liub86be5e2023-02-09 21:59:26850 "slim/slim_layer_tree_unittest.cc",
Bo Liueb64cd12023-01-27 23:14:29851 "slim/slim_layer_unittest.cc",
Bo Liub86be5e2023-02-09 21:59:26852 "slim/test_frame_sink_impl.cc",
853 "slim/test_frame_sink_impl.h",
854 "slim/test_layer_tree_client.cc",
855 "slim/test_layer_tree_client.h",
856 "slim/test_layer_tree_impl.cc",
857 "slim/test_layer_tree_impl.h",
khushalsagard3b8827d2017-02-18 18:42:54858 "tiles/checker_image_tracker_unittest.cc",
vmpstra6b30162017-01-12 20:23:03859 "tiles/decoded_image_tracker_unittest.cc",
vmpstr70289fb62016-12-01 02:33:05860 "tiles/gpu_image_decode_cache_unittest.cc",
vmpstre556bda62016-12-02 01:51:40861 "tiles/image_controller_unittest.cc",
ericrkc7ebaa12016-06-09 21:05:55862 "tiles/mipmap_util_unittest.cc",
danakj920156852015-05-18 20:22:29863 "tiles/picture_layer_tiling_set_unittest.cc",
864 "tiles/picture_layer_tiling_unittest.cc",
vmpstr70289fb62016-12-01 02:33:05865 "tiles/software_image_decode_cache_unittest.cc",
Vladimir Levin562da3d2017-12-13 18:14:55866 "tiles/software_image_decode_cache_unittest_combinations.cc",
danakj920156852015-05-18 20:22:29867 "tiles/tile_manager_unittest.cc",
868 "tiles/tile_priority_unittest.cc",
brettw4897a612015-03-02 23:13:15869 "trees/damage_tracker_unittest.cc",
Xianzhu Wang66e13e02019-09-18 20:39:12870 "trees/draw_properties_unittest.cc",
Khushal Sagar1d3fc722020-05-04 21:44:11871 "trees/frame_rate_estimator_unittest.cc",
Khushalfdacdc92017-09-22 22:40:52872 "trees/image_animation_controller_unittest.cc",
danakjba65a0912017-09-21 16:38:42873 "trees/layer_tree_frame_sink_unittest.cc",
brettw4897a612015-03-02 23:13:15874 "trees/layer_tree_host_impl_unittest.cc",
875 "trees/layer_tree_host_pixeltest_blending.cc",
876 "trees/layer_tree_host_pixeltest_filters.cc",
877 "trees/layer_tree_host_pixeltest_masks.cc",
Mohsen Izadi1bcbf252019-06-27 01:26:29878 "trees/layer_tree_host_pixeltest_mirror.cc",
brettw4897a612015-03-02 23:13:15879 "trees/layer_tree_host_pixeltest_readback.cc",
danakjd63f8a62016-08-24 03:26:48880 "trees/layer_tree_host_pixeltest_scrollbars.cc",
brettw4897a612015-03-02 23:13:15881 "trees/layer_tree_host_pixeltest_synchronous.cc",
danakje0b54782015-05-29 22:47:52882 "trees/layer_tree_host_pixeltest_tiles.cc",
brettw4897a612015-03-02 23:13:15883 "trees/layer_tree_host_unittest.cc",
884 "trees/layer_tree_host_unittest_animation.cc",
Ahmed Fakhry267e9d62021-01-07 04:47:54885 "trees/layer_tree_host_unittest_capture.cc",
Tao Baie1a7f092019-02-06 02:24:31886 "trees/layer_tree_host_unittest_capture_content.cc",
khushalsagar6dc91d02017-02-28 05:10:07887 "trees/layer_tree_host_unittest_checkerimaging.cc",
brettw4897a612015-03-02 23:13:15888 "trees/layer_tree_host_unittest_context.cc",
889 "trees/layer_tree_host_unittest_copyrequest.cc",
890 "trees/layer_tree_host_unittest_damage.cc",
Weiliang Chen73fe3c42018-05-11 19:52:37891 "trees/layer_tree_host_unittest_masks.cc",
brettw4897a612015-03-02 23:13:15892 "trees/layer_tree_host_unittest_occlusion.cc",
893 "trees/layer_tree_host_unittest_picture.cc",
894 "trees/layer_tree_host_unittest_proxy.cc",
khushalsagarb54107d02015-12-10 20:20:56895 "trees/layer_tree_host_unittest_record_gpu_histogram.cc",
brettw4897a612015-03-02 23:13:15896 "trees/layer_tree_host_unittest_scroll.cc",
897 "trees/layer_tree_host_unittest_video.cc",
898 "trees/layer_tree_impl_unittest.cc",
899 "trees/occlusion_tracker_unittest.cc",
900 "trees/occlusion_unittest.cc",
Tom McKee3b4b22e22019-05-24 20:48:00901 "trees/presentation_time_callback_buffer_unittest.cc",
Xianzhu Wang66e13e02019-09-18 20:39:12902 "trees/property_tree_builder_unittest.cc",
brettw4897a612015-03-02 23:13:15903 "trees/property_tree_unittest.cc",
khushalsagar8297ae992016-09-14 20:51:23904 "trees/swap_promise_manager_unittest.cc",
yjliua98c7e432021-02-26 00:34:51905 "trees/throttle_decider_unittest.cc",
brettw4897a612015-03-02 23:13:15906 "trees/tree_synchronizer_unittest.cc",
Vladimir Levin501455e2022-11-04 20:04:54907 "view_transition/view_transition_request_unittest.cc",
[email protected]d05751a22014-05-29 20:54:24908
loyso3dd20892016-11-22 07:11:01909 # Animation test files.
910 "animation/animation_host_unittest.cc",
loyso3dd20892016-11-22 07:11:01911 "animation/animation_timeline_unittest.cc",
Yi Gu852bebe632018-03-02 15:15:32912 "animation/animation_unittest.cc",
loyso3dd20892016-11-22 07:11:01913 "animation/element_animations_unittest.cc",
Ian Vollicke11d9a82021-02-24 02:34:51914 "animation/filter_animation_curve_unittest.cc",
Yi Gu0c76aeb2018-02-16 19:27:59915 "animation/keyframe_model_unittest.cc",
loyso3dd20892016-11-22 07:11:01916 "animation/scroll_offset_animation_curve_unittest.cc",
Stephen McGruerbd494792017-11-13 18:16:49917 "animation/scroll_timeline_unittest.cc",
Yi Guaa830ff2018-02-22 03:09:11918 "animation/worklet_animation_unittest.cc",
[email protected]d05751a22014-05-29 20:54:24919
brettw4897a612015-03-02 23:13:15920 # Setup.
921 "test/cc_test_suite.cc",
thakisb8590c92017-03-23 18:14:53922 "test/cc_test_suite.h",
brettw4897a612015-03-02 23:13:15923 "test/run_all_unittests.cc",
924 ]
[email protected]d05751a22014-05-29 20:54:24925
Eric Sumde146e22021-10-28 19:14:51926 if (skia_support_skottie) {
Eric Sumde146e22021-10-28 19:14:51927 sources += [
928 "paint/skottie_mru_resource_provider_unittest.cc",
929 "paint/skottie_resource_metadata_unittest.cc",
Eric Sum04b5d7a2022-01-25 20:31:31930 "paint/skottie_serialization_history_unittest.cc",
Eric Sum2825a6e2022-02-18 21:54:34931 "paint/skottie_text_property_value_unittest.cc",
Eric Sumde146e22021-10-28 19:14:51932 "paint/skottie_transfer_cache_entry_unittest.cc",
933 "paint/skottie_wrapper_unittest.cc",
934 ]
agrievee41ae190d2016-04-25 14:12:51935 }
dpranke177c1e22015-07-22 23:07:43936
brettw4897a612015-03-02 23:13:15937 deps = [
938 ":cc",
939 ":test_support",
940 "//base/test:test_support",
Yuta Hijikata173c7d62020-11-10 06:21:37941 "//build:chromeos_buildflags",
danakj7b631be2018-05-25 19:14:20942 "//cc/mojo_embedder",
enne34f6084c2017-02-02 22:39:08943 "//cc/paint",
Bo Liueb64cd12023-01-27 23:14:29944 "//cc/slim",
Khushal3e96e662017-10-30 23:16:50945 "//components/ukm:test_support",
danakj7b631be2018-05-25 19:14:20946 "//components/viz/client",
Fady Samuel555c8d12017-07-07 23:14:09947 "//components/viz/common",
danakjc391f332017-07-12 20:45:52948 "//components/viz/service",
949 "//components/viz/test:test_support",
brettw4897a612015-03-02 23:13:15950 "//gpu",
951 "//gpu:test_support",
Vladimir Levin22d3e0a2017-11-04 01:18:27952 "//gpu/command_buffer/client:gles2_implementation",
brettw4897a612015-03-02 23:13:15953 "//gpu/command_buffer/client:gles2_interface",
Antoine Labour011cf772018-01-23 00:38:39954 "//gpu/command_buffer/client:raster",
Victor Miura3a4ad4f82017-12-13 06:03:45955 "//gpu/command_buffer/client:raster_interface",
Vladimir Levin22d3e0a2017-11-04 01:18:27956 "//gpu/ipc:gl_in_process_context",
Adrienne Walker46704412017-11-09 18:42:44957 "//gpu/skia_bindings",
brettw4897a612015-03-02 23:13:15958 "//media",
Ken Rockotf03d97c952018-07-04 22:08:10959 "//mojo/core/embedder",
fsamuel410c9602016-05-31 21:50:20960 "//mojo/public/cpp/bindings",
Kevin Lubick24166022023-11-01 17:14:04961 "//skia",
Eric Sumde146e22021-10-28 19:14:51962 "//skia:buildflags",
Sean Gilhulyf0f9fdd52020-10-06 20:15:55963 "//skia:skcms",
brettw4897a612015-03-02 23:13:15964 "//testing/gmock",
965 "//testing/gtest",
Nico Weber9d6e12942016-04-19 18:51:09966 "//ui/events:events_base",
brettw4897a612015-03-02 23:13:15967 "//ui/gfx",
brettw4897a612015-03-02 23:13:15968 "//ui/gfx:test_support",
Ian Vollicke11d9a82021-02-24 02:34:51969 "//ui/gfx/animation/keyframe",
agrieved7a71c882015-11-20 19:53:28970 "//ui/gfx/geometry",
brettw4897a612015-03-02 23:13:15971 "//ui/gl",
sadrulba162cd2015-07-20 22:34:26972 "//ui/gl:test_support",
brettw4897a612015-03-02 23:13:15973 ]
kylechar451a16c2022-01-18 17:34:37974
Ian Vollick6eef1422023-03-02 19:08:25975 data = [ "//components/test/data/viz/" ]
John Budorickfa8f1da92020-01-15 18:11:38976 data_deps = [
977 "//testing/buildbot/filters:cc_unittests_filters",
Zhenyao Mo5110fce2024-08-06 19:18:33978 "//third_party/angle:includes",
John Budorickfa8f1da92020-01-15 18:11:38979 ]
Sean Gilhuly0dc6fac2019-06-04 15:42:57980
James Shenbc321f272021-12-11 06:30:12981 if (is_android && enable_chrome_android_internal) {
982 data_deps += [ "//clank/build/bot/filters:cc_unittests_filters" ]
983 }
984
Eric Sumc7435712022-02-22 18:33:44985 if (skia_support_skottie) {
986 data += [ "test/data/" ]
987 }
988
Chong Gu68e2a8da2020-02-26 00:18:24989 if (is_fuchsia) {
Alison Gale923a33e2024-04-22 23:34:28990 # TODO(crbug.com/42050042): Some of these tests use SwiftShader,
Weze77cf592023-06-22 18:28:01991 # which requires ambient VMEX.
Kevin Marshall31331b62022-05-09 18:25:20992 test_runner_shard = "//build/config/fuchsia/test/elf_test_ambient_exec_runner.shard.test-cml"
993
Chong Gu91a1fea2021-03-30 17:24:31994 additional_manifest_fragments = [
Kevin Marshall31331b62022-05-09 18:25:20995 "//build/config/fuchsia/test/fonts.shard.test-cml",
Weze77cf592023-06-22 18:28:01996
Alison Gale59c007a2024-04-20 03:05:40997 # TODO(crbug.com/40055105): Investigate removing the requirement
Weze77cf592023-06-22 18:28:01998 # for VmexResource.
Wezf84dc402022-08-19 11:33:46999 "//build/config/fuchsia/test/mark_vmo_executable.shard.test-cml",
Kevin Marshall31331b62022-05-09 18:25:201000 "//third_party/fuchsia-sdk/sdk/pkg/vulkan/client.shard.cml",
Chong Guef5341b2021-03-10 21:26:261001 ]
Chong Gu30e927be2020-01-31 21:20:021002 }
1003
Sean Gilhuly0dc6fac2019-06-04 15:42:571004 if (enable_vulkan) {
1005 deps += [
1006 "//gpu/vulkan:test_support",
1007 "//gpu/vulkan/init",
1008 ]
Sean Gilhulye8287932020-04-20 15:42:551009 }
Tiago Vignatti91108182023-02-16 16:18:381010
1011 if (is_ios) {
Ian Vollick63109f692023-03-02 03:24:171012 public_deps = [
1013 ":unit_tests_bundle_data",
Ian Vollick3b59a4242023-03-02 21:22:311014 "//components/test:viz_test_bundle_data",
Ian Vollick63109f692023-03-02 03:24:171015 ]
Tiago Vignatti91108182023-02-16 16:18:381016 }
[email protected]d05751a22014-05-29 20:54:241017}
1018
loyso1fe38ba42016-12-01 00:39:081019cc_test("cc_perftests") {
[email protected]6e44c302014-07-22 21:51:371020 sources = [
loysoa4a59a42016-02-10 06:49:261021 "animation/animation_host_perftest.cc",
vmpstr0d694522016-12-14 23:37:191022 "base/rtree_perftest.cc",
[email protected]6e44c302014-07-22 21:51:371023 "layers/layer_perftest.cc",
1024 "layers/picture_layer_impl_perftest.cc",
Adrienne Walkereeb00f72017-11-29 22:04:591025 "paint/paint_op_perftest.cc",
prashant.nb4d4f492016-04-29 12:51:281026 "raster/raster_buffer_provider_perftest.cc",
danakj920156852015-05-18 20:22:291027 "raster/task_graph_runner_perftest.cc",
[email protected]6e44c302014-07-22 21:51:371028 "test/cc_test_suite.cc",
thakisb8590c92017-03-23 18:14:531029 "test/cc_test_suite.h",
[email protected]6e44c302014-07-22 21:51:371030 "test/run_all_perftests.cc",
Eric Karl4c5bf9d2018-07-13 08:26:441031 "tiles/gpu_image_decode_cache_perftest.cc",
vmpstr13778fb2017-02-02 23:44:001032 "tiles/software_image_decode_cache_perftest.cc",
danakj920156852015-05-18 20:22:291033 "tiles/tile_manager_perftest.cc",
Xianzhu Wang66e13e02019-09-18 20:39:121034 "trees/draw_property_utils_perftest.cc",
[email protected]6e44c302014-07-22 21:51:371035 "trees/layer_tree_host_perftest.cc",
[email protected]6e44c302014-07-22 21:51:371036 ]
[email protected]d05751a22014-05-29 20:54:241037
[email protected]6e44c302014-07-22 21:51:371038 deps = [
1039 ":cc",
1040 ":test_support",
1041 "//base",
jamesr16c04ff2014-11-24 22:24:571042 "//base/test:test_support",
chrishtrac41ff92017-03-17 05:07:301043 "//cc/paint",
danakj57baa772018-05-29 15:59:141044 "//components/viz/client",
Fady Samueldbd4b022017-07-14 02:06:481045 "//components/viz/common",
danakjc391f332017-07-12 20:45:521046 "//components/viz/test:test_support",
[email protected]6e44c302014-07-22 21:51:371047 "//gpu",
[email protected]c7990dbf2014-07-23 22:35:101048 "//gpu:test_support",
Victor Miura3a4ad4f82017-12-13 06:03:451049 "//gpu/command_buffer/client:gles2_implementation",
Antoine Labour011cf772018-01-23 00:38:391050 "//gpu/command_buffer/client:raster",
Eric Karl4c5bf9d2018-07-13 08:26:441051 "//gpu/command_buffer/client:raster_interface",
Adrienne Walkerc87477e2018-06-06 22:28:211052 "//gpu/ipc:gl_in_process_context",
Ken Rockotcf601fbb2021-04-24 00:21:181053 "//gpu/ipc/common",
[email protected]6e44c302014-07-22 21:51:371054 "//media",
Ken Rockotf03d97c952018-07-04 22:08:101055 "//mojo/core/embedder",
fsamuelbb47aac2016-07-08 01:05:531056 "//mojo/public/cpp/bindings",
Miyoung Shin99505dd2019-07-27 12:45:351057 "//services/viz/public/mojom",
[email protected]6e44c302014-07-22 21:51:371058 "//skia",
Kevin Lubick24166022023-11-01 17:14:041059 "//skia:test_fonts",
[email protected]6e44c302014-07-22 21:51:371060 "//testing/gmock",
1061 "//testing/gtest",
1062 "//testing/perf",
1063 "//ui/gfx",
1064 "//ui/gfx/geometry",
jamesr16c04ff2014-11-24 22:24:571065 "//ui/gl",
sadrulba162cd2015-07-20 22:34:261066 "//ui/gl:test_support",
[email protected]6e44c302014-07-22 21:51:371067 ]
krasinca63e412016-05-12 02:53:251068
1069 # This target should not require the Chrome executable to run.
1070 assert_no_deps = [ "//chrome" ]
jbudorickbdd15902016-09-15 21:05:421071
Ian Vollick6eef1422023-03-02 19:08:251072 data = [ "//components/test/data/viz/" ]
eyaich7c79b912016-10-29 00:39:251073
Emily Hanleyea23f352018-05-31 19:33:331074 data_deps = [
eyaich7c79b912016-10-29 00:39:251075 # Needed for isolate script to execute.
Emily Hanleyea23f352018-05-31 19:33:331076 "//testing:run_perf_test",
jbudorickbdd15902016-09-15 21:05:421077 ]
[email protected]6e44c302014-07-22 21:51:371078}
Dave Tapuskafc4adbae2020-12-02 22:08:591079
1080if (is_android) {
1081 java_cpp_enum("cc_android_java_enums_srcjar") {
1082 sources = [ "//cc/input/browser_controls_state.h" ]
1083 }
1084
Peilin Wang95929bc02024-06-06 17:13:461085 generate_jni("cc_jni_headers") {
1086 sources = [
Peilin Wang1187e4e82025-02-10 08:53:291087 "input/android/java/src/org/chromium/cc/input/BrowserControlsOffsetTagModifications.java",
1088 "input/android/java/src/org/chromium/cc/input/BrowserControlsOffsetTags.java",
Peilin Wang95929bc02024-06-06 17:13:461089 "input/android/java/src/org/chromium/cc/input/OffsetTag.java",
1090 ]
1091 }
1092
Dave Tapuskafc4adbae2020-12-02 22:08:591093 android_library("cc_java") {
1094 # Right now, this only includes the Java switches. But if we need more Java
1095 # files, they should be added here as necessary.
Peilin Wang95929bc02024-06-06 17:13:461096 srcjar_deps = [
1097 ":cc_android_java_enums_srcjar",
1098 ":cc_jni_headers",
1099 ]
1100
1101 sources = [
Peilin Wang1187e4e82025-02-10 08:53:291102 "input/android/java/src/org/chromium/cc/input/BrowserControlsOffsetTagModifications.java",
1103 "input/android/java/src/org/chromium/cc/input/BrowserControlsOffsetTags.java",
Peilin Wang95929bc02024-06-06 17:13:461104 "input/android/java/src/org/chromium/cc/input/OffsetTag.java",
1105 ]
1106
1107 deps = [
1108 "//base:base_java",
1109 "//third_party/android_deps:com_google_errorprone_error_prone_annotations_java",
1110 "//third_party/androidx:androidx_annotation_annotation_java",
1111 "//third_party/jni_zero:jni_zero_java",
1112 ]
Dave Tapuskafc4adbae2020-12-02 22:08:591113 }
1114}