Commit 6e33e278 authored by jdduke's avatar jdduke Committed by Commit bot

[Android] Enable -O2 for gfx

There are a number of key, hot routines in gfx and gfx_geometry. Enable
-O2 for these targets.

BUG=411909,419051

Review URL: https://codereview.chromium.org/612513003

Cr-Commit-Position: refs/heads/master@{#297475}
parent 72058c85
...@@ -290,6 +290,12 @@ component("gfx") { ...@@ -290,6 +290,12 @@ component("gfx") {
# deps += [ "//base:base_java" ] # deps += [ "//base:base_java" ]
#} #}
# TODO(jdduke): Revisit optimization after gauging benefit, crbug/419051.
if (!is_debug) {
configs -= [ "//build/config/compiler:optimize" ]
configs += [ "//build/config/compiler:optimize_max" ]
}
deps += [ ":gfx_jni_headers" ] deps += [ ":gfx_jni_headers" ]
libs = [ libs = [
"android", "android",
......
...@@ -62,4 +62,10 @@ component("geometry") { ...@@ -62,4 +62,10 @@ component("geometry") {
"//base", "//base",
"//ui/gfx:gfx_export", "//ui/gfx:gfx_export",
] ]
# TODO(jdduke): Revisit optimization after gauging benefit, crbug/419051.
if (is_android && !is_debug) {
configs -= [ "//build/config/compiler:optimize" ]
configs += [ "//build/config/compiler:optimize_max" ]
}
} }
...@@ -67,6 +67,10 @@ ...@@ -67,6 +67,10 @@
'geometry/vector3d_f.cc', 'geometry/vector3d_f.cc',
'geometry/vector3d_f.h', 'geometry/vector3d_f.h',
], ],
# TODO(jdduke): Revisit optimization after gauging benefit, crbug/419051.
'includes': [
'../../build/android/increase_size_for_speed.gypi',
],
}, },
{ {
'target_name': 'gfx', 'target_name': 'gfx',
...@@ -307,6 +311,9 @@ ...@@ -307,6 +311,9 @@
'win/window_impl.cc', 'win/window_impl.cc',
'win/window_impl.h', 'win/window_impl.h',
], ],
'includes': [
'../../build/android/increase_size_for_speed.gypi',
],
'conditions': [ 'conditions': [
['OS=="ios"', { ['OS=="ios"', {
'dependencies': [ 'dependencies': [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment