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

Issue 2556603002: Change gpu/ipc:command_buffer_sources to static_library (Closed)

Created:
4 years ago by brucedawson
Modified:
4 years ago
Reviewers:
piman
CC:
chromium-reviews, piman+watch_chromium.org, Fady Samuel
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change gpu/ipc:command_buffer_sources to static_library A 900 KB size regression popped up at R431519. This CL fixes it by changing a source_set to a static_library. The effect is to reduce the size of chrome.dll significantly, fixing the regression: chrome.dll .text: -711776 bytes change .rdata: -160752 bytes change .data: -10848 bytes change .reloc: -33736 bytes change Total change: -917112 bytes A custom version of dia2dump.exe was used to find global variables that appeared in chrome.dll when the regression happened. One of the globals was cmaa_frag_s2_. This was declared in gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc so a verbose link of chrome.dll was done and a script (linker_verbose_tracking.py) was used to find out what was causing this .obj file to be pulled in. It pointed to in_process_command_buffer.obj, and that led to the fix. The fix was tested on a release build, but not an official build, so it is possible that the savings will not apply to official builds. This will be monitored. BUG=664481 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/255638d8476e0b6f7a5f8d60a707e10bfa5142d8 Cr-Commit-Position: refs/heads/master@{#436731}

Patch Set 1 #

Patch Set 2 : Only use static_library in non-component builds #

Patch Set 3 : Remove accidentally added /verbose #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M gpu/ipc/BUILD.gn View 1 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 20 (15 generated)
brucedawson
PTAL - it looks like this saves ~900 KB from chrome.dll.
4 years ago (2016-12-06 00:39:32 UTC) #5
piman
lgtm
4 years ago (2016-12-06 21:10:56 UTC) #14
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/2556603002/40001
4 years ago (2016-12-06 21:12:13 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-06 21:24:09 UTC) #18
commit-bot: I haz the power
4 years ago (2016-12-06 21:25:40 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/255638d8476e0b6f7a5f8d60a707e10bfa5142d8
Cr-Commit-Position: refs/heads/master@{#436731}

Powered by Google App Engine
This is Rietveld 408576698