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

Issue 2490553004: Reduce unique_ptr scope to save memory (Closed)

Created:
4 years, 1 month ago by chengx
Modified:
4 years, 1 month ago
Reviewers:
stanisc, jbauman
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reduce unique_ptr scope to save memory There are a few functions where unique_ptrs are used but not destroyed right after their usage. This will increase the peak memory usage. Added extra scopes around these unique-ptrs to destroy them right after their usage. BUG=657213 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/0643d7f805b69c2fd595540791dc6a62ca195254 Cr-Commit-Position: refs/heads/master@{#431464}

Patch Set 1 #

Patch Set 2 : fix code comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -29 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 4 chunks +48 lines, -29 lines 2 comments Download

Messages

Total messages: 31 (22 generated)
chengx
PTAL!
4 years, 1 month ago (2016-11-09 19:09:25 UTC) #15
jbauman
lgtm
4 years, 1 month ago (2016-11-09 22:21:20 UTC) #16
stanisc
lgtm https://codereview.chromium.org/2490553004/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2490553004/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode13895 gpu/command_buffer/service/gles2_cmd_decoder.cc:13895: width, height, border, format, type, zero.get()); You could ...
4 years, 1 month ago (2016-11-09 22:33:03 UTC) #17
chengx
Thanks, I will commit the cl. https://codereview.chromium.org/2490553004/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2490553004/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode13895 gpu/command_buffer/service/gles2_cmd_decoder.cc:13895: width, height, border, ...
4 years, 1 month ago (2016-11-10 22:43:46 UTC) #18
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/2490553004/20001
4 years, 1 month ago (2016-11-10 22:50:34 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/161764)
4 years, 1 month ago (2016-11-10 23:47:45 UTC) #23
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/2490553004/20001
4 years, 1 month ago (2016-11-11 01:40:14 UTC) #27
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-11 02:17:47 UTC) #29
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 02:22:14 UTC) #31
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/0643d7f805b69c2fd595540791dc6a62ca195254
Cr-Commit-Position: refs/heads/master@{#431464}

Powered by Google App Engine
This is Rietveld 408576698