| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 "SK_IGNORE_BLURRED_RRECT_OPT", | 173 "SK_IGNORE_BLURRED_RRECT_OPT", |
| 174 | 174 |
| 175 # this flag forces Skia not to use typographic metrics with GDI. | 175 # this flag forces Skia not to use typographic metrics with GDI. |
| 176 "SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS", | 176 "SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS", |
| 177 | 177 |
| 178 "SK_USE_DISCARDABLE_SCALEDIMAGECACHE", | 178 "SK_USE_DISCARDABLE_SCALEDIMAGECACHE", |
| 179 ] | 179 ] |
| 180 | 180 |
| 181 if (cpu_arch == "arm") { | 181 if (cpu_arch == "arm") { |
| 182 if (arm_use_neon) { | 182 if (arm_use_neon) { |
| 183 defines += [ "SK_ARM_HAS_NEON", "__ARM_HAVE_NEON" ] | 183 defines += [ "SK_ARM_HAS_NEON" ] |
| 184 } | 184 } |
| 185 if (arm_optionally_use_neon) { | 185 if (arm_optionally_use_neon) { |
| 186 defines += [ "SK_ARM_HAS_OPTIONAL_NEON", "__ARM_HAVE_OPTIONAL_NEON_SUPPORT
" ] | 186 defines += [ "SK_ARM_HAS_OPTIONAL_NEON" ] |
| 187 } | 187 } |
| 188 } | 188 } |
| 189 | 189 |
| 190 # Settings for text blitting, chosen to approximate the system browser. | 190 # Settings for text blitting, chosen to approximate the system browser. |
| 191 if (is_linux) { | 191 if (is_linux) { |
| 192 defines += [ | 192 defines += [ |
| 193 "SK_GAMMA_EXPONENT=1.2", | 193 "SK_GAMMA_EXPONENT=1.2", |
| 194 "SK_GAMMA_CONTRAST=0.2", | 194 "SK_GAMMA_CONTRAST=0.2", |
| 195 "SK_HIGH_QUALITY_IS_LANCZOS", | 195 "SK_HIGH_QUALITY_IS_LANCZOS", |
| 196 ] | 196 ] |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 ":skia_config", | 702 ":skia_config", |
| 703 "//build/config/compiler:no_chromium_code" | 703 "//build/config/compiler:no_chromium_code" |
| 704 ] | 704 ] |
| 705 | 705 |
| 706 deps = [ | 706 deps = [ |
| 707 "//base", | 707 "//base", |
| 708 ] | 708 ] |
| 709 | 709 |
| 710 visibility = ":skia" | 710 visibility = ":skia" |
| 711 } | 711 } |
| OLD | NEW |