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

Side by Side Diff: skia/BUILD.gn

Issue 332393003: Manually roll Skia, picking up new SSE4 procs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: try again Created 6 years, 5 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 | « DEPS ('k') | skia/skia_library_opts.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 (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 if (cpu_arch == "arm") { 7 if (cpu_arch == "arm") {
8 import("//build/config/arm.gni") 8 import("//build/config/arm.gni")
9 } 9 }
10 10
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 "//third_party/skia/src/opts/opts_check_x86.cpp", 531 "//third_party/skia/src/opts/opts_check_x86.cpp",
532 "//third_party/skia/src/opts/SkBitmapFilter_opts_SSE2.cpp", 532 "//third_party/skia/src/opts/SkBitmapFilter_opts_SSE2.cpp",
533 "//third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp", 533 "//third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp",
534 "//third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp", 534 "//third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp",
535 "//third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp", 535 "//third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp",
536 "//third_party/skia/src/opts/SkBlurImage_opts_SSE2.cpp", 536 "//third_party/skia/src/opts/SkBlurImage_opts_SSE2.cpp",
537 "//third_party/skia/src/opts/SkMorphology_opts_SSE2.cpp", 537 "//third_party/skia/src/opts/SkMorphology_opts_SSE2.cpp",
538 "//third_party/skia/src/opts/SkUtils_opts_SSE2.cpp", 538 "//third_party/skia/src/opts/SkUtils_opts_SSE2.cpp",
539 "//third_party/skia/src/opts/SkXfermode_opts_SSE2.cpp", 539 "//third_party/skia/src/opts/SkXfermode_opts_SSE2.cpp",
540 540
541 # SSE 3 541 # SSSE 3
542 "//third_party/skia/src/opts/SkBitmapProcState_opts_SSSE3.cpp", 542 "//third_party/skia/src/opts/SkBitmapProcState_opts_SSSE3.cpp",
543 543
544 # Chrome-specific. 544 # Chrome-specific.
545 "ext/convolver_SSE2.cc", 545 "ext/convolver_SSE2.cc",
546 546
547 # These are header files used by this target from the skia one above. 547 # These are header files used by this target from the skia one above.
548 "ext/convolver.h", 548 "ext/convolver.h",
549 "//third_party/skia/include/core/SkTypes.h", 549 "//third_party/skia/include/core/SkTypes.h",
550 ] 550 ]
551 551
552 # SSE 4
553 if (cpu_arch == "x86") {
554 sources += [ "//third_party/skia/src/opts/SkBlitRow_opts_SSE4_asm.S" ]
555 } else { # x64
556 sources += [ "//third_party/skia/src/opts/SkBlitRow_opts_SSE4_x64_asm.S" ]
557 }
558
552 if (is_linux || is_mac) { 559 if (is_linux || is_mac) {
553 cflags += [ "-mssse3" ] # Note third 's'. 560 cflags += [ "-msse4" ]
554 } 561 }
555 } else if (cpu_arch == "arm") { 562 } else if (cpu_arch == "arm") {
556 sources = [ 563 sources = [
557 "//third_party/skia/src/opts/SkBitmapProcState_opts_arm.cpp", 564 "//third_party/skia/src/opts/SkBitmapProcState_opts_arm.cpp",
558 ] 565 ]
559 566
560 # The assembly uses the frame pointer register (r7 in Thumb/r11 in 567 # The assembly uses the frame pointer register (r7 in Thumb/r11 in
561 # ARM), the compiler doesn't like that. 568 # ARM), the compiler doesn't like that.
562 cflags += [ "-fomit-frame-pointer" ] 569 cflags += [ "-fomit-frame-pointer" ]
563 570
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 ":skia_config", 656 ":skia_config",
650 "//build/config/compiler:no_chromium_code" 657 "//build/config/compiler:no_chromium_code"
651 ] 658 ]
652 659
653 deps = [ 660 deps = [
654 "//base", 661 "//base",
655 ] 662 ]
656 663
657 visibility = ":skia" 664 visibility = ":skia"
658 } 665 }
OLDNEW
« no previous file with comments | « DEPS ('k') | skia/skia_library_opts.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698