Fixing an off by one error in screenshot manager code.
[chromium-blink-merge.git] / cc / cc.gyp
blob23123729cbe4ad3fbd4d27fd5d17075b22b4f349
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.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       'target_name': 'cc',
12       'type': '<(component)',
13       'dependencies': [
14         '<(DEPTH)/base/base.gyp:base',
15         '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
16         '<(DEPTH)/gpu/gpu.gyp:gpu',
17         '<(DEPTH)/media/media.gyp:media',
18         '<(DEPTH)/skia/skia.gyp:skia',
19         '<(DEPTH)/ui/events/events.gyp:events_base',
20         '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
21         '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
22         '<(DEPTH)/ui/gl/gl.gyp:gl',
23       ],
24       'variables': {
25         'optimize': 'max',
26       },
27       'export_dependent_settings': [
28         '<(DEPTH)/skia/skia.gyp:skia',
29       ],
30       'defines': [
31         'CC_IMPLEMENTATION=1',
32       ],
33       'sources': [
34         'animation/animation.cc',
35         'animation/animation.h',
36         'animation/animation_curve.cc',
37         'animation/animation_curve.h',
38         'animation/animation_delegate.h',
39         'animation/animation_events.cc',
40         'animation/animation_events.h',
41         'animation/animation_id_provider.cc',
42         'animation/animation_id_provider.h',
43         'animation/animation_registrar.cc',
44         'animation/animation_registrar.h',
45         'animation/keyframed_animation_curve.cc',
46         'animation/keyframed_animation_curve.h',
47         'animation/layer_animation_controller.cc',
48         'animation/layer_animation_controller.h',
49         'animation/layer_animation_event_observer.h',
50         'animation/layer_animation_value_observer.h',
51         'animation/layer_animation_value_provider.h',
52         'animation/scroll_offset_animation_curve.cc',
53         'animation/scroll_offset_animation_curve.h',
54         'animation/scrollbar_animation_controller.h',
55         'animation/scrollbar_animation_controller_linear_fade.cc',
56         'animation/scrollbar_animation_controller_linear_fade.h',
57         'animation/scrollbar_animation_controller_thinning.cc',
58         'animation/scrollbar_animation_controller_thinning.h',
59         'animation/timing_function.cc',
60         'animation/timing_function.h',
61         'animation/transform_operation.cc',
62         'animation/transform_operation.h',
63         'animation/transform_operations.cc',
64         'animation/transform_operations.h',
65         'base/completion_event.h',
66         'base/invalidation_region.cc',
67         'base/invalidation_region.h',
68         'base/latency_info_swap_promise.cc',
69         'base/latency_info_swap_promise.h',
70         'base/latency_info_swap_promise_monitor.cc',
71         'base/latency_info_swap_promise_monitor.h',
72         'base/math_util.cc',
73         'base/math_util.h',
74         'base/ref_counted_managed.h',
75         'base/region.cc',
76         'base/region.h',
77         'base/rolling_time_delta_history.cc',
78         'base/rolling_time_delta_history.h',
79         'base/scoped_ptr_algorithm.h',
80         'base/scoped_ptr_deque.h',
81         'base/scoped_ptr_vector.h',
82         'base/swap_promise.h',
83         'base/swap_promise_monitor.cc',
84         'base/swap_promise_monitor.h',
85         'base/switches.cc',
86         'base/switches.h',
87         'base/tiling_data.cc',
88         'base/tiling_data.h',
89         'base/util.h',
90         'debug/benchmark_instrumentation.cc',
91         'debug/benchmark_instrumentation.h',
92         'debug/debug_colors.cc',
93         'debug/debug_colors.h',
94         'debug/debug_rect_history.cc',
95         'debug/debug_rect_history.h',
96         'debug/devtools_instrumentation.h',
97         'debug/frame_rate_counter.cc',
98         'debug/frame_rate_counter.h',
99         'debug/layer_tree_debug_state.cc',
100         'debug/layer_tree_debug_state.h',
101         'debug/micro_benchmark.cc',
102         'debug/micro_benchmark.h',
103         'debug/micro_benchmark_impl.cc',
104         'debug/micro_benchmark_impl.h',
105         'debug/micro_benchmark_controller.cc',
106         'debug/micro_benchmark_controller.h',
107         'debug/micro_benchmark_controller_impl.cc',
108         'debug/micro_benchmark_controller_impl.h',
109         'debug/paint_time_counter.cc',
110         'debug/paint_time_counter.h',
111         'debug/picture_record_benchmark.cc',
112         'debug/picture_record_benchmark.h',
113         'debug/rasterize_and_record_benchmark.cc',
114         'debug/rasterize_and_record_benchmark.h',
115         'debug/rasterize_and_record_benchmark_impl.cc',
116         'debug/rasterize_and_record_benchmark_impl.h',
117         'debug/rendering_stats.cc',
118         'debug/rendering_stats.h',
119         'debug/rendering_stats_instrumentation.cc',
120         'debug/rendering_stats_instrumentation.h',
121         'debug/ring_buffer.h',
122         'debug/traced_picture.cc',
123         'debug/traced_picture.h',
124         'debug/traced_value.cc',
125         'debug/traced_value.h',
126         'debug/unittest_only_benchmark.cc',
127         'debug/unittest_only_benchmark.h',
128         'debug/unittest_only_benchmark_impl.cc',
129         'debug/unittest_only_benchmark_impl.h',
130         'input/input_handler.h',
131         'input/page_scale_animation.cc',
132         'input/page_scale_animation.h',
133         'input/top_controls_manager.cc',
134         'input/top_controls_manager.h',
135         'input/top_controls_manager_client.h',
136         'layers/append_quads_data.h',
137         'layers/content_layer.cc',
138         'layers/content_layer.h',
139         'layers/content_layer_client.h',
140         'layers/contents_scaling_layer.cc',
141         'layers/contents_scaling_layer.h',
142         'layers/delegated_frame_provider.cc',
143         'layers/delegated_frame_provider.h',
144         'layers/delegated_frame_resource_collection.cc',
145         'layers/delegated_frame_resource_collection.h',
146         'layers/delegated_renderer_layer.cc',
147         'layers/delegated_renderer_layer.h',
148         'layers/delegated_renderer_layer_impl.cc',
149         'layers/delegated_renderer_layer_impl.h',
150         'layers/draw_properties.h',
151         'layers/heads_up_display_layer.cc',
152         'layers/heads_up_display_layer.h',
153         'layers/heads_up_display_layer_impl.cc',
154         'layers/heads_up_display_layer_impl.h',
155         'layers/image_layer.cc',
156         'layers/image_layer.h',
157         'layers/io_surface_layer.cc',
158         'layers/io_surface_layer.h',
159         'layers/io_surface_layer_impl.cc',
160         'layers/io_surface_layer_impl.h',
161         'layers/layer.cc',
162         'layers/layer.h',
163         'layers/layer_client.h',
164         'layers/layer_impl.cc',
165         'layers/layer_impl.h',
166         'layers/layer_iterator.h',
167         'layers/layer_lists.cc',
168         'layers/layer_lists.h',
169         'layers/layer_position_constraint.cc',
170         'layers/layer_position_constraint.h',
171         'layers/layer_utils.cc',
172         'layers/layer_utils.h',
173         'layers/nine_patch_layer.cc',
174         'layers/nine_patch_layer.h',
175         'layers/nine_patch_layer_impl.cc',
176         'layers/nine_patch_layer_impl.h',
177         'layers/paint_properties.h',
178         'layers/painted_scrollbar_layer.cc',
179         'layers/painted_scrollbar_layer.h',
180         'layers/painted_scrollbar_layer_impl.cc',
181         'layers/painted_scrollbar_layer_impl.h',
182         'layers/picture_image_layer.cc',
183         'layers/picture_image_layer.h',
184         'layers/picture_image_layer_impl.cc',
185         'layers/picture_image_layer_impl.h',
186         'layers/picture_layer.cc',
187         'layers/picture_layer.h',
188         'layers/picture_layer_impl.cc',
189         'layers/picture_layer_impl.h',
190         'layers/quad_sink.h',
191         'layers/render_pass_sink.h',
192         'layers/render_surface.cc',
193         'layers/render_surface.h',
194         'layers/render_surface_impl.cc',
195         'layers/render_surface_impl.h',
196         'layers/scrollbar_layer_impl_base.cc',
197         'layers/scrollbar_layer_impl_base.h',
198         'layers/scrollbar_layer_interface.h',
199         'layers/solid_color_layer.cc',
200         'layers/solid_color_layer.h',
201         'layers/solid_color_layer_impl.cc',
202         'layers/solid_color_layer_impl.h',
203         'layers/solid_color_scrollbar_layer.cc',
204         'layers/solid_color_scrollbar_layer.h',
205         'layers/solid_color_scrollbar_layer_impl.cc',
206         'layers/solid_color_scrollbar_layer_impl.h',
207         'layers/surface_layer.cc',
208         'layers/surface_layer.h',
209         'layers/surface_layer_impl.cc',
210         'layers/surface_layer_impl.h',
211         'layers/texture_layer.cc',
212         'layers/texture_layer.h',
213         'layers/texture_layer_client.h',
214         'layers/texture_layer_impl.cc',
215         'layers/texture_layer_impl.h',
216         'layers/tiled_layer.cc',
217         'layers/tiled_layer.h',
218         'layers/tiled_layer_impl.cc',
219         'layers/tiled_layer_impl.h',
220         'layers/ui_resource_layer.cc',
221         'layers/ui_resource_layer.h',
222         'layers/ui_resource_layer_impl.cc',
223         'layers/ui_resource_layer_impl.h',
224         'layers/video_frame_provider.h',
225         'layers/video_frame_provider_client_impl.cc',
226         'layers/video_frame_provider_client_impl.h',
227         'layers/video_layer.cc',
228         'layers/video_layer.h',
229         'layers/video_layer_impl.cc',
230         'layers/video_layer_impl.h',
231         'output/begin_frame_args.cc',
232         'output/begin_frame_args.h',
233         'output/compositor_frame.cc',
234         'output/compositor_frame.h',
235         'output/compositor_frame_ack.cc',
236         'output/compositor_frame_ack.h',
237         'output/compositor_frame_metadata.cc',
238         'output/compositor_frame_metadata.h',
239         'output/context_provider.cc',
240         'output/context_provider.h',
241         'output/copy_output_request.cc',
242         'output/copy_output_request.h',
243         'output/copy_output_result.cc',
244         'output/copy_output_result.h',
245         'output/delegated_frame_data.h',
246         'output/delegated_frame_data.cc',
247         'output/delegating_renderer.cc',
248         'output/delegating_renderer.h',
249         'output/direct_renderer.cc',
250         'output/direct_renderer.h',
251         'output/filter_operation.cc',
252         'output/filter_operation.h',
253         'output/filter_operations.cc',
254         'output/filter_operations.h',
255         'output/geometry_binding.cc',
256         'output/geometry_binding.h',
257         'output/gl_frame_data.h',
258         'output/gl_frame_data.cc',
259         'output/gl_renderer.cc',
260         'output/gl_renderer.h',
261         'output/gl_renderer_draw_cache.cc',
262         'output/gl_renderer_draw_cache.h',
263         'output/managed_memory_policy.cc',
264         'output/managed_memory_policy.h',
265         'output/output_surface.cc',
266         'output/output_surface.h',
267         'output/output_surface_client.h',
268         'output/overlay_candidate.cc',
269         'output/overlay_candidate.h',
270         'output/overlay_candidate_validator.h',
271         'output/overlay_processor.cc',
272         'output/overlay_processor.h',
273         'output/overlay_strategy_single_on_top.cc',
274         'output/overlay_strategy_single_on_top.h',
275         'output/program_binding.cc',
276         'output/program_binding.h',
277         'output/render_surface_filters.cc',
278         'output/render_surface_filters.h',
279         'output/renderer.cc',
280         'output/renderer.h',
281         'output/shader.cc',
282         'output/shader.h',
283         'output/software_frame_data.cc',
284         'output/software_frame_data.h',
285         'output/software_output_device.cc',
286         'output/software_output_device.h',
287         'output/software_renderer.cc',
288         'output/software_renderer.h',
289         'quads/checkerboard_draw_quad.cc',
290         'quads/checkerboard_draw_quad.h',
291         'quads/content_draw_quad_base.cc',
292         'quads/content_draw_quad_base.h',
293         'quads/debug_border_draw_quad.cc',
294         'quads/debug_border_draw_quad.h',
295         'quads/draw_quad.cc',
296         'quads/draw_quad.h',
297         'quads/io_surface_draw_quad.cc',
298         'quads/io_surface_draw_quad.h',
299         'quads/picture_draw_quad.cc',
300         'quads/picture_draw_quad.h',
301         'quads/render_pass.cc',
302         'quads/render_pass.h',
303         'quads/render_pass_draw_quad.cc',
304         'quads/render_pass_draw_quad.h',
305         'quads/shared_quad_state.cc',
306         'quads/shared_quad_state.h',
307         'quads/solid_color_draw_quad.cc',
308         'quads/solid_color_draw_quad.h',
309         'quads/stream_video_draw_quad.cc',
310         'quads/stream_video_draw_quad.h',
311         'quads/surface_draw_quad.cc',
312         'quads/surface_draw_quad.h',
313         'quads/texture_draw_quad.cc',
314         'quads/texture_draw_quad.h',
315         'quads/tile_draw_quad.cc',
316         'quads/tile_draw_quad.h',
317         'quads/yuv_video_draw_quad.cc',
318         'quads/yuv_video_draw_quad.h',
319         'resources/bitmap_content_layer_updater.cc',
320         'resources/bitmap_content_layer_updater.h',
321         'resources/bitmap_skpicture_content_layer_updater.cc',
322         'resources/bitmap_skpicture_content_layer_updater.h',
323         'resources/content_layer_updater.cc',
324         'resources/content_layer_updater.h',
325         'resources/direct_raster_worker_pool.cc',
326         'resources/direct_raster_worker_pool.h',
327         'resources/image_layer_updater.cc',
328         'resources/image_layer_updater.h',
329         'resources/image_raster_worker_pool.cc',
330         'resources/image_raster_worker_pool.h',
331         'resources/layer_painter.h',
332         'resources/layer_quad.cc',
333         'resources/layer_quad.h',
334         'resources/layer_tiling_data.cc',
335         'resources/layer_tiling_data.h',
336         'resources/layer_updater.cc',
337         'resources/layer_updater.h',
338         'resources/managed_tile_state.cc',
339         'resources/managed_tile_state.h',
340         'resources/memory_history.cc',
341         'resources/memory_history.h',
342         'resources/picture.cc',
343         'resources/picture.h',
344         'resources/picture_layer_tiling.cc',
345         'resources/picture_layer_tiling.h',
346         'resources/picture_layer_tiling_set.cc',
347         'resources/picture_layer_tiling_set.h',
348         'resources/picture_pile.cc',
349         'resources/picture_pile.h',
350         'resources/picture_pile_base.cc',
351         'resources/picture_pile_base.h',
352         'resources/picture_pile_impl.cc',
353         'resources/picture_pile_impl.h',
354         'resources/pixel_buffer_raster_worker_pool.cc',
355         'resources/pixel_buffer_raster_worker_pool.h',
356         'resources/platform_color.h',
357         'resources/prioritized_resource.cc',
358         'resources/prioritized_resource.h',
359         'resources/prioritized_resource_manager.cc',
360         'resources/prioritized_resource_manager.h',
361         'resources/prioritized_tile_set.cc',
362         'resources/prioritized_tile_set.h',
363         'resources/priority_calculator.cc',
364         'resources/priority_calculator.h',
365         'resources/raster_mode.cc',
366         'resources/raster_mode.h',
367         'resources/raster_worker_pool.cc',
368         'resources/raster_worker_pool.h',
369         'resources/raster_worker_pool_delegate.cc',
370         'resources/raster_worker_pool_delegate.h',
371         'resources/release_callback.h',
372         'resources/resource.cc',
373         'resources/resource.h',
374         'resources/resource_format.h',
375         'resources/resource_format.cc',
376         'resources/resource_pool.cc',
377         'resources/resource_pool.h',
378         'resources/resource_provider.cc',
379         'resources/resource_provider.h',
380         'resources/resource_update.cc',
381         'resources/resource_update.h',
382         'resources/resource_update_controller.cc',
383         'resources/resource_update_controller.h',
384         'resources/resource_update_queue.cc',
385         'resources/resource_update_queue.h',
386         'resources/returned_resource.h',
387         'resources/scoped_resource.cc',
388         'resources/scoped_resource.h',
389         'resources/scoped_ui_resource.cc',
390         'resources/scoped_ui_resource.h',
391         'resources/shared_bitmap.cc',
392         'resources/shared_bitmap.h',
393         'resources/shared_bitmap_manager.h',
394         'resources/single_release_callback.cc',
395         'resources/single_release_callback.h',
396         'resources/skpicture_content_layer_updater.cc',
397         'resources/skpicture_content_layer_updater.h',
398         'resources/task_graph_runner.cc',
399         'resources/task_graph_runner.h',
400         'resources/texture_mailbox.cc',
401         'resources/texture_mailbox.h',
402         'resources/texture_mailbox_deleter.cc',
403         'resources/texture_mailbox_deleter.h',
404         'resources/texture_uploader.cc',
405         'resources/texture_uploader.h',
406         'resources/tile.cc',
407         'resources/tile.h',
408         'resources/tile_manager.cc',
409         'resources/tile_manager.h',
410         'resources/tile_priority.cc',
411         'resources/tile_priority.h',
412         'resources/transferable_resource.cc',
413         'resources/transferable_resource.h',
414         'resources/ui_resource_bitmap.cc',
415         'resources/ui_resource_bitmap.h',
416         'resources/ui_resource_client.h',
417         'resources/ui_resource_request.cc',
418         'resources/ui_resource_request.h',
419         'resources/video_resource_updater.cc',
420         'resources/video_resource_updater.h',
421         'scheduler/delay_based_time_source.cc',
422         'scheduler/delay_based_time_source.h',
423         'scheduler/draw_swap_readback_result.h',
424         'scheduler/frame_rate_controller.cc',
425         'scheduler/frame_rate_controller.h',
426         'scheduler/scheduler.cc',
427         'scheduler/scheduler.h',
428         'scheduler/scheduler_settings.cc',
429         'scheduler/scheduler_settings.h',
430         'scheduler/scheduler_state_machine.cc',
431         'scheduler/scheduler_state_machine.h',
432         'scheduler/time_source.h',
433         'trees/blocking_task_runner.cc',
434         'trees/blocking_task_runner.h',
435         'trees/damage_tracker.cc',
436         'trees/damage_tracker.h',
437         'trees/layer_sorter.cc',
438         'trees/layer_sorter.h',
439         'trees/layer_tree_host.cc',
440         'trees/layer_tree_host.h',
441         'trees/layer_tree_host_client.h',
442         'trees/layer_tree_host_common.cc',
443         'trees/layer_tree_host_common.h',
444         'trees/layer_tree_host_impl.cc',
445         'trees/layer_tree_host_impl.h',
446         'trees/layer_tree_impl.cc',
447         'trees/layer_tree_impl.h',
448         'trees/layer_tree_settings.cc',
449         'trees/layer_tree_settings.h',
450         'trees/occlusion_tracker.cc',
451         'trees/occlusion_tracker.h',
452         'trees/proxy.cc',
453         'trees/proxy.h',
454         'trees/proxy_timing_history.cc',
455         'trees/proxy_timing_history.h',
456         'trees/quad_culler.cc',
457         'trees/quad_culler.h',
458         'trees/single_thread_proxy.cc',
459         'trees/single_thread_proxy.h',
460         'trees/thread_proxy.cc',
461         'trees/thread_proxy.h',
462         'trees/tree_synchronizer.cc',
463         'trees/tree_synchronizer.h',
464       ],
465       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
466       'msvs_disabled_warnings': [ 4267, ],
467     },
468     {
469       'target_name': 'cc_surfaces',
470       'type': '<(component)',
471       'dependencies': [
472         'cc',
473         '<(DEPTH)/base/base.gyp:base',
474         '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
475         '<(DEPTH)/skia/skia.gyp:skia',
476         '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
477         '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
478       ],
479       'defines': [
480         'CC_SURFACES_IMPLEMENTATION=1',
481       ],
482       'sources': [
483         'surfaces/surface.cc',
484         'surfaces/surface.h',
485         'surfaces/surface_aggregator.cc',
486         'surfaces/surface_aggregator.h',
487         'surfaces/surface_manager.cc',
488         'surfaces/surface_manager.h',
489         'surfaces/surfaces_export.h',
490       ],
491     },
492   ],