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}
Showing
Please register or sign in to comment