cc: Added inline to Tile::IsReadyToDraw
[chromium-blink-merge.git] / cc / cc.gyp
blob4d04c3bc3faaa1b83e1dafdf4764fc81b2c40c4e
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)/third_party/WebKit/public/blink.gyp:blink_minimal',
20         '<(DEPTH)/ui/gl/gl.gyp:gl',
21         '<(DEPTH)/ui/ui.gyp:ui',
22       ],
23       'defines': [
24         'CC_IMPLEMENTATION=1',
25       ],
26       'sources': [
27         'animation/animation.cc',
28         'animation/animation.h',
29         'animation/animation_curve.cc',
30         'animation/animation_curve.h',
31         'animation/animation_delegate.h',
32         'animation/animation_events.cc',
33         'animation/animation_events.h',
34         'animation/animation_id_provider.cc',
35         'animation/animation_id_provider.h',
36         'animation/animation_registrar.cc',
37         'animation/animation_registrar.h',
38         'animation/keyframed_animation_curve.cc',
39         'animation/keyframed_animation_curve.h',
40         'animation/layer_animation_controller.cc',
41         'animation/layer_animation_controller.h',
42         'animation/layer_animation_event_observer.h',
43         'animation/layer_animation_value_observer.h',
44         'animation/scrollbar_animation_controller.h',
45         'animation/scrollbar_animation_controller_linear_fade.cc',
46         'animation/scrollbar_animation_controller_linear_fade.h',
47         'animation/timing_function.cc',
48         'animation/timing_function.h',
49         'animation/transform_operation.cc',
50         'animation/transform_operation.h',
51         'animation/transform_operations.cc',
52         'animation/transform_operations.h',
53         'base/completion_event.h',
54         'base/invalidation_region.cc',
55         'base/invalidation_region.h',
56         'base/math_util.cc',
57         'base/math_util.h',
58         'base/region.cc',
59         'base/region.h',
60         'base/scoped_ptr_algorithm.h',
61         'base/scoped_ptr_deque.h',
62         'base/scoped_ptr_vector.h',
63         'base/switches.cc',
64         'base/switches.h',
65         'base/tiling_data.cc',
66         'base/tiling_data.h',
67         'base/util.h',
68         'debug/debug_colors.cc',
69         'debug/debug_colors.h',
70         'debug/debug_rect_history.cc',
71         'debug/debug_rect_history.h',
72         'debug/devtools_instrumentation.h',
73         'debug/fake_web_graphics_context_3d.cc',
74         'debug/fake_web_graphics_context_3d.h',
75         'debug/frame_rate_counter.cc',
76         'debug/frame_rate_counter.h',
77         'debug/layer_tree_debug_state.cc',
78         'debug/layer_tree_debug_state.h',
79         'debug/overdraw_metrics.cc',
80         'debug/overdraw_metrics.h',
81         'debug/paint_time_counter.cc',
82         'debug/paint_time_counter.h',
83         'debug/rendering_stats.cc',
84         'debug/rendering_stats.h',
85         'debug/rendering_stats_instrumentation.cc',
86         'debug/rendering_stats_instrumentation.h',
87         'debug/ring_buffer.h',
88         'debug/test_context_provider.cc',
89         'debug/test_context_provider.h',
90         'debug/test_web_graphics_context_3d.cc',
91         'debug/test_web_graphics_context_3d.h',
92         'debug/traced_picture.cc',
93         'debug/traced_picture.h',
94         'debug/traced_value.cc',
95         'debug/traced_value.h',
96         'input/input_handler.h',
97         'input/page_scale_animation.cc',
98         'input/page_scale_animation.h',
99         'input/top_controls_manager.cc',
100         'input/top_controls_manager.h',
101         'input/top_controls_manager_client.h',
102         'layers/append_quads_data.h',
103         'layers/compositing_reasons.h',
104         'layers/content_layer.cc',
105         'layers/content_layer.h',
106         'layers/content_layer_client.h',
107         'layers/contents_scaling_layer.cc',
108         'layers/contents_scaling_layer.h',
109         'layers/delegated_renderer_layer.cc',
110         'layers/delegated_renderer_layer.h',
111         'layers/delegated_renderer_layer_client.h',
112         'layers/delegated_renderer_layer_impl.cc',
113         'layers/delegated_renderer_layer_impl.h',
114         'layers/draw_properties.h',
115         'layers/heads_up_display_layer.cc',
116         'layers/heads_up_display_layer.h',
117         'layers/heads_up_display_layer_impl.cc',
118         'layers/heads_up_display_layer_impl.h',
119         'layers/image_layer.cc',
120         'layers/image_layer.h',
121         'layers/io_surface_layer.cc',
122         'layers/io_surface_layer.h',
123         'layers/io_surface_layer_impl.cc',
124         'layers/io_surface_layer_impl.h',
125         'layers/layer.cc',
126         'layers/layer.h',
127         'layers/layer_client.h',
128         'layers/layer_impl.cc',
129         'layers/layer_impl.h',
130         'layers/layer_iterator.cc',
131         'layers/layer_iterator.h',
132         'layers/layer_lists.cc',
133         'layers/layer_lists.h',
134         'layers/layer_position_constraint.cc',
135         'layers/layer_position_constraint.h',
136         'layers/nine_patch_layer.cc',
137         'layers/nine_patch_layer.h',
138         'layers/nine_patch_layer_impl.cc',
139         'layers/nine_patch_layer_impl.h',
140         'layers/paint_properties.h',
141         'layers/painted_scrollbar_layer.cc',
142         'layers/painted_scrollbar_layer.h',
143         'layers/painted_scrollbar_layer_impl.cc',
144         'layers/painted_scrollbar_layer_impl.h',
145         'layers/picture_image_layer.cc',
146         'layers/picture_image_layer.h',
147         'layers/picture_image_layer_impl.cc',
148         'layers/picture_image_layer_impl.h',
149         'layers/picture_layer.cc',
150         'layers/picture_layer.h',
151         'layers/picture_layer_impl.cc',
152         'layers/picture_layer_impl.h',
153         'layers/quad_sink.h',
154         'layers/render_pass_sink.h',
155         'layers/render_surface.cc',
156         'layers/render_surface.h',
157         'layers/render_surface_impl.cc',
158         'layers/render_surface_impl.h',
159         'layers/scrollbar_layer_impl_base.cc',
160         'layers/scrollbar_layer_impl_base.h',
161         'layers/scrollbar_layer_interface.h',
162         'layers/solid_color_layer.cc',
163         'layers/solid_color_layer.h',
164         'layers/solid_color_layer_impl.cc',
165         'layers/solid_color_layer_impl.h',
166         'layers/solid_color_scrollbar_layer.cc',
167         'layers/solid_color_scrollbar_layer.h',
168         'layers/solid_color_scrollbar_layer_impl.cc',
169         'layers/solid_color_scrollbar_layer_impl.h',
170         'layers/texture_layer.cc',
171         'layers/texture_layer.h',
172         'layers/texture_layer_client.h',
173         'layers/texture_layer_impl.cc',
174         'layers/texture_layer_impl.h',
175         'layers/tiled_layer.cc',
176         'layers/tiled_layer.h',
177         'layers/tiled_layer_impl.cc',
178         'layers/tiled_layer_impl.h',
179         'layers/video_frame_provider.h',
180         'layers/video_frame_provider_client_impl.cc',
181         'layers/video_frame_provider_client_impl.h',
182         'layers/video_layer.cc',
183         'layers/video_layer.h',
184         'layers/video_layer_impl.cc',
185         'layers/video_layer_impl.h',
186         'output/begin_frame_args.cc',
187         'output/begin_frame_args.h',
188         'output/compositor_frame.cc',
189         'output/compositor_frame.h',
190         'output/compositor_frame_ack.cc',
191         'output/compositor_frame_ack.h',
192         'output/compositor_frame_metadata.cc',
193         'output/compositor_frame_metadata.h',
194         'output/context_provider.cc',
195         'output/context_provider.h',
196         'output/copy_output_request.cc',
197         'output/copy_output_request.h',
198         'output/copy_output_result.cc',
199         'output/copy_output_result.h',
200         'output/delegated_frame_data.h',
201         'output/delegated_frame_data.cc',
202         'output/delegating_renderer.cc',
203         'output/delegating_renderer.h',
204         'output/direct_renderer.cc',
205         'output/direct_renderer.h',
206         'output/filter_operation.cc',
207         'output/filter_operation.h',
208         'output/filter_operations.cc',
209         'output/filter_operations.h',
210         'output/geometry_binding.cc',
211         'output/geometry_binding.h',
212         'output/gl_frame_data.h',
213         'output/gl_frame_data.cc',
214         'output/gl_renderer.cc',
215         'output/gl_renderer.h',
216         'output/gl_renderer_draw_cache.cc',
217         'output/gl_renderer_draw_cache.h',
218         'output/managed_memory_policy.cc',
219         'output/managed_memory_policy.h',
220         'output/output_surface.cc',
221         'output/output_surface.h',
222         'output/output_surface_client.h',
223         'output/program_binding.cc',
224         'output/program_binding.h',
225         'output/render_surface_filters.cc',
226         'output/render_surface_filters.h',
227         'output/renderer.cc',
228         'output/renderer.h',
229         'output/shader.cc',
230         'output/shader.h',
231         'output/software_frame_data.cc',
232         'output/software_frame_data.h',
233         'output/software_output_device.cc',
234         'output/software_output_device.h',
235         'output/software_renderer.cc',
236         'output/software_renderer.h',
237         'quads/checkerboard_draw_quad.cc',
238         'quads/checkerboard_draw_quad.h',
239         'quads/content_draw_quad_base.cc',
240         'quads/content_draw_quad_base.h',
241         'quads/debug_border_draw_quad.cc',
242         'quads/debug_border_draw_quad.h',
243         'quads/draw_quad.cc',
244         'quads/draw_quad.h',
245         'quads/io_surface_draw_quad.cc',
246         'quads/io_surface_draw_quad.h',
247         'quads/picture_draw_quad.cc',
248         'quads/picture_draw_quad.h',
249         'quads/render_pass.cc',
250         'quads/render_pass.h',
251         'quads/render_pass_draw_quad.cc',
252         'quads/render_pass_draw_quad.h',
253         'quads/shared_quad_state.cc',
254         'quads/shared_quad_state.h',
255         'quads/solid_color_draw_quad.cc',
256         'quads/solid_color_draw_quad.h',
257         'quads/stream_video_draw_quad.cc',
258         'quads/stream_video_draw_quad.h',
259         'quads/texture_draw_quad.cc',
260         'quads/texture_draw_quad.h',
261         'quads/tile_draw_quad.cc',
262         'quads/tile_draw_quad.h',
263         'quads/yuv_video_draw_quad.cc',
264         'quads/yuv_video_draw_quad.h',
265         'resources/bitmap_content_layer_updater.cc',
266         'resources/bitmap_content_layer_updater.h',
267         'resources/bitmap_skpicture_content_layer_updater.cc',
268         'resources/bitmap_skpicture_content_layer_updater.h',
269         'resources/caching_bitmap_content_layer_updater.cc',
270         'resources/caching_bitmap_content_layer_updater.h',
271         'resources/content_layer_updater.cc',
272         'resources/content_layer_updater.h',
273         'resources/image_layer_updater.cc',
274         'resources/image_layer_updater.h',
275         'resources/image_raster_worker_pool.cc',
276         'resources/image_raster_worker_pool.h',
277         'resources/layer_painter.h',
278         'resources/layer_quad.cc',
279         'resources/layer_quad.h',
280         'resources/layer_tiling_data.cc',
281         'resources/layer_tiling_data.h',
282         'resources/layer_updater.cc',
283         'resources/layer_updater.h',
284         'resources/managed_tile_state.cc',
285         'resources/managed_tile_state.h',
286         'resources/memory_history.cc',
287         'resources/memory_history.h',
288         'resources/picture.cc',
289         'resources/picture.h',
290         'resources/picture_layer_tiling.cc',
291         'resources/picture_layer_tiling.h',
292         'resources/picture_layer_tiling_set.cc',
293         'resources/picture_layer_tiling_set.h',
294         'resources/picture_pile.cc',
295         'resources/picture_pile.h',
296         'resources/picture_pile_base.cc',
297         'resources/picture_pile_base.h',
298         'resources/picture_pile_impl.cc',
299         'resources/picture_pile_impl.h',
300         'resources/pixel_buffer_raster_worker_pool.cc',
301         'resources/pixel_buffer_raster_worker_pool.h',
302         'resources/platform_color.h',
303         'resources/prioritized_resource.cc',
304         'resources/prioritized_resource.h',
305         'resources/prioritized_resource_manager.cc',
306         'resources/prioritized_resource_manager.h',
307         'resources/prioritized_tile_set.cc',
308         'resources/prioritized_tile_set.h',
309         'resources/priority_calculator.cc',
310         'resources/priority_calculator.h',
311         'resources/raster_mode.cc',
312         'resources/raster_mode.h',
313         'resources/raster_worker_pool.cc',
314         'resources/raster_worker_pool.h',
315         'resources/resource.cc',
316         'resources/resource.h',
317         'resources/resource_pool.cc',
318         'resources/resource_pool.h',
319         'resources/resource_provider.cc',
320         'resources/resource_provider.h',
321         'resources/resource_update.cc',
322         'resources/resource_update.h',
323         'resources/resource_update_controller.cc',
324         'resources/resource_update_controller.h',
325         'resources/resource_update_queue.cc',
326         'resources/resource_update_queue.h',
327         'resources/returned_resource.h',
328         'resources/scoped_resource.cc',
329         'resources/scoped_resource.h',
330         'resources/scoped_ui_resource.cc',
331         'resources/scoped_ui_resource.h',
332         'resources/skpicture_content_layer_updater.cc',
333         'resources/skpicture_content_layer_updater.h',
334         'resources/sync_point_helper.cc',
335         'resources/sync_point_helper.h',
336         'resources/texture_mailbox.cc',
337         'resources/texture_mailbox.h',
338         'resources/tile.cc',
339         'resources/tile.h',
340         'resources/tile_manager.cc',
341         'resources/tile_manager.h',
342         'resources/tile_priority.cc',
343         'resources/tile_priority.h',
344         'resources/transferable_resource.cc',
345         'resources/transferable_resource.h',
346         'resources/ui_resource_bitmap.cc',
347         'resources/ui_resource_bitmap.h',
348         'resources/ui_resource_client.h',
349         'resources/video_resource_updater.cc',
350         'resources/video_resource_updater.h',
351         'resources/worker_pool.cc',
352         'resources/worker_pool.h',
353         'scheduler/delay_based_time_source.cc',
354         'scheduler/delay_based_time_source.h',
355         'scheduler/frame_rate_controller.cc',
356         'scheduler/frame_rate_controller.h',
357         'scheduler/rate_limiter.cc',
358         'scheduler/rate_limiter.h',
359         'scheduler/rolling_time_delta_history.cc',
360         'scheduler/rolling_time_delta_history.h',
361         'scheduler/scheduler.cc',
362         'scheduler/scheduler.h',
363         'scheduler/scheduler_settings.cc',
364         'scheduler/scheduler_settings.h',
365         'scheduler/scheduler_state_machine.cc',
366         'scheduler/scheduler_state_machine.h',
367         'scheduler/texture_uploader.cc',
368         'scheduler/texture_uploader.h',
369         'scheduler/time_source.h',
370         'trees/blocking_task_runner.cc',
371         'trees/blocking_task_runner.h',
372         'trees/damage_tracker.cc',
373         'trees/damage_tracker.h',
374         'trees/layer_sorter.cc',
375         'trees/layer_sorter.h',
376         'trees/layer_tree_host.cc',
377         'trees/layer_tree_host.h',
378         'trees/layer_tree_host_client.h',
379         'trees/layer_tree_host_common.cc',
380         'trees/layer_tree_host_common.h',
381         'trees/layer_tree_host_impl.cc',
382         'trees/layer_tree_host_impl.h',
383         'trees/layer_tree_impl.cc',
384         'trees/layer_tree_impl.h',
385         'trees/layer_tree_settings.cc',
386         'trees/layer_tree_settings.h',
387         'trees/occlusion_tracker.cc',
388         'trees/occlusion_tracker.h',
389         'trees/proxy.cc',
390         'trees/proxy.h',
391         'trees/quad_culler.cc',
392         'trees/quad_culler.h',
393         'trees/single_thread_proxy.cc',
394         'trees/single_thread_proxy.h',
395         'trees/thread_proxy.cc',
396         'trees/thread_proxy.h',
397         'trees/tree_synchronizer.cc',
398         'trees/tree_synchronizer.h',
399       ],
400       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
401       'msvs_disabled_warnings': [ 4267, ],
402     },
403   ],