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

Side by Side Diff: skia/BUILD.gn

Issue 2519083004: Stub out Skia AVX and HSW opts. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | skia/ext/SkOpts_avx_stub.cc » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//printing/features/features.gni") 7 import("//printing/features/features.gni")
8 import("//testing/test.gni") 8 import("//testing/test.gni")
9 import("//third_party/skia/gn/shared_sources.gni") 9 import("//third_party/skia/gn/shared_sources.gni")
10 10
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 defines = [ "SK_CPU_SSE_LEVEL=42" ] 541 defines = [ "SK_CPU_SSE_LEVEL=42" ]
542 } 542 }
543 visibility = [ ":skia_opts" ] 543 visibility = [ ":skia_opts" ]
544 configs -= [ "//build/config/compiler:chromium_code" ] 544 configs -= [ "//build/config/compiler:chromium_code" ]
545 configs += [ 545 configs += [
546 ":skia_config", 546 ":skia_config",
547 ":skia_library_config", 547 ":skia_library_config",
548 "//build/config/compiler:no_chromium_code", 548 "//build/config/compiler:no_chromium_code",
549 ] 549 ]
550 } 550 }
551
552 # skia_opts_avx and skia_opts_hsw are stubbed out for crbug.com/666707.
551 source_set("skia_opts_avx") { 553 source_set("skia_opts_avx") {
552 sources = skia_opts.avx_sources 554 #sources = skia_opts.avx_sources
555 sources = [
556 "ext/SkOpts_avx_stub.cc",
557 ]
553 if (!is_win) { 558 if (!is_win) {
554 cflags = [ "-mavx" ] 559 cflags = [ "-mavx" ]
555 } 560 }
556 if (is_win) { 561 if (is_win) {
557 cflags = [ "/arch:AVX" ] 562 cflags = [ "/arch:AVX" ]
558 } 563 }
559 visibility = [ ":skia_opts" ] 564 visibility = [ ":skia_opts" ]
560 configs -= [ "//build/config/compiler:chromium_code" ] 565 configs -= [ "//build/config/compiler:chromium_code" ]
561 configs += [ 566 configs += [
562 ":skia_config", 567 ":skia_config",
563 ":skia_library_config", 568 ":skia_library_config",
564 "//build/config/compiler:no_chromium_code", 569 "//build/config/compiler:no_chromium_code",
565 ] 570 ]
566 } 571 }
567 source_set("skia_opts_hsw") { 572 source_set("skia_opts_hsw") {
568 sources = skia_opts.hsw_sources 573 #sources = skia_opts.hsw_sources
574 sources = [
575 "ext/SkOpts_hsw_stub.cc",
576 ]
569 if (!is_win) { 577 if (!is_win) {
570 cflags = [ 578 cflags = [
571 "-mavx2", 579 "-mavx2",
572 "-mbmi", 580 "-mbmi",
573 "-mbmi2", 581 "-mbmi2",
574 "-mf16c", 582 "-mf16c",
575 "-mfma", 583 "-mfma",
576 ] 584 ]
577 } 585 }
578 if (is_win) { 586 if (is_win) {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 734
727 deps = [ 735 deps = [
728 ":skia", 736 ":skia",
729 "//base", 737 "//base",
730 "//base/test:test_support", 738 "//base/test:test_support",
731 "//build/config/sanitizers:deps", 739 "//build/config/sanitizers:deps",
732 "//build/win:default_exe_manifest", 740 "//build/win:default_exe_manifest",
733 ] 741 ]
734 } 742 }
735 } 743 }
OLDNEW
« no previous file with comments | « no previous file | skia/ext/SkOpts_avx_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698