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

Issue 1185443005: cc: Propagate read lock fences constraints to parent compositors. (Closed)

Created:
5 years, 6 months ago by Daniele Castagna
Modified:
5 years, 6 months ago
Reviewers:
palmer, reveman, piman
CC:
cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Propagate read lock fences constraints to parent compositors. The root compositor might receive resources that require to be synchronized on the CPU: they should not be returned to the child compositor until the GPU is completely done drawing with them. BUG=386735 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/6158dbf13d7371730b1504ce720a8e51ada59265 Cr-Commit-Position: refs/heads/master@{#334912}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Trying to make MSVC happy. #

Patch Set 3 : Add DestroyChild and ContextLost tests. #

Patch Set 4 : Fix tests. Returned resourced could be swapped. #

Total comments: 12

Patch Set 5 : Avoid ReadLockFenceHasPassed when not necessary. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -13 lines) Patch
M cc/resources/resource_provider.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 6 chunks +22 lines, -13 lines 2 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 3 4 1 chunk +184 lines, -0 lines 0 comments Download
M cc/resources/transferable_resource.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/transferable_resource.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/cc_messages.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 34 (9 generated)
Daniele Castagna
5 years, 6 months ago (2015-06-11 23:55:11 UTC) #2
reveman
lgtm % piman's review
5 years, 6 months ago (2015-06-12 00:04:39 UTC) #4
piman
LGTM https://codereview.chromium.org/1185443005/diff/1/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/1185443005/diff/1/cc/resources/resource_provider.h#newcode111 cc/resources/resource_provider.h:111: void EnableReadLockFences(ResourceId id); nit: EnableReadLockFencesForTesting. https://codereview.chromium.org/1185443005/diff/1/cc/resources/resource_provider_unittest.cc File cc/resources/resource_provider_unittest.cc ...
5 years, 6 months ago (2015-06-12 01:53:52 UTC) #5
Daniele Castagna
https://codereview.chromium.org/1185443005/diff/1/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/1185443005/diff/1/cc/resources/resource_provider.h#newcode111 cc/resources/resource_provider.h:111: void EnableReadLockFences(ResourceId id); On 2015/06/12 at 01:53:52, piman (Very ...
5 years, 6 months ago (2015-06-12 23:36:42 UTC) #6
piman
On Fri, Jun 12, 2015 at 4:36 PM, <dcastagna@chromium.org> wrote: > > > https://codereview.chromium.org/1185443005/diff/1/cc/resources/resource_provider.h > ...
5 years, 6 months ago (2015-06-13 00:16:56 UTC) #7
piman
On Fri, Jun 12, 2015 at 4:36 PM, <dcastagna@chromium.org> wrote: > > > https://codereview.chromium.org/1185443005/diff/1/cc/resources/resource_provider.h > ...
5 years, 6 months ago (2015-06-13 00:20:59 UTC) #8
Daniele Castagna
On 2015/06/13 at 00:16:56, piman wrote: > On Fri, Jun 12, 2015 at 4:36 PM, ...
5 years, 6 months ago (2015-06-13 00:49:52 UTC) #9
Daniele Castagna
On 2015/06/13 at 00:20:59, piman wrote: > On Fri, Jun 12, 2015 at 4:36 PM, ...
5 years, 6 months ago (2015-06-13 01:02:26 UTC) #10
piman
On Fri, Jun 12, 2015 at 6:02 PM, <dcastagna@chromium.org> wrote: > On 2015/06/13 at 00:20:59, ...
5 years, 6 months ago (2015-06-15 17:25:28 UTC) #11
piman
On Fri, Jun 12, 2015 at 5:49 PM, <dcastagna@chromium.org> wrote: > On 2015/06/13 at 00:16:56, ...
5 years, 6 months ago (2015-06-15 17:26:16 UTC) #12
Daniele Castagna
On 2015/06/15 at 17:26:16, piman wrote: > On Fri, Jun 12, 2015 at 5:49 PM, ...
5 years, 6 months ago (2015-06-16 01:21:05 UTC) #15
reveman
https://codereview.chromium.org/1185443005/diff/100001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/1185443005/diff/100001/cc/resources/resource_provider.cc#newcode1552 cc/resources/resource_provider.cc:1552: bool fence_passed = ReadLockFenceHasPassed(&resource); Checking the fence is an ...
5 years, 6 months ago (2015-06-16 01:35:10 UTC) #16
piman
https://codereview.chromium.org/1185443005/diff/100001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (left): https://codereview.chromium.org/1185443005/diff/100001/cc/resources/resource_provider.cc#oldcode1554 cc/resources/resource_provider.cc:1554: if (resource.exported_count > 0 || resource.lock_for_read_count > 0) { ...
5 years, 6 months ago (2015-06-16 02:02:47 UTC) #17
Daniele Castagna
https://codereview.chromium.org/1185443005/diff/100001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (left): https://codereview.chromium.org/1185443005/diff/100001/cc/resources/resource_provider.cc#oldcode1554 cc/resources/resource_provider.cc:1554: if (resource.exported_count > 0 || resource.lock_for_read_count > 0) { ...
5 years, 6 months ago (2015-06-16 15:39:20 UTC) #18
piman
Ok, I buy that, LGTM+nits (after reveman@'s comments are addressed). https://codereview.chromium.org/1185443005/diff/100001/cc/resources/resource_provider_unittest.cc File cc/resources/resource_provider_unittest.cc (right): https://codereview.chromium.org/1185443005/diff/100001/cc/resources/resource_provider_unittest.cc#newcode1084 ...
5 years, 6 months ago (2015-06-16 16:46:20 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1185443005/120001
5 years, 6 months ago (2015-06-17 15:19:11 UTC) #22
Daniele Castagna
https://codereview.chromium.org/1185443005/diff/100001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/1185443005/diff/100001/cc/resources/resource_provider.cc#newcode1552 cc/resources/resource_provider.cc:1552: bool fence_passed = ReadLockFenceHasPassed(&resource); On 2015/06/16 at 01:35:10, reveman ...
5 years, 6 months ago (2015-06-17 15:20:41 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/71614)
5 years, 6 months ago (2015-06-17 15:26:40 UTC) #25
Daniele Castagna
+palmer for content/common/cc_messages.h
5 years, 6 months ago (2015-06-17 15:30:45 UTC) #26
Daniele Castagna
+palmer for content/common/cc_messages.h for real this time.
5 years, 6 months ago (2015-06-17 15:31:19 UTC) #28
palmer
IPC security LGTM % nit. https://codereview.chromium.org/1185443005/diff/120001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/1185443005/diff/120001/cc/resources/resource_provider.cc#newcode1564 cc/resources/resource_provider.cc:1564: // TODO(dcastagna): see if ...
5 years, 6 months ago (2015-06-17 18:08:51 UTC) #29
Daniele Castagna
https://codereview.chromium.org/1185443005/diff/120001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/1185443005/diff/120001/cc/resources/resource_provider.cc#newcode1564 cc/resources/resource_provider.cc:1564: // TODO(dcastagna): see if it's possible to use this ...
5 years, 6 months ago (2015-06-17 20:36:31 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1185443005/120001
5 years, 6 months ago (2015-06-17 20:44:18 UTC) #32
commit-bot: I haz the power
Committed patchset #5 (id:120001)
5 years, 6 months ago (2015-06-17 20:54:16 UTC) #33
commit-bot: I haz the power
5 years, 6 months ago (2015-06-17 20:55:17 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6158dbf13d7371730b1504ce720a8e51ada59265
Cr-Commit-Position: refs/heads/master@{#334912}

Powered by Google App Engine
This is Rietveld 408576698