0

Enable -O2 for ui/gfx/geometry on non-Android.

This was first turned on for Android back in 2014.  According to
crbug.com/419051 the binary size impact was minimal.  According to danakj on
https://chromium-review.googlesource.com/c/chromium/src/+/1790724/3/ui/gfx/geometry/quad_f.h#66
this is part of the gfx critical path, so it makes sense to optimize it for all
platforms in non-debug.  That also matches the condition set we use most other
places we enable -O2.

Bug: none
Change-Id: I67e9d50e10d7c21d686226caf6172dc7d64713b1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1799312
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: danakj <danakj@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#696030}
This commit is contained in:
Peter Kasting
2019-09-12 14:13:01 +00:00
committed by Commit Bot
parent 72d9935809
commit 79e8c46ec8

@ -68,7 +68,7 @@ jumbo_component("geometry") {
"//base",
]
if (is_android && !is_debug) {
if (!is_debug) {
configs -= [ "//build/config/compiler:default_optimization" ]
configs += [ "//build/config/compiler:optimize_max" ]
}