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

Issue 14126014: Add signalSyncPoint to the WebGraphicsContext3D command buffer impls. (Closed)

Created:
7 years, 8 months ago by danakj
Modified:
7 years, 8 months ago
Reviewers:
jamesr, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam, apatrick_chromium, backer
Visibility:
Public.

Description

Add signalSyncPoint to the WebGraphicsContext3D command buffer impls. Adds signalSyncPoint() support to our command buffer implementations of WebGraphicsContext3D. Because we have to use a raw callback pointer for WebGraphicsContext3D and this is not great, I've added a SyncPointHelper class that adapts a base::Closure() for use with the signalSyncPoint() method. Tests: GLRendererPixelTest.SignalSyncPoint GLRendererPixelTest.SignalSyncPointOnLostContext R=jamesr, piman BUG=179896 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196930

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : fixcomment #

Patch Set 6 : add a test #

Patch Set 7 : fix in process lost context #

Total comments: 3

Patch Set 8 : pass ownership #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Total comments: 3

Patch Set 12 : Fix lost context #

Patch Set 13 : Callback during flush #

Patch Set 14 : Working everything #

Patch Set 15 : Extradiff #

Total comments: 2

Patch Set 16 : removedusing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -5 lines) Patch
M cc/cc.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cc/output/gl_renderer_pixeltest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +67 lines, -0 lines 0 comments Download
A cc/resources/sync_point_helper.h View 1 2 3 4 5 6 7 8 9 1 chunk +36 lines, -0 lines 0 comments Download
A cc/resources/sync_point_helper.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +37 lines, -0 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h View 1 chunk +3 lines, -1 line 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +75 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
danakj
7 years, 8 months ago (2013-04-26 00:52:43 UTC) #1
danakj
Oh, sorted cc.gyp while I was there.
7 years, 8 months ago (2013-04-26 00:52:52 UTC) #2
piman
https://codereview.chromium.org/14126014/diff/6001/cc/resources/sync_point_helper.cc File cc/resources/sync_point_helper.cc (right): https://codereview.chromium.org/14126014/diff/6001/cc/resources/sync_point_helper.cc#newcode14 cc/resources/sync_point_helper.cc:14: SignalSyncPointCallbackClass(const base::Closure& closure) nit: explicit https://codereview.chromium.org/14126014/diff/6001/cc/resources/sync_point_helper.cc#newcode15 cc/resources/sync_point_helper.cc:15: : closure_(closure) ...
7 years, 8 months ago (2013-04-26 01:20:52 UTC) #3
danakj
https://codereview.chromium.org/14126014/diff/6001/cc/resources/sync_point_helper.h File cc/resources/sync_point_helper.h (right): https://codereview.chromium.org/14126014/diff/6001/cc/resources/sync_point_helper.h#newcode25 cc/resources/sync_point_helper.h:25: // the |context3d| is destroyed. On 2013/04/26 01:20:52, piman ...
7 years, 8 months ago (2013-04-26 01:39:29 UTC) #4
danakj1
s/like/leak/ On Apr 25, 2013 9:39 PM, <danakj@chromium.org> wrote: > > https://codereview.chromium.**org/14126014/diff/6001/cc/** > resources/sync_point_helper.h<https://codereview.chromium.org/14126014/diff/6001/cc/resources/sync_point_helper.h> > ...
7 years, 8 months ago (2013-04-26 01:40:23 UTC) #5
piman
On Thu, Apr 25, 2013 at 6:39 PM, <danakj@chromium.org> wrote: > > https://codereview.chromium.**org/14126014/diff/6001/cc/** > resources/sync_point_helper.h<https://codereview.chromium.org/14126014/diff/6001/cc/resources/sync_point_helper.h> ...
7 years, 8 months ago (2013-04-26 03:04:14 UTC) #6
danakj
On Thu, Apr 25, 2013 at 11:03 PM, Antoine Labour <piman@chromium.org> wrote: > > > ...
7 years, 8 months ago (2013-04-26 13:15:33 UTC) #7
danakj
PTAL. Now the callback is destroyed when the WGC3D calls it. We keep around a ...
7 years, 8 months ago (2013-04-26 14:04:51 UTC) #8
piman
https://codereview.chromium.org/14126014/diff/20003/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc File content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc (right): https://codereview.chromium.org/14126014/diff/20003/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc#newcode1629 content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc:1629: WebKit::WebGraphicsContext3D::WebGraphicsSyncPointCallback* callback) { I don't understand... Why can't we ...
7 years, 8 months ago (2013-04-26 15:55:55 UTC) #9
danakj
https://codereview.chromium.org/14126014/diff/20003/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc File content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc (right): https://codereview.chromium.org/14126014/diff/20003/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc#newcode1629 content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc:1629: WebKit::WebGraphicsContext3D::WebGraphicsSyncPointCallback* callback) { On 2013/04/26 15:55:55, piman wrote: > ...
7 years, 8 months ago (2013-04-26 15:59:06 UTC) #10
piman
On Fri, Apr 26, 2013 at 8:59 AM, <danakj@chromium.org> wrote: > > https://codereview.chromium.**org/14126014/diff/20003/** > content/common/gpu/client/**webgraphicscontext3d_command_**buffer_impl.cc<https://codereview.chromium.org/14126014/diff/20003/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc> ...
7 years, 8 months ago (2013-04-26 16:02:21 UTC) #11
danakj
Oh! I see what you mean, pass ownership of the raw pointer to the WGC3D. ...
7 years, 8 months ago (2013-04-26 16:45:45 UTC) #12
piman
LGTM, yes, that's what I meant!
7 years, 8 months ago (2013-04-26 17:11:07 UTC) #13
danakj
james please have a look at the webkit/ stuff.
7 years, 8 months ago (2013-04-26 18:57:08 UTC) #14
danakj
https://codereview.chromium.org/14126014/diff/19011/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc File webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc (right): https://codereview.chromium.org/14126014/diff/19011/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc#newcode1810 webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc:1810: gl_->LoseContextCHROMIUM(current, other); Hm, after doing this, trying to create ...
7 years, 8 months ago (2013-04-26 19:18:42 UTC) #15
piman
https://codereview.chromium.org/14126014/diff/19011/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc File webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc (right): https://codereview.chromium.org/14126014/diff/19011/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc#newcode1810 webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc:1810: gl_->LoseContextCHROMIUM(current, other); On 2013/04/26 19:18:42, danakj wrote: > Hm, ...
7 years, 8 months ago (2013-04-26 21:15:01 UTC) #16
danakj
https://codereview.chromium.org/14126014/diff/19011/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc File webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc (right): https://codereview.chromium.org/14126014/diff/19011/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc#newcode1810 webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc:1810: gl_->LoseContextCHROMIUM(current, other); On 2013/04/26 21:15:01, piman wrote: > On ...
7 years, 8 months ago (2013-04-26 21:23:50 UTC) #17
danakj
This all seems to be working now! PTAL james
7 years, 8 months ago (2013-04-26 22:51:56 UTC) #18
jamesr
lgtm https://codereview.chromium.org/14126014/diff/35002/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc File webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc (right): https://codereview.chromium.org/14126014/diff/35002/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc#newcode310 webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc:310: using WebKit::WebGraphicsContext3D; do you need this using statement ...
7 years, 8 months ago (2013-04-26 22:57:30 UTC) #19
danakj
https://codereview.chromium.org/14126014/diff/35002/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc File webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc (right): https://codereview.chromium.org/14126014/diff/35002/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc#newcode310 webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc:310: using WebKit::WebGraphicsContext3D; On 2013/04/26 22:57:30, jamesr wrote: > do ...
7 years, 8 months ago (2013-04-27 00:05:16 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/14126014/44001
7 years, 8 months ago (2013-04-27 00:06:12 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/14126014/44001
7 years, 8 months ago (2013-04-27 00:07:14 UTC) #22
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) ash_unittests, aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, check_deps, ...
7 years, 8 months ago (2013-04-27 00:16:27 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/14126014/44001
7 years, 8 months ago (2013-04-27 00:26:35 UTC) #24
commit-bot: I haz the power
7 years, 8 months ago (2013-04-27 03:24:51 UTC) #25
Message was sent while issue was closed.
Change committed as 196930

Powered by Google App Engine
This is Rietveld 408576698