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

Issue 411643002: Early wait on texture resource sync points in gl_renderer. (Closed)

Created:
6 years, 5 months ago by vmiura
Modified:
6 years, 4 months ago
Reviewers:
danakj, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, hendrikw
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Early wait on texture resource sync points in gl_renderer. Previously texture resource sync points were waited on a just-in-time basis, just before drawing with the texture. This change moves all sync point waits ahead of drawing a frame, to ensure that we don't switch GLContexts in the middle of drawing. BUG=394547 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290109

Patch Set 1 #

Total comments: 5

Patch Set 2 : Implemented danakj's suggestions. #

Total comments: 4

Patch Set 3 : ResourceProvider unittests. #

Patch Set 4 : Fix comments. #

Patch Set 5 : Move WaitOnResourceSyncPoints to gl_renderer. Add mailbox test for gl_renderer. #

Total comments: 4

Patch Set 6 : Fix comments. #

Patch Set 7 : Fix missing calls to WaitSyncPointIfNeeded in ResourceProvider tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -11 lines) Patch
M cc/output/delegating_renderer_unittest.cc View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M cc/output/direct_renderer.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/direct_renderer.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 2 chunks +20 lines, -0 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 3 4 5 3 chunks +8 lines, -1 line 0 comments Download
M cc/resources/resource_provider.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 2 chunks +20 lines, -4 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 3 4 5 6 11 chunks +120 lines, -2 lines 0 comments Download
M cc/test/render_pass_test_common.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cc/test/render_pass_test_common.cc View 1 2 3 4 5 5 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
vmiura
I need some pointers for doing this patch properly. - Does this look like the ...
6 years, 4 months ago (2014-08-13 00:08:39 UTC) #1
enne (OOO)
I feel like I'm missing a lot of context (pun not intended) here. Can you ...
6 years, 4 months ago (2014-08-13 00:20:54 UTC) #2
vmiura
On 2014/08/13 00:20:54, enne wrote: > I feel like I'm missing a lot of context ...
6 years, 4 months ago (2014-08-13 01:01:32 UTC) #3
danakj
https://codereview.chromium.org/411643002/diff/1/cc/output/direct_renderer.cc File cc/output/direct_renderer.cc (right): https://codereview.chromium.org/411643002/diff/1/cc/output/direct_renderer.cc#newcode344 cc/output/direct_renderer.cc:344: ++it) { You can IterateResources here to get each ...
6 years, 4 months ago (2014-08-13 13:52:13 UTC) #4
vmiura
Applied suggestions. PTAL. https://codereview.chromium.org/411643002/diff/1/cc/output/direct_renderer.cc File cc/output/direct_renderer.cc (right): https://codereview.chromium.org/411643002/diff/1/cc/output/direct_renderer.cc#newcode344 cc/output/direct_renderer.cc:344: ++it) { On 2014/08/13 13:52:12, danakj ...
6 years, 4 months ago (2014-08-13 22:50:39 UTC) #5
danakj
This looks good. How can we test it? We should add tests for the ResourceProvider ...
6 years, 4 months ago (2014-08-13 23:05:19 UTC) #6
vmiura
Resolved comments, and added unit tests. I've moved the WaitOnResourceSyncPoints from direct_renderer to gl_renderer, as ...
6 years, 4 months ago (2014-08-15 21:20:39 UTC) #7
danakj
LGTM https://codereview.chromium.org/411643002/diff/80001/cc/output/gl_renderer_unittest.cc File cc/output/gl_renderer_unittest.cc (right): https://codereview.chromium.org/411643002/diff/80001/cc/output/gl_renderer_unittest.cc#newcode805 cc/output/gl_renderer_unittest.cc:805: EXPECT_CALL(*context, waitSyncPoint(TestRenderPass::kTestSyncPoint)) Can you add a comment here ...
6 years, 4 months ago (2014-08-15 21:32:34 UTC) #8
vmiura
https://codereview.chromium.org/411643002/diff/80001/cc/output/gl_renderer_unittest.cc File cc/output/gl_renderer_unittest.cc (right): https://codereview.chromium.org/411643002/diff/80001/cc/output/gl_renderer_unittest.cc#newcode805 cc/output/gl_renderer_unittest.cc:805: EXPECT_CALL(*context, waitSyncPoint(TestRenderPass::kTestSyncPoint)) On 2014/08/15 21:32:34, danakj wrote: > Can ...
6 years, 4 months ago (2014-08-15 21:55:00 UTC) #9
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 4 months ago (2014-08-15 22:25:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmiura@chromium.org/411643002/100001
6 years, 4 months ago (2014-08-15 22:26:04 UTC) #11
vmiura
Sorry, missed some needed calls to WaitSyncPointIfNeeded in the unittests.
6 years, 4 months ago (2014-08-15 22:46:56 UTC) #12
vmiura
The CQ bit was checked by vmiura@chromium.org
6 years, 4 months ago (2014-08-15 22:58:07 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmiura@chromium.org/411643002/120001
6 years, 4 months ago (2014-08-15 22:59:35 UTC) #14
commit-bot: I haz the power
6 years, 4 months ago (2014-08-16 06:19:52 UTC) #15
Message was sent while issue was closed.
Committed patchset #7 (120001) as 290109

Powered by Google App Engine
This is Rietveld 408576698