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

Side by Side Diff: skia/BUILD.gn

Issue 430253002: Update NEON compiler flags for Skia to use the SK_ prefix. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | skia/skia_common.gypi » ('j') | skia/skia_library_opts.gyp » ('J')
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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 "SK_IGNORE_QUAD_RR_CORNERS_OPT", 175 "SK_IGNORE_QUAD_RR_CORNERS_OPT",
176 176
177 # this flag forces Skia not to use typographic metrics with GDI. 177 # this flag forces Skia not to use typographic metrics with GDI.
178 "SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS", 178 "SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS",
179 179
180 "SK_USE_DISCARDABLE_SCALEDIMAGECACHE", 180 "SK_USE_DISCARDABLE_SCALEDIMAGECACHE",
181 ] 181 ]
182 182
183 if (cpu_arch == "arm") { 183 if (cpu_arch == "arm") {
184 if (arm_use_neon) { 184 if (arm_use_neon) {
185 defines += [ "__ARM_HAVE_NEON" ] 185 defines += [ "SK_ARM_HAS_NEON", "__ARM_HAVE_NEON" ]
186 } 186 }
187 if (arm_optionally_use_neon) { 187 if (arm_optionally_use_neon) {
188 defines += [ "__ARM_HAVE_OPTIONAL_NEON_SUPPORT" ] 188 defines += [ "SK_ARM_HAS_OPTIONAL_NEON", "__ARM_HAVE_OPTIONAL_NEON_SUPPORT " ]
189 } 189 }
190 } 190 }
191 191
192 # Settings for text blitting, chosen to approximate the system browser. 192 # Settings for text blitting, chosen to approximate the system browser.
193 if (is_linux) { 193 if (is_linux) {
194 defines += [ 194 defines += [
195 "SK_GAMMA_EXPONENT=1.2", 195 "SK_GAMMA_EXPONENT=1.2",
196 "SK_GAMMA_CONTRAST=0.2", 196 "SK_GAMMA_CONTRAST=0.2",
197 "SK_HIGH_QUALITY_IS_LANCZOS", 197 "SK_HIGH_QUALITY_IS_LANCZOS",
198 ] 198 ]
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 ":skia_config", 704 ":skia_config",
705 "//build/config/compiler:no_chromium_code" 705 "//build/config/compiler:no_chromium_code"
706 ] 706 ]
707 707
708 deps = [ 708 deps = [
709 "//base", 709 "//base",
710 ] 710 ]
711 711
712 visibility = ":skia" 712 visibility = ":skia"
713 } 713 }
OLDNEW
« no previous file with comments | « no previous file | skia/skia_common.gypi » ('j') | skia/skia_library_opts.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698