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

Issue 2769573002: Return overlay resources to renderers in larger batches. (Closed)

Created:
3 years, 9 months ago by jbauman
Modified:
3 years, 8 months ago
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Return overlay resources to renderers in larger batches. This allows the ResourceProvider to create a single sync token for all the resources, and makes it more likely that a single IPC will be sent to return all of them. For YUV frames all the planes should have the same release sync token so VideoFrame::UpdateReleaseSyncToken won't have to wait on the multiple existing tokens and generate a completely new one. CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2769573002 Cr-Commit-Position: refs/heads/master@{#459930} Committed: https://chromium.googlesource.com/chromium/src/+/f4c12323bc9ef46575de81489ce7afbf57484d5c

Patch Set 1 #

Patch Set 2 : add test #

Patch Set 3 : rename #

Total comments: 3

Patch Set 4 : add ScopedBatchReturnResources #

Total comments: 1

Patch Set 5 : make friend #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -19 lines) Patch
M cc/output/dc_layer_overlay.h View 1 chunk +3 lines, -3 lines 0 comments Download
M cc/output/dc_layer_overlay.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 3 chunks +11 lines, -6 lines 0 comments Download
M cc/quads/draw_quad.h View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 5 chunks +24 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 3 chunks +31 lines, -4 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 3 1 chunk +62 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (25 generated)
jbauman
3 years, 9 months ago (2017-03-22 23:33:56 UTC) #14
ccameron
This lgtm, to the extent that I understand it -- it may be a good ...
3 years, 9 months ago (2017-03-23 22:04:25 UTC) #18
reveman
+dcastagna
3 years, 9 months ago (2017-03-23 22:10:37 UTC) #20
reveman
What's the use case this is optimizing?
3 years, 9 months ago (2017-03-23 22:45:27 UTC) #21
jbauman
On 2017/03/23 22:45:27, reveman wrote: > What's the use case this is optimizing? On windows ...
3 years, 9 months ago (2017-03-24 01:02:51 UTC) #22
reveman
Ok, I guess I'm missing some context for why UV plane is returned immediately but ...
3 years, 9 months ago (2017-03-24 01:30:09 UTC) #23
jbauman
On 2017/03/24 01:30:09, reveman wrote: > Ok, I guess I'm missing some context for why ...
3 years, 9 months ago (2017-03-24 01:32:41 UTC) #24
Daniele Castagna
On 2017/03/24 at 01:32:41, jbauman wrote: > On 2017/03/24 01:30:09, reveman wrote: > > Ok, ...
3 years, 9 months ago (2017-03-24 01:38:56 UTC) #25
Daniele Castagna
https://codereview.chromium.org/2769573002/diff/40001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/2769573002/diff/40001/cc/output/gl_renderer.cc#newcode2663 cc/output/gl_renderer.cc:2663: resource_provider_->SetBatchReturnResources(true); Should we have something like ScopedBacthReturnResources instead? Otherwise ...
3 years, 9 months ago (2017-03-24 01:44:43 UTC) #26
jbauman
On 2017/03/24 01:38:56, Daniele Castagna wrote: > On 2017/03/24 at 01:32:41, jbauman wrote: > > ...
3 years, 9 months ago (2017-03-24 01:46:49 UTC) #27
Daniele Castagna
On 2017/03/24 at 01:46:49, jbauman wrote: > On 2017/03/24 01:38:56, Daniele Castagna wrote: > > ...
3 years, 9 months ago (2017-03-24 01:49:37 UTC) #28
jbauman
PTAL. On 2017/03/24 01:44:43, Daniele Castagna wrote: > https://codereview.chromium.org/2769573002/diff/40001/cc/output/gl_renderer.cc > File cc/output/gl_renderer.cc (right): > > ...
3 years, 9 months ago (2017-03-24 22:08:51 UTC) #31
Daniele Castagna
LGTM. https://codereview.chromium.org/2769573002/diff/60001/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/2769573002/diff/60001/cc/resources/resource_provider.h#newcode541 cc/resources/resource_provider.h:541: void SetBatchReturnResources(bool aggregate); nit: Can this be moved ...
3 years, 9 months ago (2017-03-27 13:38:11 UTC) #34
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/2769573002/80001
3 years, 8 months ago (2017-03-27 21:31:55 UTC) #37
commit-bot: I haz the power
3 years, 8 months ago (2017-03-27 23:21:15 UTC) #40
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/f4c12323bc9ef46575de81489ce7...

Powered by Google App Engine
This is Rietveld 408576698