| OLD | NEW |
| 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("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//third_party/WebKit/public/public_features.gni") | 6 import("//third_party/WebKit/public/public_features.gni") |
| 7 | 7 |
| 8 if (is_android) { | 8 if (is_android) { |
| 9 import("//build/config/android/config.gni") | 9 import("//build/config/android/config.gni") |
| 10 } | 10 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 } | 26 } |
| 27 | 27 |
| 28 # Whether Android build uses OpenMAX DL FFT. Currently supported only on | 28 # Whether Android build uses OpenMAX DL FFT. Currently supported only on |
| 29 # ARMv7+, ARM64, x86 or x64 without webview. Also enables WebAudio support. | 29 # ARMv7+, ARM64, x86 or x64 without webview. Also enables WebAudio support. |
| 30 # Whether WebAudio is actually available depends on runtime settings and flags. | 30 # Whether WebAudio is actually available depends on runtime settings and flags. |
| 31 use_openmax_dl_fft = | 31 use_openmax_dl_fft = |
| 32 is_android && (current_cpu == "x86" || current_cpu == "x64" || | 32 is_android && (current_cpu == "x86" || current_cpu == "x64" || |
| 33 (current_cpu == "arm" && arm_version >= 7) || | 33 (current_cpu == "arm" && arm_version >= 7) || |
| 34 current_cpu == "arm64" || current_cpu == "mipsel") | 34 current_cpu == "arm64" || current_cpu == "mipsel") |
| 35 | 35 |
| 36 use_webaudio_ffmpeg = !is_mac && !is_android | 36 # This actually means if WebAudio should use the FFT from FFMpeg. |
| 37 # WebAudio always uses FFMpeg for decoding audio files. |
| 38 use_webaudio_ffmpeg = !is_android |
| 37 | 39 |
| 38 # Set this to true to enable use of concatenated impulse responses for the HRTF | 40 # Set this to true to enable use of concatenated impulse responses for the HRTF |
| 39 # panner in WebAudio. | 41 # panner in WebAudio. |
| 40 # TODO(brettw) do we need this or can we assume its always on? | 42 # TODO(brettw) do we need this or can we assume its always on? |
| 41 use_concatenated_impulse_responses = true | 43 use_concatenated_impulse_responses = true |
| 42 | 44 |
| 43 # feature_defines_list --------------------------------------------------------- | 45 # feature_defines_list --------------------------------------------------------- |
| 44 | 46 |
| 45 feature_defines_list = [ | 47 feature_defines_list = [ |
| 46 "ENABLE_LAYOUT_UNIT_IN_INLINE_BOXES=0", | 48 "ENABLE_LAYOUT_UNIT_IN_INLINE_BOXES=0", |
| (...skipping 22 matching lines...) Expand all Loading... |
| 69 | 71 |
| 70 if (use_default_render_theme) { | 72 if (use_default_render_theme) { |
| 71 # Mirrors the USE_DEFAULT_RENDER_THEME buildflag_header in WebKit/public. | 73 # Mirrors the USE_DEFAULT_RENDER_THEME buildflag_header in WebKit/public. |
| 72 # If/when Blink can use buildflag headers, this should be removed in | 74 # If/when Blink can use buildflag headers, this should be removed in |
| 73 # preference to that. | 75 # preference to that. |
| 74 feature_defines_list += [ "WTF_USE_DEFAULT_RENDER_THEME=1" ] | 76 feature_defines_list += [ "WTF_USE_DEFAULT_RENDER_THEME=1" ] |
| 75 } | 77 } |
| 76 if (blink_logging_always_on) { | 78 if (blink_logging_always_on) { |
| 77 feature_defines_list += [ "LOG_DISABLED=0" ] | 79 feature_defines_list += [ "LOG_DISABLED=0" ] |
| 78 } | 80 } |
| OLD | NEW |