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

Side by Side Diff: skia/BUILD.gn

Issue 2512093003: 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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 defines = [ "SK_CPU_SSE_LEVEL=42" ] 540 defines = [ "SK_CPU_SSE_LEVEL=42" ]
541 } 541 }
542 visibility = [ ":skia_opts" ] 542 visibility = [ ":skia_opts" ]
543 configs -= [ "//build/config/compiler:chromium_code" ] 543 configs -= [ "//build/config/compiler:chromium_code" ]
544 configs += [ 544 configs += [
545 ":skia_config", 545 ":skia_config",
546 ":skia_library_config", 546 ":skia_library_config",
547 "//build/config/compiler:no_chromium_code", 547 "//build/config/compiler:no_chromium_code",
548 ] 548 ]
549 } 549 }
550
551 # skia_opts_avx and skia_opts_hsw are stubbed out for crbug.com/666707.
550 source_set("skia_opts_avx") { 552 source_set("skia_opts_avx") {
551 sources = skia_opts.avx_sources 553 #sources = skia_opts.avx_sources
554 sources = [
555 "ext/SkOpts_avx_stub.cc",
556 ]
552 if (!is_win) { 557 if (!is_win) {
553 cflags = [ "-mavx" ] 558 cflags = [ "-mavx" ]
554 } 559 }
555 if (is_win) { 560 if (is_win) {
556 cflags = [ "/arch:AVX" ] 561 cflags = [ "/arch:AVX" ]
557 } 562 }
558 visibility = [ ":skia_opts" ] 563 visibility = [ ":skia_opts" ]
559 configs -= [ "//build/config/compiler:chromium_code" ] 564 configs -= [ "//build/config/compiler:chromium_code" ]
560 configs += [ 565 configs += [
561 ":skia_config", 566 ":skia_config",
562 ":skia_library_config", 567 ":skia_library_config",
563 "//build/config/compiler:no_chromium_code", 568 "//build/config/compiler:no_chromium_code",
564 ] 569 ]
565 } 570 }
566 source_set("skia_opts_hsw") { 571 source_set("skia_opts_hsw") {
567 sources = skia_opts.hsw_sources 572 #sources = skia_opts.hsw_sources
573 sources = [
574 "ext/SkOpts_hsw_stub.cc",
575 ]
568 if (!is_win) { 576 if (!is_win) {
569 cflags = [ 577 cflags = [
570 "-mavx2", 578 "-mavx2",
571 "-mbmi", 579 "-mbmi",
572 "-mbmi2", 580 "-mbmi2",
573 "-mf16c", 581 "-mf16c",
574 "-mfma", 582 "-mfma",
575 ] 583 ]
576 } 584 }
577 if (is_win) { 585 if (is_win) {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 733
726 deps = [ 734 deps = [
727 ":skia", 735 ":skia",
728 "//base", 736 "//base",
729 "//base/test:test_support", 737 "//base/test:test_support",
730 "//build/config/sanitizers:deps", 738 "//build/config/sanitizers:deps",
731 "//build/win:default_exe_manifest", 739 "//build/win:default_exe_manifest",
732 ] 740 ]
733 } 741 }
734 } 742 }
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