| 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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 "trees/single_thread_proxy.cc", | 525 "trees/single_thread_proxy.cc", |
| 526 "trees/single_thread_proxy.h", | 526 "trees/single_thread_proxy.h", |
| 527 "trees/swap_promise_monitor.cc", | 527 "trees/swap_promise_monitor.cc", |
| 528 "trees/swap_promise_monitor.h", | 528 "trees/swap_promise_monitor.h", |
| 529 "trees/thread_proxy.cc", | 529 "trees/thread_proxy.cc", |
| 530 "trees/thread_proxy.h", | 530 "trees/thread_proxy.h", |
| 531 "trees/tree_synchronizer.cc", | 531 "trees/tree_synchronizer.cc", |
| 532 "trees/tree_synchronizer.h", | 532 "trees/tree_synchronizer.h", |
| 533 ] | 533 ] |
| 534 | 534 |
| 535 if (target_cpu == "x86" || target_cpu == "x64") { |
| 536 sources += [ |
| 537 "raster/texture_compressor_etc1_sse.cc", |
| 538 "raster/texture_compressor_etc1_sse.h", |
| 539 ] |
| 540 } |
| 541 |
| 535 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 542 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 536 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 543 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 537 | 544 |
| 538 public_deps = [ | 545 public_deps = [ |
| 539 "//cc/base", | 546 "//cc/base", |
| 540 "//skia", | 547 "//skia", |
| 541 ] | 548 ] |
| 542 deps = [ | 549 deps = [ |
| 543 "//base", | 550 "//base", |
| 544 "//base/third_party/dynamic_annotations", | 551 "//base/third_party/dynamic_annotations", |
| 545 "//cc:cc_opts", | |
| 546 "//cc/surfaces:surface_id", | 552 "//cc/surfaces:surface_id", |
| 547 "//gpu", | 553 "//gpu", |
| 548 "//gpu/command_buffer/client:gles2_interface", | 554 "//gpu/command_buffer/client:gles2_interface", |
| 549 "//media", | 555 "//media", |
| 550 "//ui/events:events_base", | 556 "//ui/events:events_base", |
| 551 "//ui/gfx", | 557 "//ui/gfx", |
| 552 "//ui/gfx/geometry", | 558 "//ui/gfx/geometry", |
| 553 ] | 559 ] |
| 554 | 560 |
| 555 defines = [ "CC_IMPLEMENTATION=1" ] | 561 defines = [ "CC_IMPLEMENTATION=1" ] |
| 556 | 562 |
| 557 if (!is_debug && (is_win || is_android)) { | 563 if (!is_debug && (is_win || is_android)) { |
| 558 configs -= [ "//build/config/compiler:optimize" ] | 564 configs -= [ "//build/config/compiler:optimize" ] |
| 559 configs += [ "//build/config/compiler:optimize_max" ] | 565 configs += [ "//build/config/compiler:optimize_max" ] |
| 560 } | 566 } |
| 561 } | 567 } |
| 562 | 568 |
| 563 source_set("cc_opts") { | |
| 564 public_deps = [ | |
| 565 "//cc:cc_opts_sse", | |
| 566 ] | |
| 567 } | |
| 568 | |
| 569 source_set("cc_opts_sse") { | |
| 570 if (target_cpu == "x86" || target_cpu == "x64") { | |
| 571 deps = [ | |
| 572 "//base", | |
| 573 ] | |
| 574 | |
| 575 defines = [ "CC_IMPLEMENTATION=1" ] | |
| 576 | |
| 577 if (!is_debug && (is_win || is_android)) { | |
| 578 configs -= [ "//build/config/compiler:optimize" ] | |
| 579 configs += [ "//build/config/compiler:optimize_max" ] | |
| 580 } | |
| 581 | |
| 582 sources = [ | |
| 583 "raster/texture_compressor.h", | |
| 584 "raster/texture_compressor_etc1.h", | |
| 585 "raster/texture_compressor_etc1_sse.cc", | |
| 586 "raster/texture_compressor_etc1_sse.h", | |
| 587 ] | |
| 588 | |
| 589 cflags = [ "-msse2" ] | |
| 590 } | |
| 591 } | |
| 592 | |
| 593 source_set("test_support") { | 569 source_set("test_support") { |
| 594 testonly = true | 570 testonly = true |
| 595 sources = [ | 571 sources = [ |
| 596 "test/animation_test_common.cc", | 572 "test/animation_test_common.cc", |
| 597 "test/animation_test_common.h", | 573 "test/animation_test_common.h", |
| 598 "test/begin_frame_args_test.cc", | 574 "test/begin_frame_args_test.cc", |
| 599 "test/begin_frame_args_test.h", | 575 "test/begin_frame_args_test.h", |
| 600 "test/failure_output_surface.cc", | 576 "test/failure_output_surface.cc", |
| 601 "test/failure_output_surface.h", | 577 "test/failure_output_surface.h", |
| 602 "test/fake_content_layer.cc", | 578 "test/fake_content_layer.cc", |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 963 "//ui/gfx/geometry", | 939 "//ui/gfx/geometry", |
| 964 "//ui/gl", | 940 "//ui/gl", |
| 965 ] | 941 ] |
| 966 | 942 |
| 967 if (is_android) { | 943 if (is_android) { |
| 968 isolate_file = "cc_perftests.isolate" | 944 isolate_file = "cc_perftests.isolate" |
| 969 } | 945 } |
| 970 } | 946 } |
| 971 # When adding support for isolates, please have a look at run-time dependencies | 947 # When adding support for isolates, please have a look at run-time dependencies |
| 972 # in the cc_unittests_run target in cc_tests.gyp. | 948 # in the cc_unittests_run target in cc_tests.gyp. |
| OLD | NEW |