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

Issue 23023005: cc: refcount resources as we send them to the parent (Closed)

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

Description

cc: refcount resources as we send them to the parent This allows us to fully specify the resources used by the frame, so that we can: - allow more than one frame in flight - allow duplicating the frame for aura::Window::RecreateLayers For every frame we generate, we increase the "exported_count" in the child. Every time we import the resources for a frame, we increase the "imported count" in the parent. The contract is that we return resources exactly once for every time it's exported. BUG=263068 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218173

Patch Set 1 #

Total comments: 25

Patch Set 2 : rebase #

Patch Set 3 : address review comments #

Total comments: 2

Patch Set 4 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -98 lines) Patch
M cc/layers/delegated_renderer_layer.cc View 1 chunk +6 lines, -15 lines 0 comments Download
M cc/output/delegating_renderer_unittest.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 31 chunks +56 lines, -40 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_delegated.cc View 1 2 3 16 chunks +132 lines, -35 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
piman
Note: right now I'm returning resources multiple times in the array, which doesn't really scale ...
7 years, 4 months ago (2013-08-14 00:16:23 UTC) #1
danakj
Some cc tests are failing still it seems, or are flaky (see win_rel).
7 years, 4 months ago (2013-08-15 21:04:32 UTC) #2
piman
On Thu, Aug 15, 2013 at 2:04 PM, <danakj@chromium.org> wrote: > Some cc tests are ...
7 years, 4 months ago (2013-08-15 21:22:38 UTC) #3
danakj
Some comments on the non-test changes. https://codereview.chromium.org/23023005/diff/1/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/23023005/diff/1/cc/resources/resource_provider.cc#newcode195 cc/resources/resource_provider.cc:195: return !!resource->lock_for_read_count || ...
7 years, 4 months ago (2013-08-15 21:30:52 UTC) #4
danakj
https://codereview.chromium.org/23023005/diff/1/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/23023005/diff/1/cc/resources/resource_provider.cc#newcode314 cc/resources/resource_provider.cc:314: DCHECK(!resource->marked_for_deletion); On 2013/08/15 21:30:53, danakj wrote: > Can we ...
7 years, 4 months ago (2013-08-15 21:32:01 UTC) #5
danakj
Thanks for updating the tests! I think that will be useful/helpful. https://codereview.chromium.org/23023005/diff/1/cc/trees/layer_tree_host_unittest_delegated.cc File cc/trees/layer_tree_host_unittest_delegated.cc (right): ...
7 years, 4 months ago (2013-08-15 22:20:18 UTC) #6
piman
https://codereview.chromium.org/23023005/diff/1/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/23023005/diff/1/cc/resources/resource_provider.cc#newcode195 cc/resources/resource_provider.cc:195: return !!resource->lock_for_read_count || !!resource->exported_count; On 2013/08/15 21:30:53, danakj wrote: ...
7 years, 4 months ago (2013-08-16 04:29:54 UTC) #7
danakj
Thanks, LGTM https://codereview.chromium.org/23023005/diff/25001/cc/trees/layer_tree_host_unittest_delegated.cc File cc/trees/layer_tree_host_unittest_delegated.cc (right): https://codereview.chromium.org/23023005/diff/25001/cc/trees/layer_tree_host_unittest_delegated.cc#newcode530 cc/trees/layer_tree_host_unittest_delegated.cc:530: TransferableResourceArray returned_resources; // The resource 999 from ...
7 years, 4 months ago (2013-08-16 16:49:44 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/23023005/35001
7 years, 4 months ago (2013-08-16 20:03:41 UTC) #9
piman
https://codereview.chromium.org/23023005/diff/25001/cc/trees/layer_tree_host_unittest_delegated.cc File cc/trees/layer_tree_host_unittest_delegated.cc (right): https://codereview.chromium.org/23023005/diff/25001/cc/trees/layer_tree_host_unittest_delegated.cc#newcode530 cc/trees/layer_tree_host_unittest_delegated.cc:530: TransferableResourceArray returned_resources; On 2013/08/16 16:49:44, danakj wrote: > // ...
7 years, 4 months ago (2013-08-16 20:43:18 UTC) #10
commit-bot: I haz the power
7 years, 4 months ago (2013-08-17 13:53:13 UTC) #11
Message was sent while issue was closed.
Change committed as 218173

Powered by Google App Engine
This is Rietveld 408576698