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

Issue 2277433002: Defer allocation in cc::ContiguousContainerBase::Buffer. (Closed)

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

Description

Defer allocation in cc::ContiguousContainerBase::Buffer. This CL optimizes memory usage of cc::ContiguousContainer by deferring memory allocation in ContiguousContainerBase::Buffer until the first Allocate() call. Previously memory was allocated in the Buffer constructor, and sometimes was never written to (see the bug for more info). BUG=635142 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/aa339ecad2407a5b3875dc597843b1634cec5445 Cr-Commit-Position: refs/heads/master@{#414204}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments #

Patch Set 3 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -5 lines) Patch
M cc/base/contiguous_container.cc View 1 3 chunks +12 lines, -5 lines 0 comments Download
M cc/base/contiguous_container_unittest.cc View 1 2 3 chunks +37 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
Dmitry Skiba
4 years, 4 months ago (2016-08-23 18:03:23 UTC) #3
danakj
https://codereview.chromium.org/2277433002/diff/1/cc/base/contiguous_container.cc File cc/base/contiguous_container.cc (right): https://codereview.chromium.org/2277433002/diff/1/cc/base/contiguous_container.cc#newcode84 cc/base/contiguous_container.cc:84: for (const auto& buffer : buffers_) { nit: no ...
4 years, 4 months ago (2016-08-23 18:16:00 UTC) #6
Dmitry Skiba
https://codereview.chromium.org/2277433002/diff/1/cc/base/contiguous_container.cc File cc/base/contiguous_container.cc (right): https://codereview.chromium.org/2277433002/diff/1/cc/base/contiguous_container.cc#newcode84 cc/base/contiguous_container.cc:84: for (const auto& buffer : buffers_) { On 2016/08/23 ...
4 years, 4 months ago (2016-08-24 17:58:46 UTC) #9
danakj
LGTM thanks!
4 years, 4 months ago (2016-08-24 20:05:00 UTC) #10
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/2277433002/40001
4 years, 4 months ago (2016-08-24 20:33:00 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/267992)
4 years, 3 months ago (2016-08-24 22:57:35 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/2277433002/40001
4 years, 3 months ago (2016-08-24 23:02:54 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-24 23:53:26 UTC) #17
commit-bot: I haz the power
4 years, 3 months ago (2016-08-24 23:55:18 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/aa339ecad2407a5b3875dc597843b1634cec5445
Cr-Commit-Position: refs/heads/master@{#414204}

Powered by Google App Engine
This is Rietveld 408576698