Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: cc/BUILD.gn

Issue 1136083003: Revert of Add ETC1 powered SSE encoder for tile texture compression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « AUTHORS ('k') | cc/cc.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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",
539 "//cc/surfaces:surface_id", 538 "//cc/surfaces:surface_id",
540 "//gpu", 539 "//gpu",
541 "//gpu/command_buffer/client:gles2_interface", 540 "//gpu/command_buffer/client:gles2_interface",
542 "//media", 541 "//media",
543 "//ui/events:events_base", 542 "//ui/events:events_base",
544 "//ui/gfx", 543 "//ui/gfx",
545 "//ui/gfx/geometry", 544 "//ui/gfx/geometry",
546 ] 545 ]
547 546
548 defines = [ "CC_IMPLEMENTATION=1" ] 547 defines = [ "CC_IMPLEMENTATION=1" ]
549 548
550 if (!is_debug && (is_win || is_android)) { 549 if (!is_debug && (is_win || is_android)) {
551 configs -= [ "//build/config/compiler:optimize" ] 550 configs -= [ "//build/config/compiler:optimize" ]
552 configs += [ "//build/config/compiler:optimize_max" ] 551 configs += [ "//build/config/compiler:optimize_max" ]
553 } 552 }
554 } 553 }
555 554
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 == "ia32" || 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
586 source_set("test_support") { 555 source_set("test_support") {
587 testonly = true 556 testonly = true
588 sources = [ 557 sources = [
589 "test/animation_test_common.cc", 558 "test/animation_test_common.cc",
590 "test/animation_test_common.h", 559 "test/animation_test_common.h",
591 "test/begin_frame_args_test.cc", 560 "test/begin_frame_args_test.cc",
592 "test/begin_frame_args_test.h", 561 "test/begin_frame_args_test.h",
593 "test/failure_output_surface.cc", 562 "test/failure_output_surface.cc",
594 "test/failure_output_surface.h", 563 "test/failure_output_surface.h",
595 "test/fake_content_layer.cc", 564 "test/fake_content_layer.cc",
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 "resources/picture_unittest.cc", 800 "resources/picture_unittest.cc",
832 "resources/pixel_ref_map_unittest.cc", 801 "resources/pixel_ref_map_unittest.cc",
833 "resources/platform_color_unittest.cc", 802 "resources/platform_color_unittest.cc",
834 "resources/prioritized_resource_unittest.cc", 803 "resources/prioritized_resource_unittest.cc",
835 "resources/recording_source_unittest.cc", 804 "resources/recording_source_unittest.cc",
836 "resources/resource_provider_unittest.cc", 805 "resources/resource_provider_unittest.cc",
837 "resources/resource_update_controller_unittest.cc", 806 "resources/resource_update_controller_unittest.cc",
838 "resources/scoped_gpu_raster_unittest.cc", 807 "resources/scoped_gpu_raster_unittest.cc",
839 "resources/scoped_resource_unittest.cc", 808 "resources/scoped_resource_unittest.cc",
840 "resources/task_graph_runner_unittest.cc", 809 "resources/task_graph_runner_unittest.cc",
841 "resources/texture_compressor_etc1_unittest.cc",
842 "resources/texture_mailbox_deleter_unittest.cc", 810 "resources/texture_mailbox_deleter_unittest.cc",
843 "resources/texture_uploader_unittest.cc", 811 "resources/texture_uploader_unittest.cc",
844 "resources/tile_manager_unittest.cc", 812 "resources/tile_manager_unittest.cc",
845 "resources/tile_priority_unittest.cc", 813 "resources/tile_priority_unittest.cc",
846 "resources/tile_task_worker_pool_unittest.cc", 814 "resources/tile_task_worker_pool_unittest.cc",
847 "resources/video_resource_updater_unittest.cc", 815 "resources/video_resource_updater_unittest.cc",
848 "scheduler/begin_frame_source_unittest.cc", 816 "scheduler/begin_frame_source_unittest.cc",
849 "scheduler/delay_based_time_source_unittest.cc", 817 "scheduler/delay_based_time_source_unittest.cc",
850 "scheduler/scheduler_state_machine_unittest.cc", 818 "scheduler/scheduler_state_machine_unittest.cc",
851 "scheduler/scheduler_unittest.cc", 819 "scheduler/scheduler_unittest.cc",
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 "//testing/gmock", 916 "//testing/gmock",
949 "//testing/gtest", 917 "//testing/gtest",
950 "//testing/perf", 918 "//testing/perf",
951 "//ui/gfx", 919 "//ui/gfx",
952 "//ui/gfx/geometry", 920 "//ui/gfx/geometry",
953 "//ui/gl", 921 "//ui/gl",
954 ] 922 ]
955 } 923 }
956 # When adding support for isolates, please have a look at run-time dependencies 924 # When adding support for isolates, please have a look at run-time dependencies
957 # in the cc_unittests_run target in cc_tests.gyp. 925 # in the cc_unittests_run target in cc_tests.gyp.
OLDNEW
« no previous file with comments | « AUTHORS ('k') | cc/cc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698