| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |