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

Issue 2081883002: Reland of cc: Add mailbox support to ResourceProvider write locks. (Closed)

Created:
4 years, 6 months ago by sunnyps
Modified:
4 years, 6 months ago
Reviewers:
piman
CC:
chromium-reviews, posciak+watch_chromium.org, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@worker_context_sync_tokens_revert
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of cc: Add mailbox support to ResourceProvider write locks. (patchset #24 id:460001 of https://codereview.chromium.org/1951193002/ ) Original issue's description: > cc: Add mailbox support to ResourceProvider write locks. > > This adds support for mailboxes to ScopedWriteLockGL. Using the mailbox > requires using ScopedTextureProvider/ScopedSkSurfaceProvider which > ensures that the texture id for the mailbox is destroyed after use on > the worker context. > > This CL also includes the following cleanup: > 1. ResourceProvider locks don't keep resource pointers around. > 2. ScopedSamplerGL does not inherit from ScopedReadLockGL. > 3. GpuRasterizer is folded back into GpuRasterBufferProvider. > 4. TileTaskManager does not own RasterBufferProvider. > > BUG=525259 > R=piman@chromium.org > CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel > > Committed: https://crrev.com/5fa5dbdf25bbec21b84f752d3f0642cd184467e2 > Committed: https://crrev.com/3b0f0b8d3db0a9f66864d5b7da87c82f49e74a29 > Cr-Original-Commit-Position: refs/heads/master@{#398204} > Cr-Commit-Position: refs/heads/master@{#399983} R=piman@chromium.org BUG=525259, 621422, 621130 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/b3071e4aabd0cb1f29cd624e77eb5f40722be965 Cr-Commit-Position: refs/heads/master@{#401717}

Patch Set 1 #

Patch Set 2 : don't cancel tasks on invalid sync token #

Total comments: 4

Patch Set 3 : piman's review #

Patch Set 4 : don't use sync tokens for non-async case #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+768 lines, -645 lines) Patch
M cc/BUILD.gn View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M cc/cc.gyp View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 4 chunks +6 lines, -6 lines 0 comments Download
M cc/raster/gpu_raster_buffer_provider.h View 1 3 chunks +54 lines, -4 lines 0 comments Download
M cc/raster/gpu_raster_buffer_provider.cc View 1 2 3 4 chunks +165 lines, -67 lines 0 comments Download
D cc/raster/gpu_rasterizer.h View 1 chunk +0 lines, -57 lines 0 comments Download
D cc/raster/gpu_rasterizer.cc View 1 chunk +0 lines, -86 lines 0 comments Download
M cc/raster/one_copy_raster_buffer_provider.h View 1 6 chunks +44 lines, -4 lines 0 comments Download
M cc/raster/one_copy_raster_buffer_provider.cc View 1 2 3 9 chunks +164 lines, -134 lines 0 comments Download
M cc/raster/raster_buffer_provider.h View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/raster/raster_buffer_provider_perftest.cc View 10 chunks +30 lines, -17 lines 0 comments Download
M cc/raster/raster_buffer_provider_unittest.cc View 7 chunks +16 lines, -17 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 5 chunks +68 lines, -46 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 15 chunks +159 lines, -116 lines 0 comments Download
M cc/resources/video_resource_updater.cc View 1 2 3 4 3 chunks +4 lines, -5 lines 0 comments Download
M cc/test/fake_tile_manager.cc View 3 chunks +5 lines, -0 lines 0 comments Download
M cc/test/fake_tile_task_manager.h View 1 chunk +0 lines, -5 lines 0 comments Download
M cc/test/fake_tile_task_manager.cc View 2 chunks +1 line, -11 lines 0 comments Download
M cc/test/layer_tree_pixel_resource_test.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M cc/tiles/tile_manager.h View 4 chunks +6 lines, -2 lines 0 comments Download
M cc/tiles/tile_manager.cc View 1 9 chunks +22 lines, -13 lines 0 comments Download
M cc/tiles/tile_manager_unittest.cc View 1 2 3 4 2 chunks +7 lines, -12 lines 0 comments Download
M cc/tiles/tile_task_manager.h View 2 chunks +1 line, -9 lines 0 comments Download
M cc/tiles/tile_task_manager.cc View 2 chunks +4 lines, -16 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 chunks +6 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (7 generated)
sunnyps
Tasks aren't cancelled on invalid sync token, instead the tasks early out while running. PTAL
4 years, 6 months ago (2016-06-21 01:21:09 UTC) #1
piman
https://codereview.chromium.org/2081883002/diff/20001/cc/raster/gpu_raster_buffer_provider.cc File cc/raster/gpu_raster_buffer_provider.cc (right): https://codereview.chromium.org/2081883002/diff/20001/cc/raster/gpu_raster_buffer_provider.cc#newcode198 cc/raster/gpu_raster_buffer_provider.cc:198: DCHECK(gl->GetGraphicsResetStatusKHR() != GL_NO_ERROR); Because they're not in the same ...
4 years, 6 months ago (2016-06-21 01:45:35 UTC) #2
sunnyps
PTAL https://codereview.chromium.org/2081883002/diff/20001/cc/raster/gpu_raster_buffer_provider.cc File cc/raster/gpu_raster_buffer_provider.cc (right): https://codereview.chromium.org/2081883002/diff/20001/cc/raster/gpu_raster_buffer_provider.cc#newcode198 cc/raster/gpu_raster_buffer_provider.cc:198: DCHECK(gl->GetGraphicsResetStatusKHR() != GL_NO_ERROR); On 2016/06/21 01:45:35, piman wrote: ...
4 years, 6 months ago (2016-06-21 01:57:39 UTC) #3
piman
lgtm
4 years, 6 months ago (2016-06-21 02:06:36 UTC) #4
sunnyps
Thanks! I'll wait for the next dev release before submitting this.
4 years, 6 months ago (2016-06-21 02:07:33 UTC) #5
sunnyps
I've removed insert/wait sync token for the non-async case so that we don't regress idle ...
4 years, 6 months ago (2016-06-22 22:46:08 UTC) #7
piman
lgtm
4 years, 6 months ago (2016-06-22 22:54:24 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2081883002/50001
4 years, 6 months ago (2016-06-22 22:55:58 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/builds/25343) ios-simulator on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 6 months ago (2016-06-22 22:59:09 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2081883002/70001
4 years, 6 months ago (2016-06-23 20:13:15 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:70001)
4 years, 6 months ago (2016-06-23 21:21:43 UTC) #17
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/b3071e4aabd0cb1f29cd624e77eb5f40722be965 Cr-Commit-Position: refs/heads/master@{#401717}
4 years, 6 months ago (2016-06-23 21:24:07 UTC) #19
sunnyps
4 years, 5 months ago (2016-06-27 20:06:37 UTC) #20
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:70001) has been created in
https://codereview.chromium.org/2106503002/ by sunnyps@chromium.org.

The reason for reverting is: Causing canvas crashes - bug 623101.

Powered by Google App Engine
This is Rietveld 408576698