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

Side by Side Diff: third_party/WebKit/Source/config.gni

Issue 1867093002: Add support for defaulting to low quality image interpolation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make default value of use_low_quality_image_interpolation = is_android Created 4 years, 8 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 | « build/args/blimp_engine.gn ('k') | tools/mb/mb_config.pyl » ('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 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/features.gni") 6 import("//third_party/WebKit/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 10 matching lines...) Expand all
21 # blink asserts in release build may be controlled by DCHECK_ALWAYS_ON. 21 # blink asserts in release build may be controlled by DCHECK_ALWAYS_ON.
22 blink_asserts_off_in_release = false 22 blink_asserts_off_in_release = false
23 23
24 # If true, doesn't compile debug symbols into webcore reducing the 24 # If true, doesn't compile debug symbols into webcore reducing the
25 # size of the binary and increasing the speed of gdb. 25 # size of the binary and increasing the speed of gdb.
26 remove_webcore_debug_symbols = false 26 remove_webcore_debug_symbols = false
27 27
28 # If true, enables blink logging macros (WTF_LOG and friends) unconditionally. 28 # If true, enables blink logging macros (WTF_LOG and friends) unconditionally.
29 # When false, blink logging macros are enabled only if assertions are enabled. 29 # When false, blink logging macros are enabled only if assertions are enabled.
30 blink_logging_always_on = false 30 blink_logging_always_on = false
31
32 # If true, defaults image interpolation to low quality.
33 use_low_quality_image_interpolation = is_android
31 } 34 }
32 35
33 # Whether Android build uses OpenMAX DL FFT. Currently supported only on 36 # Whether Android build uses OpenMAX DL FFT. Currently supported only on
34 # ARMv7+, ARM64, x86 or x64 without webview. Also enables WebAudio support. 37 # ARMv7+, ARM64, x86 or x64 without webview. Also enables WebAudio support.
35 # Whether WebAudio is actually available depends on runtime settings and flags. 38 # Whether WebAudio is actually available depends on runtime settings and flags.
36 use_openmax_dl_fft = 39 use_openmax_dl_fft =
37 is_android && (current_cpu == "x86" || current_cpu == "x64" || 40 is_android && (current_cpu == "x86" || current_cpu == "x64" ||
38 (current_cpu == "arm" && arm_version >= 7) || 41 (current_cpu == "arm" && arm_version >= 7) ||
39 current_cpu == "arm64" || current_cpu == "mipsel") 42 current_cpu == "arm64" || current_cpu == "mipsel")
40 43
(...skipping 18 matching lines...) Expand all
59 } 62 }
60 63
61 if (use_concatenated_impulse_responses) { 64 if (use_concatenated_impulse_responses) {
62 feature_defines_list += [ "WTF_USE_CONCATENATED_IMPULSE_RESPONSES=1" ] 65 feature_defines_list += [ "WTF_USE_CONCATENATED_IMPULSE_RESPONSES=1" ]
63 } 66 }
64 67
65 if (!is_android || use_aura) { 68 if (!is_android || use_aura) {
66 feature_defines_list += [ "ENABLE_INPUT_MULTIPLE_FIELDS_UI=1" ] 69 feature_defines_list += [ "ENABLE_INPUT_MULTIPLE_FIELDS_UI=1" ]
67 } 70 }
68 71
69 if (is_android) { 72 if (use_low_quality_image_interpolation) {
70 feature_defines_list += [ "WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION=1" ] 73 feature_defines_list += [ "WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION=1" ]
71 } else { 74 }
75
76 if (!is_android) {
72 feature_defines_list += [ 77 feature_defines_list += [
73 "WTF_USE_ICCJPEG=1", 78 "WTF_USE_ICCJPEG=1",
74 "WTF_USE_QCMSLIB=1", 79 "WTF_USE_QCMSLIB=1",
75 ] 80 ]
76 } 81 }
77 82
78 if (use_webaudio_ffmpeg) { 83 if (use_webaudio_ffmpeg) {
79 feature_defines_list += [ "WTF_USE_WEBAUDIO_FFMPEG=1" ] 84 feature_defines_list += [ "WTF_USE_WEBAUDIO_FFMPEG=1" ]
80 } 85 }
81 86
(...skipping 12 matching lines...) Expand all
94 } 99 }
95 100
96 # feature_defines_string ------------------------------------------------------- 101 # feature_defines_string -------------------------------------------------------
97 102
98 # Convert the list to a space-separated string for passing to scripts. 103 # Convert the list to a space-separated string for passing to scripts.
99 # This would be the equivalent of passing '<(feature_defines)' in GYP. 104 # This would be the equivalent of passing '<(feature_defines)' in GYP.
100 feature_defines_string = 105 feature_defines_string =
101 exec_script("build/gn_list_to_space_separated_string.py", 106 exec_script("build/gn_list_to_space_separated_string.py",
102 feature_defines_list, 107 feature_defines_list,
103 "trim string") 108 "trim string")
OLDNEW
« no previous file with comments | « build/args/blimp_engine.gn ('k') | tools/mb/mb_config.pyl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698