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

Issue 2270693006: Adjust skia build settings to match gyp, improve perf (Closed)

Created:
4 years, 4 months ago by brucedawson
Modified:
4 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adjust skia build settings to match gyp, improve perf When official builds switched from gyp to gn some smoothness tests regressed. Investigation showed that some skia functions were taking up to 15x longer to execute. This was due to /GL /O2 being changed to /O1 (LTCG and optimize-for-speed changing to optimize-for-size). This change resolves most of the compiler option differences in skia and dramatically reduces the CPU usage in the gn build, from 9.4 s to 5.3, within spitting distance of the gyp build. This increases the size of chrome_child.dll from 48,593,408 to 49,213,440 bytes. The gyp version is 49,032,192 bytes and if necessary some more size optimizations can be applied to the gn build. The discrepancy between gyp and gn optimization settings in skia occurred when crrev.com/1410883008 landed for gyp only. There may be other differences - investigation continues - but this fixes the main issues noticed. BUG=632651 Committed: https://crrev.com/3e80255c5139698d5fca9d8f1595a307f6cb3639 Cr-Commit-Position: refs/heads/master@{#414368}

Patch Set 1 #

Patch Set 2 : Merge the is_android and is_win conditions #

Patch Set 3 : Another place to add optimize_max to Windows as well #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M skia/BUILD.gn View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (16 generated)
brucedawson
This fix works, but I'm not sure if it is the correct place, or what ...
4 years, 4 months ago (2016-08-24 02:42:06 UTC) #4
Dirk Pranke
I wonder if this should just be optimize_max across the board, or at least in ...
4 years, 4 months ago (2016-08-24 18:18:35 UTC) #8
borenet
+others
4 years, 4 months ago (2016-08-24 18:21:53 UTC) #10
mtklein_C
lgtm
4 years, 4 months ago (2016-08-24 18:32:04 UTC) #11
brucedawson
On 2016/08/24 18:32:04, mtklein_C wrote: > lgtm I changed it so that the win and ...
4 years, 4 months ago (2016-08-24 21:54:07 UTC) #12
brucedawson
I've thought about this some more and, assuming that the try bots are happy, I ...
4 years, 4 months ago (2016-08-24 23:32:22 UTC) #15
Dirk Pranke
I think land as-is and change for the other platforms in a follow-up is probably ...
4 years, 4 months ago (2016-08-25 00:21:48 UTC) #17
Dirk Pranke
I think land as-is and change for the other platforms in a follow-up is probably ...
4 years, 4 months ago (2016-08-25 00:21:50 UTC) #18
mtklein_C
On 2016/08/24 at 21:54:07, brucedawson wrote: > On 2016/08/24 18:32:04, mtklein_C wrote: > > lgtm ...
4 years, 4 months ago (2016-08-25 00:27:04 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2270693006/40001
4 years, 3 months ago (2016-08-25 07:03:36 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-25 09:09:12 UTC) #26
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 09:11:47 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3e80255c5139698d5fca9d8f1595a307f6cb3639
Cr-Commit-Position: refs/heads/master@{#414368}

Powered by Google App Engine
This is Rietveld 408576698