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

Issue 1666203003: Separate out resource mailbox creation and fix synchronization issue. (Closed)

Created:
4 years, 10 months ago by David Yen
Modified:
4 years, 10 months ago
Reviewers:
reveman, piman
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Separate out resource mailbox creation and fix synchronization issue. The resource transfer function has been split up so it does the lazy resource mailbox creation in a separate pass. This allows us to setup the sync token directly on the resource itself before the transfer. The texture binding code is also done on the first pass, this fixes a subtle synchronization issue where previously the bound textures could potentially not have a sync token attached to it if no mailboxes were lazily created. BUG=584381 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/d5650cab68401bcd2bb89e1a98c65378d493f785 Cr-Commit-Position: refs/heads/master@{#373847}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added function comment and formatted. #

Patch Set 3 : Removed assumption that sync token is cleared #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -53 lines) Patch
M cc/resources/resource_provider.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 4 chunks +67 lines, -52 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M cc/resources/texture_mailbox.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
David Yen
https://codereview.chromium.org/1666203003/diff/1/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/1666203003/diff/1/cc/resources/resource_provider.cc#newcode1170 cc/resources/resource_provider.cc:1170: need_synchronization_indexes.push_back(it); From piman@: We don't need to create sync ...
4 years, 10 months ago (2016-02-04 19:09:27 UTC) #2
David Yen
This splits up the TransferResource calls into 2 passes, it also fixes the subtle zero ...
4 years, 10 months ago (2016-02-04 19:13:29 UTC) #4
piman
lgtm https://codereview.chromium.org/1666203003/diff/1/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/1666203003/diff/1/cc/resources/resource_provider.h#newcode540 cc/resources/resource_provider.h:540: bool CreateMailboxAndBindResource(gpu::gles2::GLES2Interface* gl, nit: maybe document what the ...
4 years, 10 months ago (2016-02-04 19:27:02 UTC) #5
David Yen
https://codereview.chromium.org/1666203003/diff/1/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/1666203003/diff/1/cc/resources/resource_provider.h#newcode540 cc/resources/resource_provider.h:540: bool CreateMailboxAndBindResource(gpu::gles2::GLES2Interface* gl, On 2016/02/04 19:27:02, piman wrote: > ...
4 years, 10 months ago (2016-02-04 19:40:16 UTC) #6
reveman
lgtm, thanks
4 years, 10 months ago (2016-02-04 20:57:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1666203003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1666203003/40001
4 years, 10 months ago (2016-02-04 23:04:39 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/162265)
4 years, 10 months ago (2016-02-05 00:09:57 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1666203003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1666203003/40001
4 years, 10 months ago (2016-02-05 17:36:28 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-05 18:12:10 UTC) #15
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/d5650cab68401bcd2bb89e1a98c65378d493f785 Cr-Commit-Position: refs/heads/master@{#373847}
4 years, 10 months ago (2016-02-05 18:14:11 UTC) #17
David Yen
4 years, 10 months ago (2016-02-06 00:41:09 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1678613002/ by dyen@chromium.org.

The reason for reverting is: Causing renderer synchronization issues.

Powered by Google App Engine
This is Rietveld 408576698