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

Issue 12385085: cc: Unused resources should be given back to the child compositor (Closed)

Created:
7 years, 9 months ago by danakj
Modified:
7 years, 9 months ago
Reviewers:
piman
CC:
chromium-reviews, cc-bugs_chromium.org, backer, slavi
Visibility:
Public.

Description

cc: Unused resources should be given back to the child compositor If a frame passes ownership of a resource, but no quads in the frame use it, the resource should be passed back to the child, not held forever. If a new frame is given to the delegated renderer layer before the taking unused resources from it, they are re-added to the new frame in case it uses any of them. The resources not used by the new frame will be returned after the next commit. Tested by existing delegated renderer tests, and also by: LayerTreeHostDelegatedTestUnnamedResource.runSingleThread LayerTreeHostDelegatedTestUnnamedResource.runMultiThread LayerTreeHostDelegatedTestDontLeakResource.runSingleThread LayerTreeHostDelegatedTestDontLeakResource.runMultiThread LayerTreeHostDelegatedTestResourceSentToParent.runSingleThread LayerTreeHostDelegatedTestResourceSentToParent.runMultiThread LayerTreeHostDelegatedTestCommitWithoutTake.runSingleThread LayerTreeHostDelegatedTestCommitWithoutTake.runMultiThread R=piman BUG=123444 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186246

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+424 lines, -102 lines) Patch
M cc/delegated_renderer_layer.cc View 1 2 3 4 2 chunks +15 lines, -4 lines 0 comments Download
M cc/delegated_renderer_layer_impl.cc View 1 2 3 1 chunk +47 lines, -59 lines 0 comments Download
M cc/layer_tree_host_unittest_delegated.cc View 1 2 7 chunks +362 lines, -39 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
danakj
7 years, 9 months ago (2013-03-04 17:07:45 UTC) #1
piman
https://codereview.chromium.org/12385085/diff/2001/cc/delegated_renderer_layer_impl.cc File cc/delegated_renderer_layer_impl.cc (right): https://codereview.chromium.org/12385085/diff/2001/cc/delegated_renderer_layer_impl.cc#newcode119 cc/delegated_renderer_layer_impl.cc:119: unused_resources.push_back(it->second); How do these get fed back into the ...
7 years, 9 months ago (2013-03-04 17:20:45 UTC) #2
danakj
https://codereview.chromium.org/12385085/diff/2001/cc/delegated_renderer_layer_impl.cc File cc/delegated_renderer_layer_impl.cc (right): https://codereview.chromium.org/12385085/diff/2001/cc/delegated_renderer_layer_impl.cc#newcode119 cc/delegated_renderer_layer_impl.cc:119: unused_resources.push_back(it->second); On 2013/03/04 17:20:45, piman wrote: > How do ...
7 years, 9 months ago (2013-03-04 17:39:27 UTC) #3
piman
On 2013/03/04 17:39:27, danakj wrote: > https://codereview.chromium.org/12385085/diff/2001/cc/delegated_renderer_layer_impl.cc > File cc/delegated_renderer_layer_impl.cc (right): > > https://codereview.chromium.org/12385085/diff/2001/cc/delegated_renderer_layer_impl.cc#newcode119 > ...
7 years, 9 months ago (2013-03-04 19:05:31 UTC) #4
danakj
On 2013/03/04 19:05:31, piman wrote: > On 2013/03/04 17:39:27, danakj wrote: > > > https://codereview.chromium.org/12385085/diff/2001/cc/delegated_renderer_layer_impl.cc ...
7 years, 9 months ago (2013-03-04 19:33:50 UTC) #5
piman
On Mon, Mar 4, 2013 at 11:33 AM, <danakj@chromium.org> wrote: > On 2013/03/04 19:05:31, piman ...
7 years, 9 months ago (2013-03-04 20:40:57 UTC) #6
danakj
PTAL
7 years, 9 months ago (2013-03-05 19:11:26 UTC) #7
piman
lgtm https://codereview.chromium.org/12385085/diff/16004/cc/delegated_renderer_layer.cc File cc/delegated_renderer_layer.cc (right): https://codereview.chromium.org/12385085/diff/16004/cc/delegated_renderer_layer.cc#newcode84 cc/delegated_renderer_layer.cc:84: unused_resources_for_child_compositor_.clear(); Note: we have some area for optimization ...
7 years, 9 months ago (2013-03-05 19:30:51 UTC) #8
danakj
Thanks! https://codereview.chromium.org/12385085/diff/16004/cc/delegated_renderer_layer.cc File cc/delegated_renderer_layer.cc (right): https://codereview.chromium.org/12385085/diff/16004/cc/delegated_renderer_layer.cc#newcode84 cc/delegated_renderer_layer.cc:84: unused_resources_for_child_compositor_.clear(); On 2013/03/05 19:30:51, piman wrote: > Note: ...
7 years, 9 months ago (2013-03-05 19:39:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12385085/11006
7 years, 9 months ago (2013-03-05 19:41:01 UTC) #10
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 9 months ago (2013-03-05 19:48:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12385085/11006
7 years, 9 months ago (2013-03-05 20:20:59 UTC) #12
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 9 months ago (2013-03-05 20:27:35 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12385085/11006
7 years, 9 months ago (2013-03-05 20:32:55 UTC) #14
commit-bot: I haz the power
7 years, 9 months ago (2013-03-05 20:39:01 UTC) #15
Message was sent while issue was closed.
Change committed as 186246

Powered by Google App Engine
This is Rietveld 408576698