| OLD | NEW | 
|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be | 
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. | 
| 4 | 4 | 
| 5 import("//testing/test.gni") | 5 import("//testing/test.gni") | 
| 6 | 6 | 
| 7 component("cc") { | 7 component("cc") { | 
| 8   sources = [ | 8   sources = [ | 
| 9     "animation/animation.cc", | 9     "animation/animation.cc", | 
| 10     "animation/animation.h", | 10     "animation/animation.h", | 
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 528   # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 528   # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 
| 529   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 529   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 
| 530 | 530 | 
| 531   public_deps = [ | 531   public_deps = [ | 
| 532     "//cc/base", | 532     "//cc/base", | 
| 533     "//skia", | 533     "//skia", | 
| 534   ] | 534   ] | 
| 535   deps = [ | 535   deps = [ | 
| 536     "//base", | 536     "//base", | 
| 537     "//base/third_party/dynamic_annotations", | 537     "//base/third_party/dynamic_annotations", | 
|  | 538     "//cc:cc_opts", | 
| 538     "//cc/surfaces:surface_id", | 539     "//cc/surfaces:surface_id", | 
| 539     "//gpu", | 540     "//gpu", | 
| 540     "//gpu/command_buffer/client:gles2_interface", | 541     "//gpu/command_buffer/client:gles2_interface", | 
| 541     "//media", | 542     "//media", | 
| 542     "//ui/events:events_base", | 543     "//ui/events:events_base", | 
| 543     "//ui/gfx", | 544     "//ui/gfx", | 
| 544     "//ui/gfx/geometry", | 545     "//ui/gfx/geometry", | 
| 545   ] | 546   ] | 
| 546 | 547 | 
| 547   defines = [ "CC_IMPLEMENTATION=1" ] | 548   defines = [ "CC_IMPLEMENTATION=1" ] | 
| 548 | 549 | 
| 549   if (!is_debug && (is_win || is_android)) { | 550   if (!is_debug && (is_win || is_android)) { | 
| 550     configs -= [ "//build/config/compiler:optimize" ] | 551     configs -= [ "//build/config/compiler:optimize" ] | 
| 551     configs += [ "//build/config/compiler:optimize_max" ] | 552     configs += [ "//build/config/compiler:optimize_max" ] | 
| 552   } | 553   } | 
| 553 } | 554 } | 
| 554 | 555 | 
|  | 556 source_set("cc_opts") { | 
|  | 557   public_deps = [ | 
|  | 558     "//cc:cc_opts_sse", | 
|  | 559   ] | 
|  | 560 } | 
|  | 561 | 
|  | 562 source_set("cc_opts_sse") { | 
|  | 563   if (target_cpu == "x86" || target_cpu == "x64") { | 
|  | 564     deps = [ | 
|  | 565       "//base", | 
|  | 566     ] | 
|  | 567 | 
|  | 568     defines = [ "CC_IMPLEMENTATION=1" ] | 
|  | 569 | 
|  | 570     if (!is_debug && (is_win || is_android)) { | 
|  | 571       configs -= [ "//build/config/compiler:optimize" ] | 
|  | 572       configs += [ "//build/config/compiler:optimize_max" ] | 
|  | 573     } | 
|  | 574 | 
|  | 575     sources = [ | 
|  | 576       "resources/texture_compressor.h", | 
|  | 577       "resources/texture_compressor_etc1.h", | 
|  | 578       "resources/texture_compressor_etc1_sse.cc", | 
|  | 579       "resources/texture_compressor_etc1_sse.h", | 
|  | 580     ] | 
|  | 581 | 
|  | 582     cflags = [ "-msse2" ] | 
|  | 583   } | 
|  | 584 } | 
|  | 585 | 
| 555 source_set("test_support") { | 586 source_set("test_support") { | 
| 556   testonly = true | 587   testonly = true | 
| 557   sources = [ | 588   sources = [ | 
| 558     "test/animation_test_common.cc", | 589     "test/animation_test_common.cc", | 
| 559     "test/animation_test_common.h", | 590     "test/animation_test_common.h", | 
| 560     "test/begin_frame_args_test.cc", | 591     "test/begin_frame_args_test.cc", | 
| 561     "test/begin_frame_args_test.h", | 592     "test/begin_frame_args_test.h", | 
| 562     "test/failure_output_surface.cc", | 593     "test/failure_output_surface.cc", | 
| 563     "test/failure_output_surface.h", | 594     "test/failure_output_surface.h", | 
| 564     "test/fake_content_layer.cc", | 595     "test/fake_content_layer.cc", | 
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 800     "resources/picture_unittest.cc", | 831     "resources/picture_unittest.cc", | 
| 801     "resources/pixel_ref_map_unittest.cc", | 832     "resources/pixel_ref_map_unittest.cc", | 
| 802     "resources/platform_color_unittest.cc", | 833     "resources/platform_color_unittest.cc", | 
| 803     "resources/prioritized_resource_unittest.cc", | 834     "resources/prioritized_resource_unittest.cc", | 
| 804     "resources/recording_source_unittest.cc", | 835     "resources/recording_source_unittest.cc", | 
| 805     "resources/resource_provider_unittest.cc", | 836     "resources/resource_provider_unittest.cc", | 
| 806     "resources/resource_update_controller_unittest.cc", | 837     "resources/resource_update_controller_unittest.cc", | 
| 807     "resources/scoped_gpu_raster_unittest.cc", | 838     "resources/scoped_gpu_raster_unittest.cc", | 
| 808     "resources/scoped_resource_unittest.cc", | 839     "resources/scoped_resource_unittest.cc", | 
| 809     "resources/task_graph_runner_unittest.cc", | 840     "resources/task_graph_runner_unittest.cc", | 
|  | 841     "resources/texture_compressor_etc1_unittest.cc", | 
| 810     "resources/texture_mailbox_deleter_unittest.cc", | 842     "resources/texture_mailbox_deleter_unittest.cc", | 
| 811     "resources/texture_uploader_unittest.cc", | 843     "resources/texture_uploader_unittest.cc", | 
| 812     "resources/tile_manager_unittest.cc", | 844     "resources/tile_manager_unittest.cc", | 
| 813     "resources/tile_priority_unittest.cc", | 845     "resources/tile_priority_unittest.cc", | 
| 814     "resources/tile_task_worker_pool_unittest.cc", | 846     "resources/tile_task_worker_pool_unittest.cc", | 
| 815     "resources/video_resource_updater_unittest.cc", | 847     "resources/video_resource_updater_unittest.cc", | 
| 816     "scheduler/begin_frame_source_unittest.cc", | 848     "scheduler/begin_frame_source_unittest.cc", | 
| 817     "scheduler/delay_based_time_source_unittest.cc", | 849     "scheduler/delay_based_time_source_unittest.cc", | 
| 818     "scheduler/scheduler_state_machine_unittest.cc", | 850     "scheduler/scheduler_state_machine_unittest.cc", | 
| 819     "scheduler/scheduler_unittest.cc", | 851     "scheduler/scheduler_unittest.cc", | 
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 916     "//testing/gmock", | 948     "//testing/gmock", | 
| 917     "//testing/gtest", | 949     "//testing/gtest", | 
| 918     "//testing/perf", | 950     "//testing/perf", | 
| 919     "//ui/gfx", | 951     "//ui/gfx", | 
| 920     "//ui/gfx/geometry", | 952     "//ui/gfx/geometry", | 
| 921     "//ui/gl", | 953     "//ui/gl", | 
| 922   ] | 954   ] | 
| 923 } | 955 } | 
| 924 # When adding support for isolates, please have a look at run-time dependencies | 956 # When adding support for isolates, please have a look at run-time dependencies | 
| 925 # in the cc_unittests_run target in cc_tests.gyp. | 957 # in the cc_unittests_run target in cc_tests.gyp. | 
| OLD | NEW | 
|---|