Merge from Chromium at DEPS revision r167172

This commit was generated by merge_to_master.py.

Change-Id: Ib8d56fd5ae39a2d7e8c91dcd76cc6d13f25f2aab
diff --git a/cc/cc.gyp b/cc/cc.gyp
new file mode 100644
index 0000000..62c54ad
--- /dev/null
+++ b/cc/cc.gyp
@@ -0,0 +1,282 @@
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+  'variables': {
+    'cc_source_files': [
+      'active_animation.cc',
+      'active_animation.h',
+      'animation_curve.cc',
+      'animation_curve.h',
+      'animation_events.h',
+      'append_quads_data.h',
+      'bitmap_content_layer_updater.cc',
+      'bitmap_content_layer_updater.h',
+      'bitmap_skpicture_content_layer_updater.cc',
+      'bitmap_skpicture_content_layer_updater.h',
+      'caching_bitmap_content_layer_updater.cc',
+      'caching_bitmap_content_layer_updater.h',
+      'checkerboard_draw_quad.cc',
+      'checkerboard_draw_quad.h',
+      'completion_event.h',
+      'content_layer.cc',
+      'content_layer.h',
+      'content_layer_client.h',
+      'content_layer_updater.cc',
+      'content_layer_updater.h',
+      'contents_scaling_layer.cc',
+      'contents_scaling_layer.h',
+      'damage_tracker.cc',
+      'damage_tracker.h',
+      'debug_border_draw_quad.cc',
+      'debug_border_draw_quad.h',
+      'debug_rect_history.cc',
+      'debug_rect_history.h',
+      'delay_based_time_source.cc',
+      'delay_based_time_source.h',
+      'delegated_renderer_layer.cc',
+      'delegated_renderer_layer.h',
+      'delegated_renderer_layer_impl.cc',
+      'delegated_renderer_layer_impl.h',
+      'direct_renderer.cc',
+      'direct_renderer.h',
+      'draw_quad.cc',
+      'draw_quad.h',
+      'font_atlas.cc',
+      'font_atlas.h',
+      'frame_rate_controller.cc',
+      'frame_rate_controller.h',
+      'frame_rate_counter.cc',
+      'frame_rate_counter.h',
+      'geometry.h',
+      'geometry_binding.cc',
+      'geometry_binding.h',
+      'gl_renderer.cc',
+      'gl_renderer.h',
+      'graphics_context.h',
+      'hash_pair.h',
+      'heads_up_display_layer.cc',
+      'heads_up_display_layer.h',
+      'heads_up_display_layer_impl.cc',
+      'heads_up_display_layer_impl.h',
+      'image_layer_updater.cc',
+      'image_layer_updater.h',
+      'image_layer.cc',
+      'image_layer.h',
+      'input_handler.h',
+      'io_surface_draw_quad.cc',
+      'io_surface_draw_quad.h',
+      'io_surface_layer.cc',
+      'io_surface_layer.h',
+      'io_surface_layer_impl.cc',
+      'io_surface_layer_impl.h',
+      'keyframed_animation_curve.cc',
+      'keyframed_animation_curve.h',
+      'layer.cc',
+      'layer.h',
+      'layer_animation_controller.cc',
+      'layer_animation_controller.h',
+      'layer_impl.cc',
+      'layer_impl.h',
+      'layer_iterator.cc',
+      'layer_iterator.h',
+      'layer_painter.h',
+      'layer_quad.cc',
+      'layer_quad.h',
+      'layer_sorter.cc',
+      'layer_sorter.h',
+      'layer_tiling_data.cc',
+      'layer_tiling_data.h',
+      'layer_tree_host.cc',
+      'layer_tree_host.h',
+      'layer_tree_host_client.h',
+      'layer_tree_host_common.cc',
+      'layer_tree_host_common.h',
+      'layer_tree_host_impl.cc',
+      'layer_tree_host_impl.h',
+      'layer_updater.cc',
+      'layer_updater.h',
+      'managed_memory_policy.cc',
+      'managed_memory_policy.h',
+      'math_util.cc',
+      'math_util.h',
+      'nine_patch_layer.cc',
+      'nine_patch_layer.h',
+      'nine_patch_layer_impl.cc',
+      'nine_patch_layer_impl.h',
+      'occlusion_tracker.cc',
+      'occlusion_tracker.h',
+      'overdraw_metrics.cc',
+      'overdraw_metrics.h',
+      'page_scale_animation.cc',
+      'page_scale_animation.h',
+      'picture.cc',
+      'picture.h',
+      'picture_layer.cc',
+      'picture_layer.h',
+      'picture_layer_impl.cc',
+      'picture_layer_impl.h',
+      'picture_pile.cc',
+      'picture_pile.h',
+      'platform_color.h',
+      'prioritized_resource.cc',
+      'prioritized_resource.h',
+      'prioritized_resource_manager.cc',
+      'prioritized_resource_manager.h',
+      'priority_calculator.cc',
+      'priority_calculator.h',
+      'program_binding.cc',
+      'program_binding.h',
+      'proxy.cc',
+      'proxy.h',
+      'quad_culler.cc',
+      'quad_culler.h',
+      'quad_sink.h',
+      'rate_limiter.cc',
+      'rate_limiter.h',
+      'region.cc',
+      'region.h',
+      'render_pass.cc',
+      'render_pass.h',
+      'render_pass_draw_quad.cc',
+      'render_pass_draw_quad.h',
+      'render_pass_sink.h',
+      'render_surface.cc',
+      'render_surface.h',
+      'render_surface_filters.cc',
+      'render_surface_filters.h',
+      'render_surface_impl.cc',
+      'render_surface_impl.h',
+      'renderer.cc',
+      'renderer.h',
+      'rendering_stats.cc',
+      'rendering_stats.h',
+      'resource.cc',
+      'resource.h',
+      'resource_provider.cc',
+      'resource_provider.h',
+      'resource_update.cc',
+      'resource_update.h',
+      'resource_update_controller.cc',
+      'resource_update_controller.h',
+      'resource_update_queue.cc',
+      'resource_update_queue.h',
+      'scheduler.cc',
+      'scheduler.h',
+      'scheduler_state_machine.cc',
+      'scheduler_state_machine.h',
+      'scoped_ptr_deque.h',
+      'scoped_ptr_hash_map.h',
+      'scoped_ptr_vector.h',
+      'scoped_resource.cc',
+      'scoped_resource.h',
+      'scoped_thread_proxy.cc',
+      'scoped_thread_proxy.h',
+      'scrollbar_animation_controller.cc',
+      'scrollbar_animation_controller.h',
+      'scrollbar_animation_controller_linear_fade.cc',
+      'scrollbar_animation_controller_linear_fade.h',
+      'scrollbar_geometry_fixed_thumb.cc',
+      'scrollbar_geometry_fixed_thumb.h',
+      'scrollbar_geometry_stub.cc',
+      'scrollbar_geometry_stub.h',
+      'scrollbar_layer.cc',
+      'scrollbar_layer.h',
+      'scrollbar_layer_impl.cc',
+      'scrollbar_layer_impl.h',
+      'settings.cc',
+      'settings.h',
+      'shader.cc',
+      'shader.h',
+      'shared_quad_state.cc',
+      'shared_quad_state.h',
+      'single_thread_proxy.cc',
+      'single_thread_proxy.h',
+      'skpicture_content_layer_updater.cc',
+      'skpicture_content_layer_updater.h',
+      'software_renderer.cc',
+      'software_renderer.h',
+      'solid_color_draw_quad.cc',
+      'solid_color_draw_quad.h',
+      'solid_color_layer.cc',
+      'solid_color_layer.h',
+      'solid_color_layer_impl.cc',
+      'solid_color_layer_impl.h',
+      'stream_video_draw_quad.cc',
+      'stream_video_draw_quad.h',
+      'switches.cc',
+      'switches.h',
+      'texture_copier.cc',
+      'texture_copier.h',
+      'texture_draw_quad.cc',
+      'texture_draw_quad.h',
+      'texture_layer.cc',
+      'texture_layer.h',
+      'texture_layer_client.h',
+      'texture_layer_impl.cc',
+      'texture_layer_impl.h',
+      'texture_uploader.cc',
+      'texture_uploader.h',
+      'thread.h',
+      'thread_impl.cc',
+      'thread_impl.h',
+      'thread_proxy.cc',
+      'thread_proxy.h',
+      'tile.cc',
+      'tile.h',
+      'tile_draw_quad.cc',
+      'tile_draw_quad.h',
+      'tile_manager.cc',
+      'tile_manager.h',
+      'tile_priority.h',
+      'tiled_layer.cc',
+      'tiled_layer.h',
+      'tiled_layer_impl.cc',
+      'tiled_layer_impl.h',
+      'tiling_data.cc',
+      'tiling_data.h',
+      'time_source.h',
+      'timing_function.cc',
+      'timing_function.h',
+      'transferable_resource.cc',
+      'transferable_resource.h',
+      'tree_synchronizer.cc',
+      'tree_synchronizer.h',
+      'video_layer.cc',
+      'video_layer.h',
+      'video_layer_impl.cc',
+      'video_layer_impl.h',
+      'yuv_video_draw_quad.cc',
+      'yuv_video_draw_quad.h',
+    ],
+  },
+  'targets': [
+    {
+      'target_name': 'cc',
+      'type': '<(component)',
+      'includes': [
+        'cc.gypi',
+      ],
+      'dependencies': [
+        '<(DEPTH)/base/base.gyp:base',
+        '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
+        '<(DEPTH)/skia/skia.gyp:skia',
+        '<(DEPTH)/media/media.gyp:media',
+        '<(DEPTH)/ui/gl/gl.gyp:gl',
+        '<(DEPTH)/ui/ui.gyp:ui',
+        '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit',
+      ],
+      'defines': [
+        'CC_IMPLEMENTATION=1',
+      ],
+      'include_dirs': [
+        '<(webkit_src_dir)/Source/Platform/chromium',
+        '<@(cc_stubs_dirs)',
+      ],
+      'sources': [
+        '<@(cc_source_files)',
+      ],
+    },
+  ],
+}