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

Issue 2734783006: CompositorFrameSinkSupport should return resources before sending an ack (Closed)

Created:
3 years, 9 months ago by Saman Sami
Modified:
3 years, 9 months ago
Reviewers:
danakj, Fady Samuel, jbauman
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CompositorFrameSinkSupport should return resources before sending an ack Apparently after we switched to CompositorFrameSinkSupport in DelegatedFrameHost, we started using more memory in some performance tests. We hypothesized that this could be because we send an ack back to the client before returning the resources and therefore the client cannot reuse the old resources and has to allocate new ones. I ran the performance tests that regressed on this CL and I can see clear improvements in memory usage. Examples of improved metrics (from win_x64_perf_bisect Build #1626): vm_working_set_delta_size.smpte_3840x2160_60fps_vp9.webm_total from 297.5 MiB to 258.6 MiB vm_working_set_delta_size.crowd2160.webm_total from 301.1 MiB to 261.3 MiB BUG=696850 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2734783006 Cr-Commit-Position: refs/heads/master@{#455646} Committed: https://chromium.googlesource.com/chromium/src/+/f0f14b715fc62c3e8d9888970ebda21ea7a6e399

Patch Set 1 #

Patch Set 2 : Added comment and test #

Total comments: 1

Patch Set 3 : Use MakeCompositorFrameWithResources #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -25 lines) Patch
M cc/surfaces/compositor_frame_sink_support.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M cc/surfaces/compositor_frame_sink_support_unittest.cc View 1 2 9 chunks +61 lines, -24 lines 0 comments Download

Messages

Total messages: 28 (18 generated)
Saman Sami
danakj@ and fsamuel@ PTAL
3 years, 9 months ago (2017-03-08 17:06:21 UTC) #9
Fady Samuel
This needs a test :-) Thanks!
3 years, 9 months ago (2017-03-08 18:22:18 UTC) #10
Fady Samuel
On 2017/03/08 18:22:18, Fady Samuel wrote: > This needs a test :-) Thanks! Also, could ...
3 years, 9 months ago (2017-03-08 18:22:53 UTC) #11
Saman Sami
PTAL I added comments and a unit test.
3 years, 9 months ago (2017-03-08 22:32:27 UTC) #14
Fady Samuel
lgtm
3 years, 9 months ago (2017-03-08 22:35:44 UTC) #15
Saman Sami
jbauman@ PTAL
3 years, 9 months ago (2017-03-08 22:48:01 UTC) #17
jbauman
lgtm
3 years, 9 months ago (2017-03-08 23:10:39 UTC) #19
Fady Samuel
Added a nit. https://codereview.chromium.org/2734783006/diff/20001/cc/surfaces/compositor_frame_sink_support_unittest.cc File cc/surfaces/compositor_frame_sink_support_unittest.cc (right): https://codereview.chromium.org/2734783006/diff/20001/cc/surfaces/compositor_frame_sink_support_unittest.cc#newcode976 cc/surfaces/compositor_frame_sink_support_unittest.cc:976: frame.resource_list.push_back(resource); You could use MakeCompositorFrameWithResources?
3 years, 9 months ago (2017-03-08 23:20:21 UTC) #20
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/2734783006/40001
3 years, 9 months ago (2017-03-08 23:54:46 UTC) #25
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 02:38:49 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/f0f14b715fc62c3e8d9888970ebd...

Powered by Google App Engine
This is Rietveld 408576698