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

Unified Diff: skia/BUILD.gn

Issue 555373004: Compile specific parts of the Android build with -O2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« cc/BUILD.gn ('K') | « gpu/gpu.gyp ('k') | skia/skia.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/BUILD.gn
diff --git a/skia/BUILD.gn b/skia/BUILD.gn
index 86ed5a12d3b040f6854ebc2d6a79490bc0b73815..8cf9fa4d5ab5c6763a99705b1f3f250015155087 100644
--- a/skia/BUILD.gn
+++ b/skia/BUILD.gn
@@ -552,6 +552,11 @@ component("skia") {
if (skia_support_pdf) {
deps += [ "//third_party/sfntly" ]
}
+
+ if (is_android && !is_debug) {
+ configs -= [ "//build/config/compiler:optimize" ]
+ configs += [ "//build/config/compiler:optimize_max" ]
+ }
}
# Separated out so it can be compiled with different flags for SSE.
@@ -689,6 +694,11 @@ source_set("skia_opts") {
assert(false, "Need to port cpu specific stuff from skia_library_opts.gyp")
}
+ if (is_android && !is_debug) {
+ configs -= [ "//build/config/compiler:optimize" ]
+ configs += [ "//build/config/compiler:optimize_max" ]
+ }
+
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
":skia_config",
« cc/BUILD.gn ('K') | « gpu/gpu.gyp ('k') | skia/skia.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698